Repository navigation
Fix Namespace story focus and correct Console dogfood steps - #3290
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR focuses Namespace dialog openers in Storybook and corrects keyboard-navigation and mobile-theme walkthroughs. Example: Open the Create Namespace mobile story at 390px and press Escape.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open for maintainer triage. This PR makes a focused fixture repair and corrects instructions to match current Console behavior; no actionable defects were found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherStorybook feeds scenario actions and simulated API responses into the production Console components; these changes affect preview setup and contributor walkthroughs. flowchart TB
A[Storybook scenario] --> B[Preview action runner]
B --> C[Focus and click opener]
C --> D[Production Namespace dialog]
D --> E[Browser restores focus]
Technical reviewBest possible solution: Retain the existing production behavior and apply these focused fixture and walkthrough corrections. Do we have a high-confidence way to reproduce the issue? Source establishes the unfocused scripted click and the stale walkthrough expectations; no target code, builds, or tests were executed during this read-only review. Is this the best way to solve the issue? The patch uses the existing focus action and corrects instructions against their current owners, providing a small, complete repair without introducing another behavior path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a8d0bd51fff5. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 23, 2026, 6:14 AM ET / 10:14 UTC. |
The Namespace Storybook scenarios now focus Create Namespace before their scripted click. A programmatic click does not focus a button, so Escape previously closed the dialog but left focus on the page. The scenarios now reproduce a real click: Escape returns focus to the opener. This changes fixture setup only.
Updated two dogfood guides to match the actual Console: End focuses Access on the First version story; Enter opens it. A long theme name wraps in the drawer while the phone bar truncates it to keep controls reachable.
Verified against the built Storybook in Chromium at 390px: scripted Escape failed to restore focus before the change and restored it afterward; a real click restored focus on both. Also verified Access → Workspace files → Back twice returns focus to Configuration and the full theme name is visible in the drawer. The static build, changed fixture lint/format, and diff checks passed. Storybook uses simulated API state.