feat(pagebar): add '?' guide affordance + per-page tutorial drawer#1150
Open
psdjungpulzze wants to merge 1 commit into
Open
feat(pagebar): add '?' guide affordance + per-page tutorial drawer#1150psdjungpulzze wants to merge 1 commit into
psdjungpulzze wants to merge 1 commit into
Conversation
Add a help affordance to the standardized PageBar that opens a right-hand slide-over drawer with page-specific tutorial content. - Define the GuideContent model (intro + ordered heading/body steps) and a page metadata registry resolved via resolvePageMeta(pathname). - Factor segment resolution into resolvePageSegment so the title and guide always agree on the active page; inferTitle now reuses it. - Build PageGuide on Radix Dialog (Esc/focus-trap keyboard accessible), reusing the existing side-sheet slide-over and guided-tour visual language. - Hide the '?' when no guide content exists for the page. No agent config update needed: this is a UI help affordance and does not add tools or change agent-visible domain data/workflows. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
?guide affordance to the right side of the standardized PageBar and a per-page tutorial presentation component — a right-hand slide-over drawer that renders page-specific how-to content.Changes
GuideContentmodel (page-registry.ts):introsentence + orderedsteps(each{ heading, body }), plus aPageMetatype and aPAGE_METAregistry keyed by page segment.resolvePageMeta(pathname)resolves guide content for the active page. Segment resolution is factored intoresolvePageSegment, whichinferTitlenow reuses so the title and guide always agree on the active page.PageGuide(page-guide.tsx): a?button + slide-over drawer built on Radix Dialog — keyboard-accessible open/close (Esc, focus trap, restored focus) for free. Reuses the existingside-sheetslide-over pattern and the guided-tour visual language (green accent bar, numbered steps) with design-system styling.?only when authored guide content exists; pages without a guide hide the affordance entirely (graceful empty case).Testing
npm run typecheck✅eslinton changed files ✅Agent config
No PM Agent update needed — this is a UI help affordance and does not add tools or change agent-visible domain data/workflows.
🤖 Generated with Claude Code