Description
This is a UI/UX issue adding a Focus mode toggle on the Market Detail page (app/(dashboard)/events/event-page/). When enabled, the sidebar, breadcrumbs, and right rail dim to 40% opacity and a single keypress (Esc) restores chrome.
Requirements and Context
- Persist preference per session in sessionStorage
- Keyboard shortcut F to toggle, Esc to exit
- Announce mode change via
aria-live
- Must be secure, tested, and documented
- Should be efficient and easy to review
Suggested Execution
- Fork the repo and create a branch
git checkout -b feature/market-focus-mode
- Implement changes
- Edit
app/(dashboard)/layout.tsx
- Add
components/focus-mode/focus-mode-context.tsx
- Test and commit
- Manual test on long market pages
- Cover edge cases (mode + modal open simultaneously)
- Include test output and notes in the PR
Example commit message
feat: focus mode for market detail page
Acceptance Criteria
Guidelines
- WCAG 2.1 AA, motion-safe transitions
- Clear documentation and inline comments
- Timeframe: 96 hours
Description
This is a UI/UX issue adding a Focus mode toggle on the Market Detail page (
app/(dashboard)/events/event-page/). When enabled, the sidebar, breadcrumbs, and right rail dim to 40% opacity and a single keypress (Esc) restores chrome.Requirements and Context
aria-liveSuggested Execution
app/(dashboard)/layout.tsxcomponents/focus-mode/focus-mode-context.tsxExample commit message
Acceptance Criteria
Guidelines