Repository navigation
fix(navigation): Stop warning when a page without regions consumes the whole route - #3231
Merged
Merged
Conversation
…e whole route - Forwarding an empty route to a region with no children is the normal case for any page without nested regions; log it at Debug instead of Warning - An unconsumed route with no child region to receive it still logs at Warning - Add Given_LeafPageNavigation runtime tests for both cases - Share CapturingLoggerProvider across Navigation UI tests Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XahdatfNAyqQSTvg9uvmqr
kazo0
enabled auto-merge
October 14, 2026 18:20
Kunal22shah
approved these changes
Oct 14, 2026
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
agneszitte
added a commit
that referenced
this pull request
Nov 3, 2026
… tests use - Given_RouteResolverDefault (#3254) logs through CapturingLoggerProvider. main got that helper with #3231, which 7.3 doesn't have - Copied as is from main: test project only, no product change Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 3, 2026
agneszitte
added a commit
that referenced
this pull request
Nov 3, 2026
…e whole route (backport #3231) - Backport of #3231 to servicing/7.4, applied without changes - Also moves CapturingLoggerProvider to its own file, which the #3254 tests use Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
GitHub Issue (If applicable): none
PR Type
What is the current behavior?
Every navigation to a page with no nested regions (no
uen:Region.Attachedinside it) logs:The
ControlNavigatorshows the page, trims its segment, and always forwards the remainder to child regions so nestedIsDefaultroutes can resolve. On a leaf page that remainder is empty and there are no children — the normal case, not a misconfiguration. The log was raised from Trace to Warning in0cfeee3a3, so it now shows up in most apps.What is the new behavior?
TestPageTwo/Missing) → still Warning.PR Checklist
Given_LeafPageNavigation.When_NavigatingToPageWithoutRegions_Then_NoChildrenWarningIsNotLogged— red before the fix, green afterGiven_LeafPageNavigation.When_RouteHasUnconsumedSegment_And_PageHasNoRegions_Then_NoChildrenWarningIsLogged— guards the misconfiguration warningCapturingLoggerProviderextracted fromGiven_Navigation_VmCreationFailurefor reuseOther information
Local runtime-test run (
!_HotReload, desktop): 96 passed / 17 failed on this branch vs 94 passed / the same 17 failed onmain— the failures are pre-existing (ComboBox mouse,ChainedGetDataAsync, etc.).🤖 Generated with Claude Code
https://claude.ai/code/session_01XahdatfNAyqQSTvg9uvmqr