Repository navigation
Conversation
Contributor
Code Metrics Report
Details | | main (b8ead52) | #660 (d405593) | +/- |
|---------------------|----------------|----------------|-------|
+ | Coverage | 89.5% | 89.5% | +0.0% |
| Files | 236 | 236 | 0 |
| Lines | 7517 | 7518 | +1 |
+ | Covered | 6732 | 6734 | +2 |
+ | Test Execution Time | 3m20s | 3m10s | -10s |Code coverage of files in pull request scope (94.4% → 94.7%, patch 100.0%)
Reported by octocov |
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.
Motivation
A parent page that returns
redirectTo()currently removes its entire subtree from Command Palette entries and automatic sidebar navigation. This makes reachable child pages disappear even though page guards apply only to their own index routes, not to descendants.Redirect-only pages without a component are also valid navigation entry points, but were treated as non-navigable namespaces. Redirecting to a default child should not require a placeholder component or hide the parent link.
Design Decision
Keep redirect behavior separate from visibility
Only
hidden()prunes a navigation subtree. Aredirectresult makes the page navigable even without a component, while componentless pages returningpass()remain non-clickable. Links retain their original paths so the route guard runs on navigation rather than baking its redirect destination into the menu.This applies to both shared static navigation and current-path-aware dynamic Palette entries. AutoSidebar's display depth and page-guard inheritance remain unchanged.
Summary
pass()/hidden()behavior, and AutoSidebar/Palette integration.