Skip to content

审批收件箱:行内「通过」「驳回」默认可见,不要悬停才出现 #34587

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题,维护者直派,「都是p1」)。⛔ 不是认领。

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

  • 桌面列表每行最右侧有两个图标按钮(InlineActions),容器类是 opacity-0 group-hover:opacity-100 focus-within:opacity-100(ApprovalsInboxPage.tsx:687),鼠标悬停或键盘聚焦到该行才显示。
  • 走查时整页看不到任何行内操作,只看到底部一行快捷键提示;手机卡片上的两个按钮是常显的。

要做的

  1. 桌面列表的行内「通过」「驳回」默认可见(去掉 opacity-0 的悬停门)。
  2. 两个按钮带文字或至少带可见的 tooltip 与 aria-label;需要填写决策输入的请求保持现在的禁用逻辑并说明原因。

不做的

  • 不改批量操作、快捷键与手机卡片。

验收

  1. 打开「待我审批」,不移动鼠标即可看到每行的通过 / 驳回。
  2. 需要决策输入的行,按钮禁用且悬停能看到原因。

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

图 9 待审批列表

图 9 待审批列表

Reader: domain:ui 车道,改 ApprovalsInboxPage.tsx 的 InlineActions。

Dedupe: repo:objectstack-ai/objectstack ApprovalsInboxPage inline approve reject hover opacity → 0。

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:56Z
    Session: session_01WGufzgh1zkZzDXL36ckWAG
    Thread session: session_01WGufzeVGVo9Dc4j5kxP1vQ
    Account: os-support-ai
    Branch: claude/project-thread-4nu35q (card-thread pinned branch: the harness lets the thread push only this name)
    Worktree: objectstack-issue-34587
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/apps/console/src/pages/system/** (+ tests), 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: 6936544326
    Premise: holds (seat grep at ed45eb9: ApprovalsInboxPage.tsx:687 opacity-0 group-hover:opacity-100)
    Serial constraints cleared: same file as #34586 (seat 3, parallel): this card lands first, #34586 merges main after it (triage 6936557306); no other open PR touches ApprovalsInboxPage.tsx

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

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  6. added a commit that references this issue on Nov 17, 2026
  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    os-dev-report

    {
      "issue": 34587,
      "status": "done",
      "branch": "claude/project-thread-4nu35q",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34621",
      "session": "session_01WGufzeVGVo9Dc4j5kxP1vQ",
      "premise_still_valid": true,
      "summary": "Premise held at 144cdc25: InlineActions (ApprovalsInboxPage.tsx:687) wrapped the desktop row's Approve / Reject in opacity-0 group-hover:opacity-100 focus-within:opacity-100. The hiding classes are gone; each button now shows its translated word beside an aria-hidden icon (the approve/reject keys the phone cards already use), and its accessible name is that word. Rows whose step declares decision outputs keep both buttons disabled; the needsDecisionInputs reason is now each button's title (accessible description) plus the wrapper's title, instead of replacing the accessible name. The Actions header and cells go from w-20 to w-px whitespace-nowrap so the pinned column fits the labelled buttons. Bulk actions, shortcuts, dialogs and phone cards untouched.",
      "tests": "New ApprovalsInboxPage.inlineActionsVisible-34587.test.tsx (4 tests: acceptance 1, acceptance 2, CONTROL quick row, column width). Ablation: ApprovalsInboxPage.tsx swapped to origin/main on disk -> 3 failed | 1 passed (CONTROL), restored with git checkout. pnpm --dir ui exec vitest run apps/console/src/pages/system/ApprovalsInboxPage -> Test Files 17 passed (17), Tests 87 passed (87). Real-browser reading NOT MEASURED (no live approval fixture booted for this S card).",
      "gates": "Local, head b4a90f87 (base 144cdc25): build closure turbo '@object-ui/console^...' 74/74 under the lock (VERDICT command-exit 0); pnpm --filter @object-ui/console type-check VERDICT command-exit 0; npx eslint on the two touched source files exit 0 (0 errors, 13 pre-existing warnings); overlap-check VERDICT clean exit 0. dispatch-gates --commands derived 37; 37 x exit 0. --ran: 37 derived, 37 run, 0 NOT-MEASURED, 0 UNRUN. PR check-runs not concluded at report time; watched via subscription.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 — no MCP GitHub call (only claude-code-remote subscribe_pr_activity for #34621)",
      "api_writes": "2 — POST /repos/objectstack-ai/objectstack/dispatches (relay pr_create, run 44009948600, read-back 5454 B identical, assignees os-support-ai) and this os-dev-report comment on #34587 via scripts/pm/post-stamped.mjs. git push twice.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · tests log Missing translation for approvalsInbox.needsDecisionInputs (language en), falling back to the English default; pre-existing key, unchanged here · noted in PR Acceptance notes, not filed"
      ],
      "deviations": [
        "Visible text labels chosen over tooltip-only (the card allows either; figure 9 shows labels). The Actions column therefore widens to fit its content (w-px whitespace-nowrap) instead of the fixed w-20; it stays pinned right.",
        "PR body attribution links this card thread (session-context rule), not the seat thread named in the order.",
        "Commit trailers are the repo's model-free pair (AGENTS.md), not the harness's model-named co-author line.",
        "Work moved from the primary clone into worktree /home/claude/objectstack-34587 before the first commit (edits had begun in the primary clone, then were carried over by diff)."
      ],
      "files_changed": [
        ".changeset/34587-approvals-inbox-inline-actions-visible.md",
        "ui/apps/console/src/pages/system/ApprovalsInboxPage.inlineActionsVisible-34587.test.tsx",
        "ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx"
      ],
      "head_sha": "b4a90f874871c927c3d76d8a307e5eed341f8651"
    }
  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Delivered · 2026-11-17T04:01Z · PR #34621 merged; this card closed by its Fixes line. Nothing remains on it. pm:dispatched removed. Sibling #34586 (same ApprovalsInboxPage.tsx) now merges main and lands next.

  9. 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