Repository navigation
feat(navigation): add route defined tabs - #1272
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Tab contracts and route metadata src/libraries/custom-tool-tabs.ts, src/router.tsx, src/routes/_library/..., src/utils/docsNavTabs.ts |
Custom tool tab definitions and route docsTab metadata are added. Tab configuration accepts custom tools, and active-tab selection accepts an override. |
Custom target navigation src/components/library-layout-navigation.ts, tests/charts-sidebar-navigation.test.ts |
Navigation helpers use typed LibraryId values and classify targets with isCustomToolTarget. Tests cover chart and highlight tabs and updated helper arguments. |
Library layout integration src/components/LibraryLayout.tsx |
Charts-specific menu entries are removed. Configured tabs and route metadata control tab selection and full-bleed layout. Custom-tool links use updated route-origin and intent-preload behavior. |
Estimated code review effort: 3 (Moderate) | ~25 minutes
Change: Feature
Sequence Diagram(s)
sequenceDiagram
participant RouteStaticData
participant LibraryLayout
participant customToolTabs
participant NavigationLink
RouteStaticData->>LibraryLayout: Provide docsTab metadata
LibraryLayout->>customToolTabs: Check library and target
customToolTabs-->>LibraryLayout: Return custom target status
LibraryLayout->>NavigationLink: Configure route origin and preload behavior
Possibly related PRs
- TanStack/tanstack.com#1168: Introduced Highlight theme-editor navigation and custom-tool route handling, which this change configures through shared tab definitions and route metadata.
Suggested reviewers: ladybluenotes, tannerlinsley
Merge Risk: 
Minimal · up to 7ef86
-
No merge-blocking issue was identified.
Pre-merge checks: 
5
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
2a43601 to
65fb2a3
Compare
|
|
Thanks for putting this together! The route metadata also fits the theme editor that's on main now. The branch is updated against main, with a correction to keep the existing chart links under one Examples tab.
|
Summary by CodeRabbit