Repository navigation
Move view switcher from header into content toolbar above events - #170
Merged
Merged
Conversation
Adds a ViewToolbar row (result count left, view switcher right) directly above the events content, inside the collapsible filter wrapper so it hides/shows with the filter bar on mobile scroll. Removes the switcher from the site header. Buttons use aria-pressed in a labelled group, with tooltips; on mobile only the active option shows its text label. Styles use theme tokens. localStorage persistence unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…bar) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
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
The Map / List / Table / Gallery switcher moves out of the site header into a new toolbar row directly above the events. That makes it clearer that it controls how the events below are shown.
ViewToolbar: the event count (e.g. 189 events) sits on the left and the segmented view switcher on the right. It uses--theme-bg-listso it reads as part of the content area. It sits right under the FilterBar.shrink-0above<main class="flex-1">.viewMode/onViewChangeprops are removed. It now shows only the logo, the check-in button and sign-in/profile.role=grouplabelled "View events as". Each button hasaria-pressed, anaria-labeland atitletooltip, plus a visible focus ring. On screens narrower thansm, only the active option shows its text label and the others are icon-only. All four options show labels onsmand up.--theme-accent,--theme-accent-muted,--theme-border-primary,--theme-text-*,--theme-bg-primary). I checked it in light-blue and dark.useViewModeis unchanged, so the view mode is still saved to localStorage (sheeets-view). I checked that clicking a view, then reloading, keeps it.EventApp.tsxdiff is minimal: one import, one<ViewToolbar/>line, and the removed Header props.Verification
npx tsc --noEmit: passesnpx next build: passesnpm test: 260 pass, 4 fail. The failures are insrc/lib/__tests__/conferences.test.tsandfilters.test.ts, which this PR doesn't touch./kbw2026in every view, at 1440px and 390px. They are kept locally and not committed.🤖 Generated with Claude Code