You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Import wizard: when no column is mapped, Tab cannot leave the "Save current" reason span — the mapping selects, Next, Cancel, Back and Close are unreachable by keyboard #33862
Where. Console → any object list → Import → mapping step, ui/packages/plugin-grid/src/ImportWizard.tsx (the template bar's nothingMapped branch: a TooltipTrigger asChild span with tabIndex={0} wrapping the disabled import-template-save-btn, added by #31557).
Reproduction (main a557fa38, stock showcase, seeded admin, headless Chromium with real keyboard events; reproduced on 4 fresh loads, with and without a prior hover):
Open /_console/apps/com.example.showcase/showcase_task → Import.
Upload a CSV whose headers match no field, e.g. foo,bar with one row. The wizard opens the mapping step with nothing mapped.
Press Tab repeatedly from the dialog.
Expected: Tab visits every tabbable in the dialog: the template select, the Save-current reason span, both column-mapping selects, the Next reason span, Cancel, Back and Close (8 stops by DOM).
Actual: focus cycles template select → Save-current reason span → the dialog container → back to the template select. The two — Skip — mapping selects, the import-next-btn wrapper, Cancel, Back and Close are never reached. Shift+Tab stays on the dialog container.
Controls.
CSV title,project (Save current enabled, no wrapper span): Tab reaches all 8 stops.
CSV title,foo (Save current enabled, Next disabled behind its own reason span): Tab reaches the Next span.
So the cycle appears only when the Save-current reason span is drawn.
Impact. A keyboard-only user whose file maps nothing cannot map a column, go Back or leave the dialog except with Escape. This breaks the reach-by-keyboard half of the disabled-control-reason convention for this one control. Every other disabled-with-reason control the item covers is reachable: Archive, Publish, field inspector rail, validation body, Properties group, Reassign…, and Next.
Regression vs 18.4.0: likely not. #31557 (2c6b936) is an ancestor of 18.4.0's tag 181ad7d4. It was not re-measured on an 18.4.0 build.
Triage: first touch → domain:ui · p2 · 2026-11-15T12:49Z
⛔ Not a claim.
From sweep #33761. In the import wizard's mapping step with nothing mapped, Tab cannot leave the "Save current" reason span, so the selects, Next, Cancel, Back and Close are keyboard-unreachable. A keyboard trap blocks keyboard users entirely, so p2.
Claim: PM loop round 1 · 2026-11-15T14:16Z
Session: session_01ADHkmQbwF4p3MGtT3JR5V3 (card thread, dev) · seat session_01ADHkmT2NE3iyG1o6TDg3sf
Account: os-steve
Branch: claude/project-thread-g6aaze
Worktree: objectstack-issue-33862
Domain: domain:ui
Seat: domain:ui#1
File surface: ui/packages/plugin-grid/src/ImportWizard.tsx and its tests; a shared tooltip / disabled-reason component under ui/packages/components only if the root cause lives there (the dev says so); root .changeset/.
Container & model: S, not mechanical (M treatment), mode:thread, model: default tier, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: a keyboard-only user whose CSV maps nothing is trapped between the template select, the Save-current reason span and the dialog container; mapping selects, Next, Cancel, Back and Close are unreachable | none (Escape only leaves) | every Console user importing into any object list
Thread-read: 6894566557
Premise: holds — on origin/main 895783a1 the template bar's nothingMapped branch (ImportWizard.tsx ~L1496–1540) still draws the tabIndex={0} reason span around the disabled save button; last touch 7237146d
Serial constraints cleared: no domain:ui card carried pm:dispatched before this round; ui seat 2's batch (#33863#33858#33857#33856#33723) touches no plugin-grid file
Scope: Root-cause the focus cycle and fix it so Tab reaches all 8 stops in DOM order and Shift+Tab walks back; keep the disabled-control reason reachable; pin with real keyboard input, card controls green, ablation red. Fixes #33862. Order: /mnt/project-files/ui-seat1/standard-order.md + 33862-delta.md. Summons: the maintainer's 「开 skills spec ui devx 座位,任务多的可以考虑开多个座位。」 (this project, 2026-11-15T14:04Z).
{
"issue": 33862,
"status": "done",
"branch": "claude/project-thread-g6aaze",
"pr": "https://github.com/objectstack-ai/objectstack/pull/33960",
"session": "session_01ADHkmQbwF4p3MGtT3JR5V3",
"premise_still_valid": true,
"summary": "Root cause: with nothing mapped, focusing the Save-current reason span opens its tooltip, whose content @object-ui/components mounts inline, inside the dialog. Tab blurs the span and the content unmounts; in a native focus move Chromium runs microtasks between blur and focus with activeElement on body, and the trapped Radix FocusScope's MutationObserver reads that removal as 'the focused element was removed' and focuses the dialog container, so the browser abandons the move (measured: tooltip inside dialog, one removal on Tab = the reason text, focus ends on the dialog). Fix: the reason tooltip's TooltipContent renders through createPortal(..., document.body); the span, its aria-describedby, the sr-only reason and the tooltip text are unchanged, so the reason stays keyboard-reachable. Other wrappers: Next's reason span has no tooltip (no trap); every other tabIndex-0 tooltip wrapper site sits outside any modal dialog (static read, matches the card's QA pass); DisabledReasonTrigger (action:* renderers) would trap only when metadata places a disabled action inside a modal dialog, not measured.",
"tests": "New real-Chromium pin ui/e2e/import-wizard-keyboard-tab-order.spec.ts (Build & E2E UI lane): native Tab/Shift+Tab via page.keyboard, no .focus() calls. base 895783a1: 2 failed (nothing-mapped walk shows the card's cycle import-template-select, reason:import-template-save-btn, dialog; tooltip case), 2 passed (controls title,project and title,foo). head 71c3677d: 4 passed. Ablation on 71c3677d via scripts/ablation-replace.mjs (anchor '{createPortal(' 1->0, inline replacement 0->1, blob 8c3f781e0f72->0d5bd53b2bd1): 2 failed, 2 passed; restore proven blob == HEAD, git diff HEAD empty. No dist in this path: the spec bundles ImportWizard from src with Vite. vitest packages/plugin-grid/ under the lock: Test Files 283 passed (283), Tests 2443 passed (2443), VERDICT command-exit 0. plugin-grid type-check + ui type-check:e2e: VERDICT command-exit 0. A user-event pin was measured and rejected: in happy-dom the defect walks all 8 stops, so it cannot go red (see open_questions).",
"gates": "head 71c3677d: dispatch-gates --commands derived 38; all 38 run, each exit 0 (list with codes in the PR body); --ran with exit codes: 38 derived, 38 run, 0 NOT-MEASURED (derived zero). Extra: pnpm check:changeset-fixed exit 0 (roster under .changeset), ui check:new-line-citations 0 new. CI check-runs: in_progress at report time, not waited on.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "4 — issue_read get, issue_read get_comments x2, pull_request_read get; no write tool",
"api_writes": "2 — pr_create via fleet-write relay (PR 33960), this os-dev-report comment via post-stamped",
"files_changed": ["ui/packages/plugin-grid/src/ImportWizard.tsx", "ui/e2e/import-wizard-keyboard-tab-order.spec.ts", ".changeset/33862-import-wizard-save-reason-tab-trap.md"],
"line_budget": "+304 / -1 over 3 files (spec 284, changeset 10, ImportWizard +11/-1)",
"deviations": [
"The pin is a Playwright spec under ui/e2e/, not a user-event vitest test as the delta's example names: a happy-dom user-event walk passes on the defect. The spec is a test of ImportWizard, outside the literal 'its tests in ui/packages/plugin-grid' file surface.",
"PR assignee and review request (session-context default) not set: os-dev and the standard order route PR assignees through the relay/seat; no MCP writes made.",
"PR body follows os-dev's section order rather than the repo template's Why / Human Minimum sections."
],
"open_questions": [
{
"question": "The class is wider than this card: any node a blur removes under a trapped Radix FocusScope is read as the focused element removed, so every inline TooltipContent with a focusable trigger inside a modal Dialog/Sheet/AlertDialog can trap Tab the same way. Close it class-wide?",
"options": [
"A — extend patches/@radix-ui__react-focus-scope.patch: handleMutations refocuses the container only when the last focused element is no longer inside it. Closes the whole class (tooltips and any other blur-driven unmount); touches the patch and the lockfile's patch hash, and every modal dialog's focus handling; pin = this spec plus a FocusScope unit case in components.",
"B — portal TooltipContent in @object-ui/components (a shadcn-local-patch on ui/tooltip.tsx, matching upstream shadcn, which portals it). Closes the tooltip half only; every tooltip in the app moves to body.",
"C — leave it per site; portal each tooltip found inside a modal as cards surface."
],
"recommendation": "A, because the defect is the trap's heuristic, the repo already carries a patch of this exact package for a focus race, and it removes the class without moving every tooltip; it is a separate card (new verification surface), not this PR."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · reach: measured on the import wizard only (this card); other inline-tooltip triggers inside modal dialogs not measured · evidence: Chromium probe on 895783a1, tooltip node inside dialog, removal on Tab, focus to dialog container; mechanism is in Radix FocusScope handleMutations · dedupe words: focus trap tooltip dialog Tab, FocusScope MutationObserver, keyboard trap modal tooltip · carrier: seat (open_questions A)"
]
}
PR #33960 MERGED at 2026-11-15T17:03Z as 159757abc1 through the merge queue; Fixes #33862 closed this card. Delivered: the Import Wizard's save-reason tooltip renders into document.body, so keyboard Tab order no longer traps inside it (pinned by ui/e2e/import-wizard-keyboard-tab-order.spec.ts). Nothing remains on this card; the wider tooltip focus-trap class is follow-up card #33980.
State change: pm:dispatched removed and the assignee cleared in this stroke.
Activity
objectstack-fleet commentedon Nov 15, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:ui· p2 · 2026-11-15T12:49Z⛔ Not a claim.
From sweep #33761. In the import wizard's mapping step with nothing mapped, Tab cannot leave the "Save current" reason span, so the selects, Next, Cancel, Back and Close are keyboard-unreachable. A keyboard trap blocks keyboard users entirely, so p2.
objectstack-fleet commentedon Nov 15, 2026
domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf
Claim: PM loop round 1 · 2026-11-15T14:16Z
Session:
session_01ADHkmQbwF4p3MGtT3JR5V3(card thread, dev) · seatsession_01ADHkmT2NE3iyG1o6TDg3sfAccount:
os-steveBranch:
claude/project-thread-g6aazeWorktree:
objectstack-issue-33862Domain:
domain:uiSeat:
domain:ui#1File surface:
ui/packages/plugin-grid/src/ImportWizard.tsxand its tests; a shared tooltip / disabled-reason component underui/packages/componentsonly if the root cause lives there (the dev says so); root.changeset/.Container & model: S, not mechanical (M treatment),
mode:thread,model: default tier,effort: highClause-②: no
Metadata-protocol: none
Responsibility: a keyboard-only user whose CSV maps nothing is trapped between the template select, the Save-current reason span and the dialog container; mapping selects, Next, Cancel, Back and Close are unreachable | none (Escape only leaves) | every Console user importing into any object list
Thread-read: 6894566557
Premise: holds — on origin/main
895783a1the template bar'snothingMappedbranch (ImportWizard.tsx ~L1496–1540) still draws thetabIndex={0}reason span around the disabled save button; last touch7237146dSerial constraints cleared: no
domain:uicard carriedpm:dispatchedbefore this round; ui seat 2's batch (#33863 #33858 #33857 #33856 #33723) touches no plugin-grid fileScope: Root-cause the focus cycle and fix it so Tab reaches all 8 stops in DOM order and Shift+Tab walks back; keep the disabled-control reason reachable; pin with real keyboard input, card controls green, ablation red.
Fixes #33862. Order:/mnt/project-files/ui-seat1/standard-order.md+33862-delta.md. Summons: the maintainer's 「开 skills spec ui devx 座位,任务多的可以考虑开多个座位。」 (this project, 2026-11-15T14:04Z).objectstack-fleet commentedon Nov 15, 2026
domain:ui#1 · os-steve · session_01ADHkmQbwF4p3MGtT3JR5V3
os-dev-report
{ "issue": 33862, "status": "done", "branch": "claude/project-thread-g6aaze", "pr": "https://github.com/objectstack-ai/objectstack/pull/33960", "session": "session_01ADHkmQbwF4p3MGtT3JR5V3", "premise_still_valid": true, "summary": "Root cause: with nothing mapped, focusing the Save-current reason span opens its tooltip, whose content @object-ui/components mounts inline, inside the dialog. Tab blurs the span and the content unmounts; in a native focus move Chromium runs microtasks between blur and focus with activeElement on body, and the trapped Radix FocusScope's MutationObserver reads that removal as 'the focused element was removed' and focuses the dialog container, so the browser abandons the move (measured: tooltip inside dialog, one removal on Tab = the reason text, focus ends on the dialog). Fix: the reason tooltip's TooltipContent renders through createPortal(..., document.body); the span, its aria-describedby, the sr-only reason and the tooltip text are unchanged, so the reason stays keyboard-reachable. Other wrappers: Next's reason span has no tooltip (no trap); every other tabIndex-0 tooltip wrapper site sits outside any modal dialog (static read, matches the card's QA pass); DisabledReasonTrigger (action:* renderers) would trap only when metadata places a disabled action inside a modal dialog, not measured.", "tests": "New real-Chromium pin ui/e2e/import-wizard-keyboard-tab-order.spec.ts (Build & E2E UI lane): native Tab/Shift+Tab via page.keyboard, no .focus() calls. base 895783a1: 2 failed (nothing-mapped walk shows the card's cycle import-template-select, reason:import-template-save-btn, dialog; tooltip case), 2 passed (controls title,project and title,foo). head 71c3677d: 4 passed. Ablation on 71c3677d via scripts/ablation-replace.mjs (anchor '{createPortal(' 1->0, inline replacement 0->1, blob 8c3f781e0f72->0d5bd53b2bd1): 2 failed, 2 passed; restore proven blob == HEAD, git diff HEAD empty. No dist in this path: the spec bundles ImportWizard from src with Vite. vitest packages/plugin-grid/ under the lock: Test Files 283 passed (283), Tests 2443 passed (2443), VERDICT command-exit 0. plugin-grid type-check + ui type-check:e2e: VERDICT command-exit 0. A user-event pin was measured and rejected: in happy-dom the defect walks all 8 stops, so it cannot go red (see open_questions).", "gates": "head 71c3677d: dispatch-gates --commands derived 38; all 38 run, each exit 0 (list with codes in the PR body); --ran with exit codes: 38 derived, 38 run, 0 NOT-MEASURED (derived zero). Extra: pnpm check:changeset-fixed exit 0 (roster under .changeset), ui check:new-line-citations 0 new. CI check-runs: in_progress at report time, not waited on.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "4 — issue_read get, issue_read get_comments x2, pull_request_read get; no write tool", "api_writes": "2 — pr_create via fleet-write relay (PR 33960), this os-dev-report comment via post-stamped", "files_changed": ["ui/packages/plugin-grid/src/ImportWizard.tsx", "ui/e2e/import-wizard-keyboard-tab-order.spec.ts", ".changeset/33862-import-wizard-save-reason-tab-trap.md"], "line_budget": "+304 / -1 over 3 files (spec 284, changeset 10, ImportWizard +11/-1)", "deviations": [ "The pin is a Playwright spec under ui/e2e/, not a user-event vitest test as the delta's example names: a happy-dom user-event walk passes on the defect. The spec is a test of ImportWizard, outside the literal 'its tests in ui/packages/plugin-grid' file surface.", "PR assignee and review request (session-context default) not set: os-dev and the standard order route PR assignees through the relay/seat; no MCP writes made.", "PR body follows os-dev's section order rather than the repo template's Why / Human Minimum sections." ], "open_questions": [ { "question": "The class is wider than this card: any node a blur removes under a trapped Radix FocusScope is read as the focused element removed, so every inline TooltipContent with a focusable trigger inside a modal Dialog/Sheet/AlertDialog can trap Tab the same way. Close it class-wide?", "options": [ "A — extend patches/@radix-ui__react-focus-scope.patch: handleMutations refocuses the container only when the last focused element is no longer inside it. Closes the whole class (tooltips and any other blur-driven unmount); touches the patch and the lockfile's patch hash, and every modal dialog's focus handling; pin = this spec plus a FocusScope unit case in components.", "B — portal TooltipContent in @object-ui/components (a shadcn-local-patch on ui/tooltip.tsx, matching upstream shadcn, which portals it). Closes the tooltip half only; every tooltip in the app moves to body.", "C — leave it per site; portal each tooltip found inside a modal as cards surface." ], "recommendation": "A, because the defect is the trap's heuristic, the repo already carries a patch of this exact package for a focus race, and it removes the class without moving every tooltip; it is a separate card (new verification surface), not this PR." } ], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: measured on the import wizard only (this card); other inline-tooltip triggers inside modal dialogs not measured · evidence: Chromium probe on 895783a1, tooltip node inside dialog, removal on Tab, focus to dialog container; mechanism is in Radix FocusScope handleMutations · dedupe words: focus trap tooltip dialog Tab, FocusScope MutationObserver, keyboard trap modal tooltip · carrier: seat (open_questions A)" ] }Stamped 2026-11-15T14:59Z.
Generated by Claude Code
objectstack-fleet commentedon Nov 15, 2026
domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf
Landed
PR #33960 MERGED at 2026-11-15T17:03Z as
159757abc1through the merge queue;Fixes #33862closed this card. Delivered: the Import Wizard's save-reason tooltip renders intodocument.body, so keyboard Tab order no longer traps inside it (pinned byui/e2e/import-wizard-keyboard-tab-order.spec.ts). Nothing remains on this card; the wider tooltip focus-trap class is follow-up card #33980.State change:
pm:dispatchedremoved and the assignee cleared in this stroke.fix(plugin-grid): Tab leaves the import wizard's Save-current reason …