Skip to content

fix(navigation): Stop warning when a page without regions consumes the whole route - #3231

Merged
kazo0 merged 1 commit into
mainfrom
dev/sb/nav-empty-route-warning
Oct 14, 2026
Merged

kazo0 merged 1 commit into
mainfrom
dev/sb/nav-empty-route-warning

Conversation

@kazo0

@kazo0 kazo0 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): none

PR Type

  • Bugfix

What is the current behavior?

Every navigation to a page with no nested regions (no uen:Region.Attached inside it) logs:

Region '' has no children to forward request to (route: '', view loaded: True)

The ControlNavigator shows the page, trims its segment, and always forwards the remainder to child regions so nested IsDefault routes 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 in 0cfeee3a3, so it now shows up in most apps.

What is the new behavior?

  • Empty remaining route + no child regions → Debug.
  • Non-empty remaining route + no child regions (e.g. TestPageTwo/Missing) → still Warning.
  • Parking of the request is unchanged (it still resumes defaults if a child region attaches later).

PR Checklist

  • Tested code with current supported SDKs (runtime tests, net10.0-desktop head)
  • Docs have been added/updated — n/a, log level only
  • Unit Tests and/or UI Tests for the changes have been added
    • Given_LeafPageNavigation.When_NavigatingToPageWithoutRegions_Then_NoChildrenWarningIsNotLogged — red before the fix, green after
    • Given_LeafPageNavigation.When_RouteHasUnconsumedSegment_And_PageHasNoRegions_Then_NoChildrenWarningIsLogged — guards the misconfiguration warning
    • CapturingLoggerProvider extracted from Given_Navigation_VmCreationFailure for reuse
  • Wasm UI Tests are not showing unexpected differences
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Local runtime-test run (!_HotReload, desktop): 96 passed / 17 failed on this branch vs 94 passed / the same 17 failed on main — the failures are pre-existing (ComboBox mouse, ChainedGetDataAsync, etc.).

🤖 Generated with Claude Code

https://claude.ai/code/session_01XahdatfNAyqQSTvg9uvmqr

…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
kazo0 enabled auto-merge October 14, 2026 18:20
@mergify

mergify Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

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.

@kazo0
kazo0 merged commit 82c423f into main Oct 14, 2026
25 of 26 checks passed
@kazo0
kazo0 deleted the dev/sb/nav-empty-route-warning branch October 14, 2026 18:44
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]>
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]>
agneszitte added a commit that referenced this pull request Nov 3, 2026
…6.7-sr3

fix: get servicing/7.4 ready for 6.7 SR3 (backport #3228, #3231, #3235, #3249, #3254, #3259; Uno floor 6.7.65)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants