Skip to content

Settings UI: Fix spelling error and make spell checker happy#41403

Merged
vanzue merged 4 commits intomicrosoft:mainfrom
jiripolasek:feature/make-spellchecker-happy
Aug 27, 2025
Merged

Settings UI: Fix spelling error and make spell checker happy#41403
vanzue merged 4 commits intomicrosoft:mainfrom
jiripolasek:feature/make-spellchecker-happy

Conversation

@jiripolasek
Copy link
Collaborator

@jiripolasek jiripolasek commented Aug 27, 2025

Summary of the Pull Request

  • Renames NavigatablePage to NavigablePage to fix a spelling error.
  • Reverts related entries in exclude.txt that triggered a forbidden pattern error in the spell checker.
    • The spell checker does not allow PascalCase words like NavigatablePage in exclude.txt because of its automatic casing rules.

Regression: #41285

Replaces _Navigatable_ to _navigable_ and removes lines from `expect.txt` that triggered forbidden pattern error with spellchecker.
@jiripolasek
Copy link
Collaborator Author

jiripolasek commented Aug 27, 2025

Ping @vanzue

Sorry to intrude, but the invalid entry in expect.txt is causing issues in every build since that PR was merged.

@vanzue
Copy link
Contributor

vanzue commented Aug 27, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vanzue
Copy link
Contributor

vanzue commented Aug 27, 2025

Sorry, my bad, did not notice this, thanks for the correct ❤️

@vanzue
Copy link
Contributor

vanzue commented Aug 27, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@github-actions

This comment has been minimized.

@yeelam-gordon yeelam-gordon requested a review from Copilot August 27, 2025 01:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR corrects a spelling error in the PowerToys Settings UI codebase by renaming NavigatablePage to NavigablePage throughout multiple files. The change also reverts corresponding entries in the spell checker's exclude list to resolve forbidden pattern errors.

  • Fixes spelling error in class name from NavigatablePage to NavigablePage
  • Updates all references across 40+ settings page files (both .cs and .xaml files)
  • Removes spell checker exclusions that were causing pattern violations

Reviewed Changes

Copilot reviewed 60 out of 60 changed files in this pull request and generated no comments.

File Description
src/settings-ui/Settings.UI/Helpers/NavigablePage.cs Renames the base class from NavigatablePage to NavigablePage
src/settings-ui/Settings.UI/SettingsXAML/Views/*.xaml.cs Updates class inheritance declarations to use corrected NavigablePage
src/settings-ui/Settings.UI/SettingsXAML/Views/*.xaml Updates XAML references to use corrected NavigablePage
.github/actions/spell-check/expect.txt Removes excluded terms that caused spell checker violations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jiripolasek
Copy link
Collaborator Author

jiripolasek commented Aug 27, 2025

Seems that the additional merge triggers the spell checker again. Forbidden pattern again, but with a different cause.

the window the matches a line_forbidden.patterns entry: \s(?:an?|the(?! action))\s(?!way|wh|how\b)[A-Za-z][a-z]+[a-qs-z]\s(?:a(?! bit)n?|the)\s.

https://github.com/jiripolasek/PowerToys/blame/c2a6a1f7b43c25312d50d2561f88def7682c1ea4/src/settings-ui/Settings.UI/SettingsXAML/Controls/TitleBar/TitleBar.Properties.cs#L174

@vanzue
Copy link
Contributor

vanzue commented Aug 27, 2025

Seems a false positive, let me fix that

@jiripolasek
Copy link
Collaborator Author

I can’t address it for a few hours—it’s already 4 AM here, and I really need some sleep. 😇😴

@vanzue
Copy link
Contributor

vanzue commented Aug 27, 2025

No worry, thank you so much for initiating, let me fix that

@vanzue
Copy link
Contributor

vanzue commented Aug 27, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vanzue
Copy link
Contributor

vanzue commented Aug 27, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vanzue vanzue merged commit 3ebf0f7 into microsoft:main Aug 27, 2025
9 checks passed
@jiripolasek
Copy link
Collaborator Author

image

@jiripolasek jiripolasek deleted the feature/make-spellchecker-happy branch August 28, 2025 14:30
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.

5 participants