Skip to content

Studio "Explain access": the disabled Explain button and the record Pick button give no reason on hover, keyboard focus or to assistive technology #34865

Closed

Description

@objectstack-fleet

qa#1 · os-justin · session_01QSeKYpxQpmErd1ixfkgbYh

What happens

Open /_console/studio/com.example.showcase/access?surface=permission%3Ashowcase_contributor, then open "Explain access" with no Object chosen.

  • Explain is disabled, with no focusable wrapper, no aria-describedby and no title.
  • Pick's only title is "Pick".

Reproduced on 2 fresh loads at 6091b645.

Mechanism

ui/packages/app-shell/src/views/metadata-admin/AccessExplainPanel.tsx: the Explain button around line 634, and Pick around lines 607–615. This is the same class as the closed #32103, #32104 and #32105, under the ux-conventions.disabled-control-reason convention.

QA-source: #34859 · ux-conventions.disabled-control-reason · observed beside the clauses

Activity

  1. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch (R1197, 14:5xZ): p3 · domain:ui → pm:queue.

    Out of focus. Studio "Explain access" gives no reason, to hover, focus or assistive technology, for why the button is disabled. That is an accessibility gap, so p3. Kept open: it has a user effect.

  2. added
    domain:ui
    pm:queue
    on Nov 17, 2026
  3. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY

    Ruling-ref: maintainer 14:43Z 「立一张专题卡,开始执行」 and 15:56Z 「domain 和优先级 不是已经定了吗?为什么现在不能改卡」 · regrade v3 under epic #35205

    Grade: p2 (was p3) · area:ux · UX · UX × not every user every time · 「Studio "Explain access": the disabled Explain button and the record Pick button give no reason on hover, ke…」; UX has no p3 (15:07Z 「和 cloud 对齐」)

  4. added
    priority:p2
    and removed on Nov 18, 2026
  5. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Claim: area ux-1 round 2 · 2026-11-19T01:16Z
    Session: session_01Utp6CbSphdunq2aJq7ktuY
    Account: os-bill
    Branch: claude/issue-34865-explain-disabled-reason
    Worktree: objectstack-issue-34865
    Domain: domain:ui
    Seat: repo:objectstack#5 · area ux-1 (lease:ux-1)
    File surface: ui/packages/app-shell/src/views/metadata-admin/AccessExplainPanel.tsx, its tests, root .changeset/; an existing shared disabled-reason helper is reused, not added. packages/** read-only.
    Container & model: S, mode:subagent, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: AccessExplainPanel.tsx renders the disabled Explain button bare (no focusable wrapper, no aria-describedby, no title) and Pick titled only "Pick" | the closed #32103 #32104 #32105 fixed the same class elsewhere under ux-conventions.disabled-control-reason | every Studio author who opens Explain access before choosing an object
    Thread-read: 6984619398
    Premise: holds (origin/main cdb327fd: Explain disabled={busy || !objectName.trim()} at l.634 with no reason; Pick disabled={!objectName.trim()} at l.612)
    Pre-claim lane: ui/packages/app-shell/** → domain:ui, area ux-1 (lease table).
    Pre-claim deps: none named.
    Prior rulings read: check-prior-rulings → generic term hits (ADR-0090 D6, ADR-0155 D1, ADR-0014 §5 …), none rules on disabled-control reasons; governing rule ux-conventions.disabled-control-reason; thread: triage + regrade only; no conflict.
    Serial constraints cleared: no other ux-1 card touches AccessExplainPanel.tsx; the dev runs overlap-check before the first push.
    Scope: as the card; reason reachable on hover, keyboard focus and to assistive technology for both controls; pins + CONTROL + ablation. Fixes #34865.

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

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 34865,
      "status": "done",
      "branch": "claude/issue-34865-explain-disabled-reason",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35289",
      "session": "session_01Utp6CbSphdunq2aJq7ktuY",
      "premise_still_valid": true,
      "summary": "Premise held on origin/main f4dbcc2153: Explain (disabled={busy || !objectName.trim()}) and Pick (disabled={!objectName.trim()}, title 'Pick') had no reason. Both now sit in the shared DisabledControlReason wrapper (inspectors/_shared.tsx, the one PR #32249 added for #32103/#32104/#32105; reused unedited). The reason is one new i18n key engine.studio.access.explain.needObject ('Choose an object first' / '请先选择对象'); an in-flight Explain gives none; Pick's redundant title is dropped; the disabled predicates are unchanged. Deviation from the fence: the reason string needs the Studio namespace catalogue, so ui/packages/i18n/src/namespaces/studio/en.ts and zh.ts each gain one line, which is where the prior fix of this class put its strings. Diff is 114 lines (+98/-16), over the 50-line self-land bound, so it goes to L1. Final head c35e3cc27e9e51554e953e5e68afe067dfed9b60. The PR body Verification says the local app-shell tests were NOT MEASURED. It was written while the shared lock was held for about 64 minutes by a full app-shell suite run (holder pid 21949, the issue-34122 worktree), and six 9-minute attempts did not acquire it. The tests were measured after the PR opened, and this report supersedes that line.",
      "tests": "At head c35e3cc27e, under the lock: `cd ui && pnpm exec vitest run --maxWorkers=2 packages/app-shell/src/views/metadata-admin/AccessExplainPanel` gave `Test Files 7 passed (7)`, `Tests 51 passed (51)`, VERDICT command-exit 0. Two new cases are in the existing harness AccessExplainPanel.test.tsx as a top-level describe. (1) No object: Pick and Explain are disabled and described by the reason, Pick has no title, Tab from the record id lands on Pick's wrapper and then Explain's, and the tooltip shows the reason. (2) CONTROL: with an object chosen, both buttons are enabled with no aria-describedby, data-disabled-reason or tabindex. Ablation, after committing the fix: the panel file was restored from f4dbcc2153 (grep -c DisabledControlReason=0, needObject=0). Run against the mutant, `Tests 1 failed | 7 passed (8)`; the failure is 'no object: Tab from the record id reaches Pick, then Explain…' and CONTROL stays green, which is the expected direction. It was put back with `git checkout HEAD --`, its hash matches the HEAD blob b24bed0589, and git status is clean. The panel is imported relatively from source, so no dist leg applied. Before the tests could resolve, the framework closure had to be built: `pnpm turbo run build --concurrency=2 --filter='@object-ui/app-shell^...' --filter='!@object-ui/*'` gave 42/42 successful. The first attempt from the package dir was refused by the vitest root guard and nothing ran. App-shell type-check: NOT MEASURED locally (it needs @object-ui/* d.ts, i.e. the full UI dep build); CI Type Check UI = success.",
      "gates": "Local subset, each exit 0 and captured before any pipe: check-adr-0087-registration --base origin/main, check-changeset-no-major --base origin/main, check-empty-changeset --base origin/main, check-sdui-manifest, check:nul-bytes, check:published-files, check:cross-package-test-inputs, check:test-source-alias, check:undeclared-dep-imports, check:closed-ceremony-text, check:type-check-coverage. overlap-check gave VERDICT clean exit 0 before each push. `dispatch-gates --ran` reported 38 derived, 11 run, 27 UNRUN (exit 1). The 27 are left to CI as a declared narrowing. PR check-runs at c35e3cc27e: Lint & Repo Gates success; Lint · ESLint, Lint · PM dispatch-gates, Lint · repo & tooling gates, Lint · docs & code guards, Lint · CI release & engine gates, Lint · scoped (3) all success; TypeScript Type Check success; Type Check UI success; Lint UI success; Build & E2E UI success; Live E2E UI success; Test Core success; Dogfood Regression Gate success; Governed Surface Queue Guard success; Check Changeset success; Check PR Size success; PR-body guards success; Test UI shards 15/16 success, 14/16 in_progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay strokes, each through scripts/pm. (1) fleet-write pr_create: POST /repos/objectstack-ai/objectstack/pulls (draft) plus POST /issues/35289/assignees [os-bill]; the body read back 4397/4397 bytes identical. (2) post-stamped os-dev-report: POST /repos/objectstack-ai/objectstack/issues/34865/comments. git push is not counted here.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  8. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Close-out · 2026-11-19T03:04Z: PR #35289 merged as dc53d4a62b (ACCEPT 6998062636, landing 6998080503); the card closed on merge. pm:dispatched removed.

  9. 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:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions