Skip to content

fix(plugin-grid): list grid row actions trigger visible at rest in a muted tone - #28922

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-i24ri9
Nov 2, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-i24ri9

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread

Fixes #28871

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:列表表格「操作」列里每行的 ⋯ 按钮,静止时也画出来(灰色弱化色),鼠标移到该行、行内获得焦点、行被选中、按钮自己获得键盘焦点、菜单打开时,或在触屏上,变为正常前景色。菜单里有哪些项、各项的显示条件和顺序都不变。
  • 为什么改:表头「操作」一直在,但桌面端按钮在鼠标移上行之前是透明的,整列看起来是空的,读者会以为「没有可用操作」。
  • 风险与回滚:只改 ui/packages/plugin-grid 一个组件里那个按钮的样式类,不动 spec、服务端、元数据和菜单逻辑。弱化色用的是文字色(text-muted-foreground),不是透明度,对比度与其它次要图标一致。回滚 = revert 本 PR。
  • 先看:ui/packages/plugin-grid/src/components/RowActionMenu.tsx 里 data-testid="row-action-trigger" 那个按钮的 className;再看新测试 RowActionMenu.atRest-28871.test.tsx。
  • 两分钟验证:cd ui && pnpm exec vitest run packages/plugin-grid/src/components/__tests__/RowActionMenu.atRest-28871.test.tsx,应 1 个文件 4 个用例全部通过;或在 Console 打开线索列表(1440 px),不移动鼠标就能看到每行的 ⋯。
  • 需要你做的:无,席位落地。

What changes

RowActionMenu's ⋯ trigger (data-testid="row-action-trigger", the one the list grid's _actions column draws per row):

  • At rest: drawn on every row, on every pointer type, in text-muted-foreground. The opacity-0 / transition-opacity pair is gone, so nothing hides the trigger before the pointer reaches the row.
  • Full strength (text-foreground) on row hover (group-hover/row), focus within the row (group-focus-within/row), a selected row (group-data-[state=selected]/row), an open menu (data-[state=open]), its own keyboard focus (focus-visible) and a coarse pointer (pointer-coarse), which cannot hover.
  • The tone is a text colour, not an opacity, so the resting glyph keeps the same contrast as every other muted secondary icon. The ghost variant's own hover:bg-accent hover:text-accent-foreground still applies when the pointer is on the button itself.

Unchanged: the menu's items, their gates and their order (useRowActionPlan, #28434), the inline primary buttons, the empty-menu guard (no trigger when the plan offers nothing), the header (objectGridActionsColumn.tsx is not touched), the 44 px touch target, and the accessible name. No key, option or prop is added.

Tests

  • RowActionMenu.atRest-28871.test.tsx (new, 4 cases, dom project). jsdom applies no stylesheet, so visibility is read off the classes that decide it, as data-table-leadingCell-12423.test.tsx does:
    • at rest the trigger carries no opacity-0 (under any variant), invisible, hidden or sr-only, and keeps its accessible name;
    • it rests in text-muted-foreground and carries the five full-strength variants;
    • the only pointer-coarse: class is pointer-coarse:text-foreground, so a coarse pointer strengthens the tone and is never what makes the trigger appear;
    • control: opening the menu flips the trigger's data-state to open (the state data-[state=open]: keys on) and shows the item.
Ablation (scripts/ablation-replace.mjs, at 7d46751, source-resolved, no dist)
  • opacity-0 put back at rest (text-muted-foreground transition-colors to text-muted-foreground opacity-0 transition-colors): 1 failed ("is drawn at rest: nothing hides it before the pointer reaches the row"), 3 passed. Restored, blob adea0869 equal to HEAD, git diff HEAD empty.
  • The coarse-pointer leg put back to an opacity reveal (pointer-coarse:text-foreground to pointer-coarse:opacity-100): 1 failed (the every-pointer-type case), 3 passed. Restored, blob adea0869 equal to HEAD, git diff HEAD empty.

Acceptance notes

Verification

All on the final head 7d467519 (base origin/main b15b634c), after pnpm install --frozen-lockfile and turbo run build --filter='@object-ui/plugin-grid^...' plus formula, sdui-parser, lint and client (49 tasks, exit 0), under scripts/pm/os-verify-lock.sh.

  • The whole packages/plugin-grid/ vitest suite (--maxWorkers=2): 271 files, 2353 tests passed. The five RowActionMenu* files alone: 81 passed.
  • pnpm --filter @object-ui/plugin-grid run type-check (both tsc programs, the test one included): exit 0.
  • ESLint on the two changed tsx files: exit 0, no findings.
  • Derived gates (node scripts/pm/dispatch-gates.mjs --commands): 34 of 34 run, each exit 0 (check:type-check-debt and pnpm --dir ui exec vitest run scripts/ under the lock; the latter 169 files passed, 2 skipped), including node scripts/check-sdui-manifest.mjs and the PR-body gates with this body as GITHUB_EVENT_PATH. --ran reconciles 34 derived, 34 run, 0 NOT-MEASURED, 0 UNRUN. check-partof-closing-keyword with PR_BODY: exit 0. ui check:new-line-citations: 0 new citations.
  • Not run locally: the other packages whose tests click row-action-trigger (plugin-view, plugin-designer, app-shell). They find the trigger by test id and never read its classes; CI's Test UI runs them.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QsR2jSUCWFfGqhaRR97caT

The list grid always draws its Actions header, but the row trigger was
opacity-0 on a fine pointer until the row was hovered, so the column
looked empty. Draw it on every row in text-muted-foreground on every
pointer type, full strength on row hover, focus-within, selection, its
own focus, an open menu and a coarse pointer. Menu set, gates and order
unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jSUCWFfGqhaRR97caT
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 2, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · zhuangjianguo · session_01QsR2jUJ19MstFvFhjgiYTu

席位核对 · ACCEPT · 2026-11-02T04:35Z

Head-sha: 7d4675194bcf6ed1fb6dfe792a7372d15d093cde

  • Shape:
    • The PR is a draft against main. Its first content line is Fixes #28871, and no other card sits beside a closing keyword.
    • 3 files, +105 / −5. No governed path: check-governed-merges --pr 28922 reports NOT governed.
    • Clause-②: no and Metadata-protocol: none start their lines in the body and the changeset, as claimed (6568422485). The changeset is patch.
  • Read in the diff:
  • Gates (check-runs on this head): 44 success, 11 skipped, 0 failed or pending. mergeable_state is clean.
  • Tests (dev): the new pin RowActionMenu.atRest-28871.test.tsx has 4 cases. The full plugin-grid suite passes (271 files / 2353 tests), and type-check and ESLint are clean. Two ablations went red (opacity-0 back at rest; a coarse-pointer opacity reveal) and were restored. Derived gates: 34 of 34 exit 0.
  • Out of scope: the data-table renderer's own row trigger and the open-as-page link keep the hover-reveal. Filed as components data-table: the row ⋯ actions trigger is still hidden at rest on a fine pointer, as the list grid's was before #28871 #28923.
  • NOT MEASURED: the seat ran no live session.
  • Landing: ordinary queue landing, pr_ready then automerge_enable. Fixes #28871 closes the card on merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 2, 2026 04:36
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge November 2, 2026 04:36
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit ff88105 Nov 2, 2026
56 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-i24ri9 branch November 2, 2026 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

1 participant