Skip to content

Standardize use of NavigateToPageArgs in SUI#19831

Open
carlos-zamora wants to merge 1 commit intomainfrom
dev/cazamor/sui/navigateToPageArgs
Open

Standardize use of NavigateToPageArgs in SUI#19831
carlos-zamora wants to merge 1 commit 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).

#include "EnumEntry.h"
#include "Compatibility.g.cpp"
#include "CompatibilityViewModel.g.cpp"
#include "NavigateToPageArgs.g.h"
Copy link
Member

Choose a reason for hiding this comment

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

we shouldn't need the .g.h guys here - but if we do, please move them ABOVE the cpp files.

in general, these should come in auto-included via the Microsoft.Terminal.Settings.Editor.h top-level projection type #include

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

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