Repository navigation
fix: header navigation overflows the window between 768px and 1080px (#288) - #291
Merged
Merged
Conversation
…288) at the sm breakpoint (768-1279px) assemblies, annotations and alignments move into a "more" menu (findable-ui flatten) and "hprc website" moves into the "help & documentation" menu (findable-ui visible). the header navigation config moves from config.ts to navigation.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: cc-claude-tools <cc-claude-tools@clevercanary.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the responsive header-navigation changes.
No open issues 🎉
What changed in this PR
This PR addresses #288 by regrouping HPRC header navigation at tablet and smaller desktop widths, while preserving the full desktop bar and mobile drawer layout.
Changes:
- Extracts header navigation into a dedicated configuration module.
- At 768–1279px, groups Assemblies, Annotations and Alignments under “More” and moves “HPRC Website” into “Help & Documentation.”
- Uses breakpoint-specific visibility and flattening to retain the existing navigation at other widths.
| File | Description |
|---|---|
site-config/hprc-data-explorer/local/navigation.ts |
Defines shared header navigation with responsive grouping and visibility. |
site-config/hprc-data-explorer/local/config.ts |
Replaces inline navigation with the extracted configuration. |
Review effort: Balanced
frano-m
marked this pull request as ready for review
November 2, 2026 01:13
NoopDog
approved these changes
Nov 2, 2026
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.
Closes #288
What changed
site-config/hprc-data-explorer/local/navigation.tsholds the header navigation (HEADER_NAVIGATION);local/config.tsnow just references it.prod/config.tsspreads the local config, so prod gets the same change.smbreakpoint (768–1279px) the header shows: logo · Samples · Sequencing Data · More ▾ · Help & Documentation ▾.flatten, so at every other breakpoint the menu is replaced by its three links in the same position.sm(findable-ui's per-breakpointvisible), as a plain label. The external-link icon stays only on the top-level link, where it was before.Why
The full header (logo, five data links, "HPRC Website" and "Help & Documentation") needs about 1,085px. findable-ui only collapses to the hamburger menu below 768px, so between 768 and ~1,080px the nav overflowed the header and the window. This follows the same site-config pattern brc-analytics uses for its header ("More" menu at
sm).Assumptions I made
sm: with a third (Assemblies) the bar needs ~800px and would still overflow at 768px.flatten/visiblemaps list findable-ui's current breakpoints (xs, sm, md, lg). If findable-ui ever adds a breakpoint, these maps would need that key.How to verify
Run
npm run build:local && npx serve out, open/assemblies, and resize the browser window (or use devtools' responsive mode).mainwith the findable-ui version in use at the time.Also check that on
/assembliesat 900px "More ▾" is highlighted as the current section.Automated checks run locally: a Chromium sweep of every width from 1600 to 320px in 10px steps (129 widths, no header overflow),
tsc,eslint,prettier --check,npm run build:local, and Playwright e2e (75/75 pass).Screenshots
hprc-data-explorer-288-header-nav-resize.webm
🤖 Generated with Claude Code
🐦 Built with cc-claude-tools