feat(ui): breadcrumb navigation for nested dashboard pages#23
Merged
Conversation
…l, decline icon field
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Adds contextual/upward navigation to the dashboard. Previously, drilling into an event's Attendees / Configure / Run-Allocation pages left no way back to that event except the browser back button or the sidebar (which dumps you at the top-level Events list). Now every nested page shows a breadcrumb trail.
Components
Breadcrumb(generic, pure): semantic<nav aria-label="Breadcrumb"><ol>,flex-wrap+gap-x-1.5 gap-y-1(wraps cleanly on mobile, no vertical collision), parent segments are links, the leaf isaria-current="page"and never a link.labelisReactNode(supports icon+text without a separate field).EventBreadcrumb(pure, no data fetch): the page passes its already-loadedtitle; shows a fixed-size skeleton whiletitleis undefined (no text-swap flicker). Used on event-detail + attendees.EventBreadcrumbAuto(self-resolving viauseEvent): for pages with no other source for the title — the engine page and the server-rendered configure page. Skeleton while loading;"Event"only as a rare loaded-but-missing fallback.Trails
Events / {title}(detail) ·Events / {title} / Attendees·… / Configure·… / Allocation·Settings / Guide(replaces the lone ad-hoc "← Back to Settings"). Each page's<h1>is preserved as the primary heading. Public/joinand/resultsand the global nav are untouched.Test Plan
tsc --noEmitclean ·npm run lint0 errors ·npm run buildsucceeds.{title}/Eventsnavigates up.🤖 Generated with Claude Code