Skip to content

审批:待审请求之间加上一条 / 下一条,处理完一条自动打开下一条 #34586

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题,维护者直派,「都是p1」)。⛔ 不是认领。
维护者 2026-11-17 原话:「审批页通常要看完整记录,如何让操作更方便」

现状(读码,objectstack origin/main ed45eb9;界面实测在 staging os-4e4qa4)

  • 审批收件箱是手写页面 ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx。点一条请求走 openRequest(:967),是一次普通的 navigate,不带同列表的兄弟记录。
  • 请求页(sys_approval_request 记录页)上没有上一条 / 下一条;通过或驳回之后停在原页,要自己回列表再点下一条。
  • 记录抽屉栈已有兄弟记录切换的机制(recordDrawerStack.tsx 的 siblings),收件箱没有用它。

要做的

  1. 从「待我审批」打开请求时,把当前筛选和排序下的待审列表作为兄弟集合带过去;请求页右上角显示「第 N 条,共 M 条」和上一条 / 下一条。
  2. 加一个「处理后打开下一条」开关(默认开,按用户记住):通过、驳回、退回等任何让该请求离开待审的操作成功后,自动打开下一条;没有下一条时回到列表并提示已处理完。
  3. 快捷键沿用列表上已有的 J / K。

不做的

验收

  1. 待审 3 条时打开第 1 条,页面显示「第 1 条,共 3 条」;点下一条到第 2 条。
  2. 通过第 1 条后自动落在原第 2 条;全部处理完回到列表。
  3. 关掉开关后,处理完停在原页。
  4. 从通知或直接链接打开的请求(没有列表上下文)不显示条数,不报错。

设计图(静态示意稿,标「新」的是改动;字段和文案以实际元数据为准)

图 4 审批

图 4 审批

Reader: domain:ui 车道,改 ApprovalsInboxPage.tsx 的 openRequest 与请求页头部。

Dedupe: repo:objectstack-ai/objectstack approval inbox next previous request auto-advance → 1(#23984,已关,显示标签,无关)。相邻但不同:#34361(开,已裁 A,把审批人的操作收成一条带「更多」菜单的审批条)管的是按钮怎么摆,本卡管连续处理。

Activity

  1. added
    priority:p1
    domain:ui
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → pm:queue · 2026-11-17T02:51Z

    ⛔ Not a claim.

  3. added
    pm:queue
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim: PM loop round 1 · 2026-11-17T02:57Z
    Session: session_01WGufzgh1zkZzDXL36ckWAG
    Thread session: session_01WGufzgwLxpT1AVJJAwAvyR
    Account: os-support-ai
    Branch: claude/project-thread-2ojt62 (card-thread pinned branch: the harness lets the thread push only this name)
    Worktree: objectstack-issue-34586
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/apps/console/src/pages/system/** (+ tests); ui/packages/app-shell/src/views/approval-decision/** (new approvalQueueAdvance.tsx + test, ApprovalDecisionPanel.tsx), ui/packages/app-shell/src/views/RecordDetailView.tsx (toggle in the top bar, minimal), recordDrawerStack.tsx (export existing siblings helper, no behaviour change), ui/packages/app-shell/src/utils/workspacePreference.ts; ui/packages/i18n/src/locales/* (new approvalsInbox keys, 11 locales); root .changeset/
    Container & model: S/M, mode:thread, model: TIER_DEFAULT (dispatch-gates --tier on ApprovalsInboxPage.tsx: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6936534320
    Premise: corrected by the thread reading at 144cdc2: RecordDetailView already draws the counter, prev/next and J/K from location.state.from.siblings; item 1 = pass siblings from openRequest; item 2 needs app-shell ApprovalDecisionPanel + i18n (surface widened above, seat-approved)
    Serial constraints cleared: after #34587 (same file, lands first; triage 6936557306); #34361 (p2, ruled A, approver action bar on the record page, unclaimed): if it starts, whichever lands first, the other merges main and does not re-lay its buttons

    Lease o3-UX (seat post #34584); child of epic #34571.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment · 2026-11-17T03:21Z

    The claim 6936650853 declared Clause-②: no. The widened file surface adds new en keys to @object-ui/i18n, which publishes every en key through TranslationKeys (precedent #34472), so the declaration is corrected. No other line changes; branch, session and file surface stand.

    Clause-②: yes (widening — new @object-ui/i18n locale keys only; no metadata or schema accept set)
    Metadata-protocol: none

  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLxpT1AVJJAwAvyR
    os-dev-report

    Stamp: 2026-11-17T04:13Z

    {
      "issue": 34586,
      "status": "done",
      "branch": "claude/project-thread-2ojt62",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34624",
      "head": "afe198ed00693475c193b70a61c719fc99fbcb21",
      "session": "session_01WGufzgwLxpT1AVJJAwAvyR",
      "premise_still_valid": true,
      "summary": "From the Approvals Inbox's pending tab, a request now opens with the list's filtered and sorted ids as its sibling set (the record page's existing from.siblings shape plus an approvalQueue marker), so the request page draws the house counter (1 / 3, accessible name 'N of M in Approvals Inbox' / zh 第 N 条,共 M 条), next / previous and j / k, and its crumb returns to the inbox. A new 'Open next after deciding' switch (default on, per-reader workspace preference, client-side) replaces the page with the next request when a decision observed on that page takes the request out of the reader's queue (status leaves pending or viewer.can_act turns false), dropping it from the count; after the last one the page returns to the inbox with a done toast. Requests opened from a notification, a direct link, or the Submitted / All tabs show no counter and no switch. No approval permission, rule or endpoint change; decision buttons (#34361) untouched.",
      "tests": "New files: ui/apps/console/src/pages/system/ApprovalsInboxPage.queueStepper-34586.test.tsx 'Tests 6 passed (6)'; ui/packages/app-shell/src/views/approval-decision/approvalQueueAdvance-34586.test.tsx 'Tests 11 passed (11)'. Affected set (115 files reading the top bar, useRecordPageReturn, recordDrawerStack, workspacePreference, inbox, decision panel, plus packages/i18n): 'Test Files 214 passed | 2 failed | 1 skipped (217)' on 36749a16, both reds this branch's own and fixed on 885cedbf (zh-Hant regeneration; one wrong pin of mine), re-run 'Test Files 3 passed (3) / Tests 70 passed (70)'; after the lint refactor dbe3c289 the counter and queue pins 'Test Files 6 passed (6) / Tests 54 passed (54)'. Ablations via scripts/ablation-replace.mjs (restored, git diff HEAD empty): inbox hands no queue -> '4 failed | 2 passed'; switch ignored -> '2 failed | 14 passed'; was-in-queue guard dropped -> '1 failed | 10 passed'. Type-check app-shell / i18n / console: exit 0 each.",
      "gates": "Derived union on dbe3c2894 (the feature head): node scripts/pm/dispatch-gates.mjs --commands derived 41; every one run, each exit 0 (exit captured before any pipe), plus pnpm check:changeset-fixed exit 0 (roster under .changeset, outside the derivation); --ran reconciliation exit 0: '41 derived, 41 run, 0 NOT-MEASURED, 0 UNRUN'. Then origin/main (082f9c294, carrying #34621 for sibling card #34587 on the same ApprovalsInboxPage.tsx) was merged clean into the branch as afe198ed0, the current head; on it: overlap-check 'VERDICT clean' exit 0; the four base-relative gates re-run (check-adr-0087-registration --base, check-changeset-no-major --base, check-empty-changeset --base, check:changeset-fixed) exit 0 each; vitest over the inbox, approval-decision, recordDrawerStack and all of packages/i18n 'Test Files 127 passed (127) / Tests 2079 passed | 13 skipped' exit 0; type-check @object-ui/console exit 0, @object-ui/app-shell exit 0 (after rebuilding the auth, plugin-chatbot and i18n dists main moved). CI on dbe3c2894: 58 check runs, all success or skipped by path filter (Test UI 16 shards, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Lint & Repo Gates, TypeScript Type Check, Check Changeset, PR-body guards, Governed Surface Queue Guard among them); CI on afe198ed0 is running at the time of this comment.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "deviations": [
        "File surface widened beyond the order's first list (console pages/system, app-shell approval-decision, RecordDetailView minimal, recordDrawerStack, workspacePreference, i18n x11, root changeset): seat-approved, recorded in Claim 6936650853",
        "Visible counter is the house face 'N / M'; the 第 N 条,共 M 条 sentence is its accessible name and tooltip (changing the face would change every record page)",
        "'Remembered per user' = the console's per-reader preference store, which is per browser (client-side, as the order asks)",
        "Clause-② corrected by the seat from no to yes (widening — locale keys only); changeset and PR body carry it",
        "Two new react-refresh/only-export-components warnings for the two new non-component exports of recordDrawerStack.tsx (file already exports 14 such); declared in the PR body"
      ],
      "files_changed": [
        ".changeset/34586-approvals-queue-open-next.md",
        "ui/apps/console/src/pages/system/ApprovalsInboxPage.queueStepper-34586.test.tsx",
        "ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx",
        "ui/packages/app-shell/src/index.ts",
        "ui/packages/app-shell/src/utils/workspacePreference.ts",
        "ui/packages/app-shell/src/views/RecordDetailView.tsx",
        "ui/packages/app-shell/src/views/approval-decision/approvalQueueAdvance-34586.test.tsx",
        "ui/packages/app-shell/src/views/approval-decision/approvalQueueAdvance.tsx",
        "ui/packages/app-shell/src/views/recordDrawerStack.tsx",
        "ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts"
      ],
      "mcp_calls": "1 — pull_request_read (get_check_runs on #34624), read-only; 0 write tools",
      "api_writes": "git pushes to claude/project-thread-2ojt62; 1 relay pr_create via scripts/pm/fleet-write/dispatch.mjs (run 44011922534, read-back identical, 10770 bytes); 1 comment via scripts/pm/post-stamped.mjs (this one)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgwLxpT1AVJJAwAvyR
    os-dev-report addendum

    Stamp: 2026-11-17T04:17Z

    Correction to the report above (comment 6938082032), asked by the seat: the Clause-② line also covers one new export, not only locale keys. ui/packages/app-shell/src/index.ts adds export { approvalQueueState } from @object-ui/app-shell, a workspace-private package ("private": true, not published; the console is its one consumer). The line now reads Clause-②: yes (widening) — one new export, approvalQueueState, from @object-ui/app-shell (workspace-private …), and two new approvalsInbox keys in the @object-ui/i18n locale packs …; nothing removed or renamed in both the changeset and the PR body.

    • New head 144cc8fac (changeset text only, on top of the main merge afe198ed0).
    • On it: check-adr-0087-registration --base, check-changeset-no-major --base, check-empty-changeset --base, check:changeset-fixed, check:changeset-gate-self-tests exit 0 each; overlap-check VERDICT clean exit 0.
    • PR body updated through the relay (issue_patch, run 44016066613, read-back identical, 11298 bytes).
    • Writes since the report: 1 git push, 1 relay issue_patch, this comment. mcp_calls unchanged (1 read-only).
  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment · 2026-11-17T04:43Z

    File surface adds ui/packages/app-shell/src/index.ts: one new export, approvalQueueState, from @object-ui/app-shell (workspace-private, "private": true, consumed only by the console). Nothing removed or renamed.

    Clause-②: yes (widening — one app-shell export, workspace-private; two add-only approvalsInbox keys in 11 locales)
    Metadata-protocol: none

  10. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX

    Delivered · 2026-11-17T05:24Z · PR #34624 merged; this card closed by its Fixes line. Nothing remains on it. pm:dispatched removed.

  11. removed
    pm:dispatched
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:uipriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions