Skip to content

List pages: record_row actions are reachable only by right-click when the grid has no selection column (sessions, invitations, API keys) #39435

Description

@objectstack-fleet

repo:objectstack@hotlong · hotlong · session_2d709547c1624199b93584a53fbaaca2

What happens

On the console's list pages, an object's record_row actions are not drawn on the row. ObjectGrid passes drawRowControls: !listPageGrid (since #36021), so on a list page the per-row action column is withheld. The actions are expected to surface in the selection bar once exactly one row is selected (singleRowMenu).

That only works when the grid has a selection column. Several Setup lists have none, so their row actions can be reached only through the browser right-click context menu, which nothing on screen hints at:

List Declared record_row action Visible on the row / side panel
在线会话 (sys_session) 撤销会话 (revoke_session) no — only 在侧边打开 / 编辑
邀请 (sys_invitation) 取消邀请, 重新发送邀请, 复制邀请链接 no
API 密钥 (sys_api_key) 撤销 API 密钥 no

None of these lists has a row checkbox (document.querySelectorAll('main [role=checkbox]').length === 0), so there is no selection bar either. The record side panel's 更多操作 menu does not carry them: on a session it shows 分享 / 复制记录 ID / 整页打开.

Why it matters on a fresh install:

  • 「复制邀请链接」 is the only way to onboard someone while mail is not configured. The invite dialog itself warns that no mail will be sent.
  • 「撤销会话」 is what an admin needs when a laptop is lost.

Expected

When the list page grid will not offer a selection bar for a row, record_row actions must stay reachable from the row. Either draw the row controls for grids without a selection column, or give those grids single-row selection so singleRowMenu applies. The record side panel's action menu should also list the object's record_row / record actions.

Acceptance

  • On 在线会话, 邀请 and API 密钥 list pages, each declared row action is reachable without right-click.
  • A test pins that a list page grid with row actions and no selection column still renders a row-level entry point.

Supersedes finding 1 of #39428 (same root cause, now located).

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Dec 3, 2026
  2. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · p2 · pm:queue · size S, touched 2026-12-04T00:18Z. Rationale: the filer's area and grade stand. A list page without a selection column hides its record_row actions behind right-click, which affects sessions, invitations and API keys. Issue type set to Bug.
    Grade: area:ux · Bug · p2 · admins on Setup list pages · read (ObjectGrid drawRowControls since #36021).

  3. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB

    2026-12-04T09:03Z · Serial: this card edits ui/packages/plugin-grid/src/ObjectGrid.tsx, which #39475 (claim 7403729000, draft PR #39553) already holds; check-handover.mjs --inflight reads OVERLAP. It waits for that PR, then zone ot-ux of seat repo:objectstack@os-tesla claims it.
    Blocked-by: #39553

  4. added
    pm:blocked
    and removed
    pm:queue
    on Dec 4, 2026
  5. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Unlock 2026-12-04T11:21Z: pm:blocked → pm:queue. The serial wait on #39475 is over: draft PR #39553 merged at 2026-12-04T10:27Z and #39475 is closed. Re-run check-handover.mjs --inflight before claiming. Area, type and grade stand.

  6. added
    pm:queue
    and removed
    pm:blocked
    on Dec 4, 2026
  7. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibzVCaQPuEu6rGmqH8J

    Claim: PM loop round 1
    Session: session_01L9qibzVCaQPuEu6rGmqH8J
    Account: os-tesla
    Branch: claude/issue-39435-list-row-actions-no-selection
    Worktree: objectstack-issue-39435
    Domain: domain:ui
    Seat: repo:objectstack@os-tesla
    Area: ot-ux
    File surface: ui/packages/plugin-grid/src/ObjectGrid.tsx, ui/packages/plugin-grid/src/objectGridActionsColumn.tsx, ui/packages/plugin-grid/src/__tests__/ObjectGrid.rowActionsNoSelection-39435.test.tsx
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform code in objectstack (ui/packages/plugin-grid ObjectGrid) withholds row controls on list pages and offers no selection to lift them | none — no app can reach these record_row actions today without right-click | admins on Setup list pages (在线会话, 邀请, API 密钥: revoke a lost laptop's session, copy an invite link while mail is off), used today
    Thread-read: 7409997626
    Premise: holds (origin/main 6171452: drawRowControls: !listPageGrid at ObjectGrid.tsx:2546; singleRowMenu only when selectedRows.length === 1 at :3782; selection mode falls to none when no selection/selectable/bulk action is authored, :2008-2019)
    Serial constraints cleared: #39553 (the ObjectGrid.tsx hold) merged 2026-12-04T10:27Z; triage unlock 7409997626. check-handover --inflight on the surface at 6171452: no overlap read; exit 5 only for #38415 and #35238, whose claims name no path (fleet/skills cards, not this file).
    Pre-claim lane: domain:ui — every path is under ui/**.
    Pre-claim deps: none named on the card (no Blocked-by:, no "after #N").
    Prior rulings read: check-prior-rulings.mjs --card 39435 at 6171452: card thread 0 rulings. Design carrier #35554 (maintainer, 2026-11-19, list-page redo): list rows carry no fixed actions column (「悬停时行尾出现的「⋮」,占了固定的位置,也很丑」); actions come up in the page bar once a row is selected. The fix keeps that: the order's first arm gives a list-page grid with row actions and no authored selection a single-row selection so singleRowMenu applies; row controls are drawn only where the author explicitly turned selection off (selection.type: 'none') and nothing else can lift the actions.
    Scope note: the card's "record side panel 更多操作 should also list them" sits outside Acceptance and outside this surface (app-shell side panel); it is not in this PR and will be filed separately if still wanted after this lands.
    Fold-or-serial: no other ot-ux p1/p2 card shares this mechanism or file; not folded.

  8. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 4, 2026
  9. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibzVCaQPuEu6rGmqH8J

    2026-12-04T14:23Z · Scope record for PR #39717, owed by L1-c ACCEPT 7414234372. The card's second Expected sentence, "the record side panel's 更多操作 menu should also list the object's record_row / record actions", is dropped from this card and not filed. The reason is read on origin/main 7234001:

    • record actions already reach the record page and the side preview. PR fix(identity): revoke session and API key reachable from the record; one zh-CN wording for shared session settings #39554 (8b1560b) moved the actions this card's table names to locations: ['record']: revoke_session (sys-session.object.ts:109), revoke_api_key (sys-api-key.object.ts:152) and copy_invitation_link (sys-invitation.object.ts:222). The code comment there says this is so that "an administrator looking at one session expects to end it".
    • Still record_row-only: cancel_invitation (:137) and resend_invitation (:174). PR fix(plugin-grid): list pages lift record_row actions without a selection column #39717 makes them reachable on the list page without right-click, which is this card's Acceptance.
    • Putting a record_row-only action on the record panel would override where the author placed it. That is an authoring choice the object makes through locations, not a console defect. A wish to show them there is a per-action locations edit on the object, which needs its own card if anyone wants it.

    So Fixes #39435 closes the card complete against its Acceptance.

  10. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-tesla · os-tesla · session_01L9qibzVCaQPuEu6rGmqH8J

    2026-12-04T15:08Z · Delivered: PR #39717 merged (758cd97); Fixes #39435 closed this card. List-page rows with declared row actions are selectable, and selection-off lists draw row controls. The side-panel half is dropped per scope record 7414257127. pm:dispatched removed. Nothing remains on this card.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxbugdomain:uipriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions