Skip to content

Standardize use of NavigateToPageArgs in SUI#19831

Merged
DHowett merged 2 commits intomainfrom
dev/cazamor/sui/navigateToPageArgs
Feb 10, 2026
Merged

Standardize use of NavigateToPageArgs in SUI#19831
DHowett merged 2 commits intomainfrom
dev/cazamor/sui/navigateToPageArgs

Conversation

@carlos-zamora
Copy link
Member

Summary of the Pull Request

Replaces usage of NavigateToXArgs in the TerminalSettingsEditor with NavigateToPageArgs. They all did pretty much the same thing anyways.

References and Relevant Issues

Builds on #19826
Pulled out from #19519

Validation Steps Performed

✅ Navigated through all the SUI pages and subpages

@carlos-zamora
Copy link
Member Author

Fun fact: GH Copilot was super useful here. I was actually able to point it to #19519 and tell it to port the specific change over. It was like 80% successful (it wanted to refactor at one point for some reason).

Copy link
Member

@DHowett DHowett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise no notes - it's great - but I will block for the nit to maintain code hygiene

@DHowett DHowett enabled auto-merge (squash) February 10, 2026 20:14
@DHowett DHowett merged commit 21754fa into main Feb 10, 2026
18 of 20 checks passed
@DHowett DHowett deleted the dev/cazamor/sui/navigateToPageArgs branch February 10, 2026 20:31
carlos-zamora added a commit that referenced this pull request Feb 25, 2026
## Summary of the Pull Request
Consolidates the navigation functions in `MainPage` for the settings UI.
This involved:
- combining all separate `_Navigate()` functions into one big one
- deduplicating `SettingsNav().SelectedItem()` calls
- removing the unnecessary variable for a crumb (just inline creation
and registration)
- removing the `elementToFocus` staging behavior for color schemes and
profile sub pages

## References and Relevant Issues
Builds off the work done in #19519 and #19831

## Validation Steps Performed
Navigate to...
✅ simple top-level pages: Startup, Interaction, Appearance, Rendering,
Compatibility, Add profile
✅ Color schemes and subpages
✅ Actions, subpages
✅ New Tab Menu and folder subpages
✅ Extensions, subpages, and profile/scheme navigation
✅ defaults profile and subpages
✅ specific profile and subpages

Also tested discarding changes on these pages.

✅ search still works and navigates to the correct element

## PR Checklist
Closes #19866
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