Simplify the practical lab interface - #5
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fade02b976
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const selectScreen = (screen: ScreenId) => { | ||
| onScreenChange(screen); | ||
| closeMenu(); |
There was a problem hiding this comment.
Return focus after choosing a screen
When a keyboard user activates either screen command, closeMenu() collapses the <details> while focus remains on the now-hidden menu button. This leaves no visible focus indication until the user tabs again; move focus to the menu <summary> before or after closing, as endSession() already does.
Useful? React with 👍 / 👎.
What changed
Why
The previous layout stacked navigation, introduction, objective, four disclosure pulls, a toolbar, the map, and the selected-node CTA. On mobile the map and primary action started below the initial viewport, forcing beginners to decode the interface before they could act.
User impact
The first view now contains only the current task, objective, map or hypothesis choice, and primary action. Additional complexity appears only after the learner opens the labelled menu or tool shelf.
Validation
npm run check