Skip to content

grid list view: a row's built-in Edit / Delete greyed by userActions.*.disabledWhen gives no reason (plugin-grid RowActionMenu), unlike data-table since #35293 #35334

Closed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

Filing gate: ③ an out-of-scope finding of the #35293 dev (os-dev-report 7000362127, PR #35331), read in code at 00cfb78, not driven live. Follow-up of #35293 / #35135 family, nested under #35135.
Reader: domain:ui (ui/packages/plugin-grid/src/components/RowActionMenu.tsx, published @object-ui/plugin-grid). Suggested-grade: p2 · same reach and same ruling as #35135 / #35293 (UX × not every user every time).
Dedupe: plugin-grid row action disabledWhen reason, BuiltinRowActionItem disabled reason, ObjectGrid row Edit greyed no reason — none open.

维护者速读

ObjectGrid 列表(例如 app-showcase 的发票,status == 'paid' 时编辑变灰)的行菜单「编辑」「删除」变灰但不说原因。#35288 修了记录页,#35331 修了 data-table 行菜单;plugin-grid 的行菜单是同一缺口的第三处。

Facts (origin/main 00cfb78)

  • Producer: examples/app-showcase/src/data/objects/invoice.object.ts declares userActions.edit.disabledWhen on record.status == 'paid'.
  • Path: plugin-grid ObjectGrid → RowActionMenu → BuiltinRowActionItem (ui/packages/plugin-grid/src/components/RowActionMenu.tsx), which renders <DropdownMenuItem disabled={disabled}> with only icon and label: no reason, no title, no accessible description.
  • Ruling 6996106574 (route B on record page: an Edit disabled by userActions.edit.disabledWhen gives no reason, unlike the state and approval locks #35135): the generic actions.notAvailableForRecord sentence, no protocol change, no new key. useDisabledReason / DisabledReasonMenuLabel / menuItemReasonAria already exist in @object-ui/components (renderers/action/disabled-reason).

Ask

Apply route B to plugin-grid's built-in row Edit / Delete, matching #35331: when the declared disabledWhen holds, show actions.notAvailableForRecord as a visible second line and accessible description; accessible name stays the label. ⚠ A verdictPending leg (predicate not yet evaluated) must NOT earn the reason. Pins: greyed item shows the reason; CONTROL: no predicate, predicate not holding, and pending verdict show none. Ablate red. Clause-②: no expected (check whether the helpers are exported from the published package entry; if a new export is needed, say so).

⛔ Not a claim.

Activity

  1. added
    pm:queue
    domain:ui
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

    Claim: PM loop round 6 · area ux-2 (lease:ux-2, leased by seat 5 at 05:14Z; route B per ruling 6996106574 on parent #35135) · 2026-11-19T05:38Z
    Session: session_01Utp6CZrgaiMgTJCnswR6jQ
    Account: os-bill
    Branch: claude/issue-35334-grid-row-action-reason
    Worktree: objectstack-issue-35334
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface: ui/packages/plugin-grid/src/components/RowActionMenu.tsx (the built-in row Edit/Delete item), its tests, root .changeset/. ⛔ No packages/spec/**, no new i18n key (reuse actions.notAvailableForRecord), no change to @object-ui/components. Stop on breach and report.
    Container & model: S, mode:subagent, model: default — no path-derived mandate, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: ui plugin-grid RowActionMenu.tsx in objectstack greys the built-in row Edit/Delete under userActions.*.disabledWhen with no reason; no platform path covers it (#35288 fixed the record page, #35331 the data-table row); every ObjectGrid list reader of an object that declares disabledWhen (e.g. app-showcase invoice, status == 'paid')
    Thread-read: none
    Premise: holds — on origin/main: BuiltinRowActionItem (RowActionMenu.tsx :469) renders <DropdownMenuItem disabled> with icon and label only; the same file's custom-action item already uses useDisabledReason / menuItemReasonAria / DisabledReasonMenuLabel (:430-449)
    Serial constraints cleared: none — no open PR touches RowActionMenu.tsx (live read of all open PRs' files at claim time)
    Pre-claim lane: domain:ui (ui/packages/plugin-grid/**)
    Pre-claim deps: parent #35135 closed (PR #35288 merged 1b2cd80608); sibling #35293's PR #35331 is in the merge queue and touches a different package
    Prior rulings read: disabledWhen, disabledReason, notAvailableForRecord, verdictPending → ruling 6996106574 (route B, generic sentence, no new key) binds; objectui#4515 (disabledWhen fails soft) and objectui#11242 (custom disabled fails closed) kept as documented in the file; none conflicts

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
    os-dev-report

    {
      "issue": 35334,
      "status": "done",
      "branch": "claude/issue-35334-grid-row-action-reason",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35371",
      "head": "823d092a",
      "session": "session_01Utp6CZrgaiMgTJCnswR6jQ",
      "premise_still_valid": true,
      "summary": "Route B (ruling 6996106574) applied to plugin-grid's BuiltinRowActionItem, matching #35331: when the declared userActions.*.disabledWhen holds, the built-in row Edit / Delete shows the generic actions.notAvailableForRecord sentence as a visible second line (DisabledReasonMenuLabel) and as aria-describedby (menuItemReasonAria), with the accessible name kept on the label via aria-labelledby. The reason is fed from the disabledWhen verdict alone, so an item greyed only by verdictPending earns none. No spec change, no new i18n key, no new export (helpers already imported in this file and exported from the @object-ui/components entry), so Clause-②: no and Metadata-protocol: none hold as measured. Card assignee left untouched (already os-bill).",
      "assumptions": {
        "A1": "HOLDS at base e4bfa339: BuiltinRowActionItem rendered DropdownMenuItem disabled={verdictPending || (predicates?.disabledWhen != null && isDisabled)} with only icon + label, no reason, no aria-describedby.",
        "A2": "HOLDS: RowActionMenu.tsx already imports useDisabledReason, DisabledReasonTrigger, DisabledReasonMenuLabel, menuItemReasonAria from @object-ui/components (RowActionMenuItem uses them); the package entry ui/packages/components/src/index.ts re-exports them from renderers/action/disabled-reason. Zero import or export change.",
        "A3": "HOLDS: verdictPending is OR-ed only into the item's disabled prop. Expression fed to the hook: useDisabledReason(disabledByPredicate) with const disabledByPredicate = predicates?.disabledWhen != null && isDisabled; called after useRowPredicate and BEFORE the `if (!isVisible) return null` early return; disabled = verdictPending || disabledByPredicate. Pending + predicate-holding shows the reason (the resolved disabledWhen verdict is true); recorded in PR Acceptance notes, not pinned separately."
      },
      "files_changed": [
        "ui/packages/plugin-grid/src/components/RowActionMenu.tsx (+14 / -2)",
        "ui/packages/plugin-grid/src/components/__tests__/RowActionMenu.test.tsx (+85, one new top-level describe in the existing shared harness file)",
        ".changeset/35334-grid-row-disabledwhen-reason.md (new, '@object-ui/plugin-grid': patch, Clause-②: no, Metadata-protocol: none)"
      ],
      "tests": "At head 823d092a. `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-grid/src/components/__tests__/RowActionMenu.test.tsx` -> Test Files 1 passed (1), Tests 36 passed (36), lock VERDICT command-exit 0 (6 new cases: edit+delete reason pins, no-predicate control, not-holding control, 2 pending-verdict controls). `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-grid/` -> Test Files 289 passed (289), Tests 2495 passed (2495), VERDICT command-exit 0. `pnpm --filter @object-ui/plugin-grid run type-check` (tsc --noEmit && tsc -p tsconfig.test.json) -> VERDICT command-exit 0. Ablation via scripts/ablation-replace.mjs (anchor `useDisabledReason(disabledByPredicate)` x1 -> x0; subject imported by relative src path, no dist leg): (1) `useDisabledReason(false)`, blob 6c931f72c65b -> 9310958693e2, Tests 2 failed | 34 passed (36) = edit and delete reason pins red; restored blob == HEAD, git diff HEAD empty. (2) `useDisabledReason(verdictPending || disabledByPredicate)`, blob -> 016757a93ced, Tests 2 failed | 34 passed (36) = both pending-verdict controls red; restored blob == HEAD, git diff HEAD empty. eslint on the 2 changed files: exit 0, 0 errors.",
      "gates": "Local: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at 823d092a (3 paths vs merge base e4bfa339a) derived 38 commands; all 38 run with exit captured before any pipe, 38 x EXIT=0 (incl. `pnpm --dir ui exec vitest run scripts/` Tests 5092 passed | 2 skipped, check:nul-bytes, check:test-source-alias, check:type-check-coverage, check:sdui-manifest, check:adr-0087-registration --base origin/main). `--ran` reconciliation: 38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED. ui `pnpm check:new-line-citations`: 0 new citation(s). No package outside ui/ touched, so no root closure gate beyond the dependency build (`pnpm --workspace-concurrency=2 --filter '@object-ui/plugin-grid^...' build` VERDICT command-exit 0). CI check-runs on 823d092a at report time: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint · (CI release & engine / ESLint / PM dispatch-gates / docs & code guards / repo & tooling / scoped x3 / tooling self-tests), PR-body guards, Type Check · (consumer / debt ledger / source / workspace) all in_progress; opt-in / queue / schedule rows completed/skipped. Not waited on per contract.",
      "line_budget": "n/a — no skills/** or ratcheted ledger touched",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "deviations": "(1) Two ablation attempts first returned lock queue-timeout (exit 99, holder = sibling #35306's app-shell/console vitest run, alive and at ~210% CPU, ~30 min) before acquiring; the mutation runs inside the locked command, so nothing landed on those attempts (blob read == HEAD 6c931f72c65b after each). Re-queued with the same OS_VERIFY_LOCK_SLOT and ran. (2) PR body footer uses AGENTS.md's session-URL form rather than the harness reminder's robot-emoji form (AGENTS.md wins). (3) Commits carry the model-free trailer pair; no harness-written model trailer present.",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay: (a) pr_create -> POST /repos/objectstack-ai/objectstack/pulls (draft #35371) + POST /repos/objectstack-ai/objectstack/issues/35371/assignees [os-bill], dispatched as one repository_dispatch (run 44474203831, success, read-back identical 5642 bytes); (b) this os-dev-report comment on #35334 via post-stamped.mjs -> POST /repos/objectstack-ai/objectstack/issues/35334/comments. Plus 3 git pushes (not REST).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  5. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
    os-dev-report

    {
      "issue": 35334,
      "status": "blocked",
      "branch": "claude/issue-35334-grid-row-action-reason",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35371",
      "head": "f8e9c2cb",
      "session": "session_01Utp6CZrgaiMgTJCnswR6jQ",
      "premise_still_valid": false,
      "summary": "The premise that this diff causes the queue red does not hold. The red is a timing race inside the gallery test, and its fix is outside this card's file surface, so per the order I stopped without pushing; the head is still f8e9c2cb. Root cause: renderEntry in ui/examples/schema-catalog/test/catalog-gallery-render.test.tsx waits for drewSomething (elements > WRAPPER_ELEMENTS or non-empty text). The Suspense fallback of the two React.lazy boundaries passes that wait: KanbanBoardCore's import('./KanbanImpl') and plugin-markdown's import('./MarkdownImpl'), which renders a Skeleton element with no text. The 'puts its authored content on screen' case then reads the fallback whenever the dynamic import has not landed yet. In a whole-file run, the earlier 'renders without a red tile' renders of the same entries usually warm the import, so the outcome depends on how fast the file runs. The same 5 cases fail deterministically once those warm-up renders are filtered out, and they fail identically with this card's RowActionMenu.tsx change reverted. The gallery runs in a PR's affected selection only when the diff touches a package it imports (here @object-ui/plugin-grid), which is why other PRs' shard 10 does not show this.",
      "readings": {
        "full_file_at_f8e9c2cb": "`pnpm --dir ui exec vitest run --maxWorkers=2 examples/schema-catalog/test/catalog-gallery-render.test.tsx` -> Test Files 1 passed (1), Tests 579 passed (579), Duration 28.74s, lock VERDICT command-exit 0.",
        "full_file_at_f8e9c2cb_RowActionMenu_reverted": "RowActionMenu.tsx restored to the main-side parent f8e9c2cb^2 blob d08785a2b95b (hash-checked before the run). Same command -> Test Files 1 passed (1), Tests 579 passed (579), VERDICT command-exit 0. After the run, `git checkout HEAD --` restored the file: blob 6c931f72c65b == HEAD, git status clean.",
        "isolated_cases_at_f8e9c2cb": "Same file with `-t \"puts its authored content on screen\"` (the red-tile warm-up renders filtered out) -> Tests 5 failed | 14 passed | 560 skipped (579), VERDICT command-exit 1. The 5 failures are exactly the CI ones: plugin-kanban advanced-kanban-with-badges-and-limits and basic-kanban-board, plugin-markdown advanced-features, basic-markdown and markdown-tables.",
        "isolated_cases_RowActionMenu_reverted": "With the main blob d08785a2b95b, the same `-t` command -> the same 5 failed | 14 passed | 560 skipped, VERDICT command-exit 1. Restored afterwards: blob == HEAD, git status clean.",
        "ci_same_slot_same_files": "Slot 10 of 16, 307 files in every run. PR run 44474241361 at 823d092a: gallery 579 tests | 4 failed, 13595ms. PR run 44475939563 at f8e9c2cb (same diff, same slot): gallery 579 tests passed, 19370ms. Queue run 44479076885 at 975b6883: 579 tests | 5 failed, 15886ms. Other-diff control: PR run 44475255259 (changed @object-ui/app-shell) ran the gallery in slot 1, 579 passed, 20902ms. The same diff goes red and green on the same slot, and both red runs are the faster ones."
      },
      "fix_needed_outside_surface": "ui/examples/schema-catalog/test/catalog-gallery-render.test.tsx. Option A (the ui/AGENTS.md flaky-test rule for content behind a React.lazy boundary): load KanbanImpl and MarkdownImpl at module scope, with the specifier resolving to the same module the components' import() resolves to, plus a one-line comment explaining why. Option B: make renderEntry also wait until the Suspense fallback has cleared, not only for drewSomething. A fixes the cause in the way the repo already prescribes. B is generic but needs a fallback discriminator the file does not have today. Recommendation: A, as its own card in the schema-catalog test lane. This PR can then be re-queued unchanged once that fix lands, or right away if the seat reads the red as unrelated.",
      "files_changed": [],
      "tests": "No code change in this round. Readings are listed under readings. Every run went through scripts/pm/os-verify-lock.sh. The dependency closure was built first with `pnpm --workspace-concurrency=2 --filter '@object-ui/example-schema-catalog^...' build` (VERDICT command-exit 0). Every revert leg was hash-checked against the main blob before running and restored with `git checkout HEAD --`; each restore was confirmed by blob == HEAD and an empty git status. One `-t` attempt at HEAD returned queue-timeout 99 (it never ran) before the run reported above.",
      "gates": "No push and no new head, so no gate re-run. The last verdicts stand: PR-side CI 44475939563 at f8e9c2cb success, including Test UI 12/12 slots. The plugin-grid tests were not re-run because nothing in the plugin-grid tree changed since the 2495/2495 reading at 823d092a, and the merge of main brought no plugin-grid change (git diff f8e9c2cb^2 f8e9c2cb lists only this card's two plugin-grid files).",
      "line_budget": "n/a",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "deviations": "(1) I did not fix or push, per the order's stop-and-report clause: the fix lies outside the claimed file surface. (2) The premise that this diff caused the red is false (see readings).",
      "mcp_calls": "0",
      "api_writes": "1 — this os-dev-report comment on #35334 via post-stamped.mjs (relay): POST /repos/objectstack-ai/objectstack/issues/35334/comments. 0 git pushes this round. CI reads only (GET runs, jobs, job logs).",
      "open_questions": [
        {
          "question": "How should the gallery race be fixed, given it is outside #35334's file surface?",
          "options": [
            "A: new card for catalog-gallery-render.test.tsx, load the lazy implementation modules at module scope (ui/AGENTS.md flaky-test rule); re-queue #35371 unchanged",
            "B: same card, renderEntry also waits for the Suspense fallback to clear",
            "C: widen #35334's claimed file surface to the gallery test and fix it on this branch"
          ],
          "recommendation": "A, because it is the repo's prescribed cure for content behind a React.lazy boundary and keeps #35371 to its card"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: CI required check Test UI goes red on the merge queue for any PR whose affected set includes @object-ui/example-schema-catalog (observed red 2 of 3 times on #35371, queue run 44479076885) · evidence: `pnpm --dir ui exec vitest run examples/schema-catalog/test/catalog-gallery-render.test.tsx -t \"puts its authored content on screen\"` fails the same 5 kanban/markdown cases deterministically on a tree whose ui source equals main apart from this card's RowActionMenu.test.tsx (RowActionMenu.tsx at the main blob); cause: renderEntry's drewSomething wait is satisfied by the Suspense Skeleton fallback of KanbanBoardCore and plugin-markdown's React.lazy boundaries · dedupe words: catalog-gallery-render authored content flaky, React.lazy Suspense fallback gallery, kanban markdown puts its authored content on screen"
      ]
    }
  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

    Closed-out · area ux-2 · 2026-11-19T11:02Z

    reading value
    PR #35371 MERGED through the merge queue as 0ce25984ff (Fixes #35334; this card closed completed)
    contract record none owed (not governed); L1-a ACCEPT 7002566763; the first queue red was the gallery race fixed by #35407

    Delivered: the grid's row action menu shows the authored reason on a built-in row action that a disabledWhen predicate disables, as the data table already does.
    State: pm:dispatched removed; card closed.

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

Metadata

Metadata

Assignees

Labels

area:uxdomain:uip2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions