Skip to content

feat(settings-ui): add update channel selector - #49722

Merged
Niels Laute (niels9001) merged 2 commits into
microsoft:mainfrom
niels9001:niels9001/update-channel-settings-ui
Aug 7, 2026
Merged

Niels Laute (niels9001) merged 2 commits into
microsoft:mainfrom
niels9001:niels9001/update-channel-settings-ui

Conversation

@niels9001

@niels9001 Niels Laute (niels9001) commented Aug 6, 2026 •

Copy link
Copy Markdown
Collaborator

Supersedes #49719, which could not be reopened after its original base branch was deleted when #49414 merged.

Summary of the Pull Request

Improves the update settings introduced by #49414 by replacing the prerelease checkbox with a dedicated Update channel expander. Users can choose between Stable and Insider channels, see the current selection while the expander is collapsed, and access the PowerToys Insider documentation.

The new expander preserves the existing IncludePrereleaseUpdates setting and displays its own managed-by-organization state when the preview update policy is configured.

Update channel expander

PR Checklist

  • Communication: This builds on the update channel work merged in Add preview release versioning and update channel support #49414
  • Tests: No automated tests added; this is a Settings UI presentation change over the existing setting
  • Localization: All end-user-facing strings can be localized
  • Documentation updated: Documentation changes are maintained separately

Detailed Description of the Pull Request / Additional comments

  • Moves IncludePrereleaseUpdates out of the general update settings list into a dedicated SettingsExpander in src/settings-ui/Settings.UI/SettingsXAML/Views/GeneralPage.xaml.
  • Adds Stable and Insider radio-button choices, descriptions, collapsed status text, and an Insider learn-more link.
  • Adds localized strings in src/settings-ui/Settings.UI/Strings/en-us/Resources.resw.
  • Separates the preview update policy warning from the other update settings warnings in src/settings-ui/Settings.UI/ViewModels/GeneralViewModel.cs.

Validation Steps Performed

  • Built src/settings-ui/Settings.UI/PowerToys.Settings.csproj for Debug ARM64 with the repository build script.
  • Applied the repository XAML Styler configuration to GeneralPage.xaml.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4169c03d-5e17-4495-b7b1-8e6af0d6565c
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4169c03d-5e17-4495-b7b1-8e6af0d6565c

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@niels9001
Niels Laute (niels9001) requested a balanced review from Copilot August 6, 2026 18:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Suppressed comments (1)

src/settings-ui/Settings.UI/ViewModels/GeneralViewModel.cs:675

  • IsIncludePrereleaseUpdatesGpoManaged returns _includePrereleaseUpdatesIsGpoDisabled, which is semantically the opposite of what 'managed' often implies (managed can be either enabled/disabled by policy). Consider renaming the property to match the underlying meaning (e.g., IsIncludePrereleaseUpdatesGpoDisabled) or adjusting the backing field/property naming so 'GpoManaged' unambiguously reflects the policy-managed state.
        public bool IsIncludePrereleaseUpdatesGpoManaged
        {
            get => _includePrereleaseUpdatesIsGpoDisabled;
        }
<value>Insider</value>
</data>
<data name="GeneralPage_UpdateChannelInsiderDescription.Text" xml:space="preserve">
<value>Get nightly builds with the latest features and fixes. These builds may be unstable.</value>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Describe the actual Insider update cadence

Severity: medium

The Insider channel receives preview releases, not nightly builds. The current copy overpromises both cadence and freshness.

Suggested change
<value>Get nightly builds with the latest features and fixes. These builds may be unstable.</value>
<value>Receive preview releases with the latest features and fixes. These releases may be unstable.</value>
@niels9001
Niels Laute (niels9001) merged commit 3632265 into microsoft:main Aug 7, 2026
7 of 8 checks passed
@LegendaryBlair Boliang Zhang (LegendaryBlair) added the Product-Settings The standalone PowerToys Settings application label Aug 10, 2026
Niels Laute (niels9001) pushed a commit that referenced this pull request Aug 10, 2026
## Summary of the Pull Request

Fixes Settings navigation to the General page by applying the correctly
typed `SecondaryIsEnabledTextBlockStyle` to
`GeneralPage_UpdateChannelDescription` in
`src/settings-ui/Settings.UI/SettingsXAML/Views/GeneralPage.xaml`.

The previous `SecondaryTextStyle` targets `TextBlock`, so WinUI threw a
`XamlParseException` when applying it to the custom `IsEnabledTextBlock`
control. This prevented `GeneralPage.InitializeComponent()` from
completing.

## PR Checklist

- [x] **Communication:** Regression identified while validating the
v0.101 preview candidate
- [x] **Tests:** Existing Settings tests pass and the runtime regression
was verified
- [x] **Localization:** No end-user-facing strings changed

## Detailed Description of the Pull Request / Additional comments

PR #49722 introduced the incompatible style assignment. This change
reuses the existing `SecondaryIsEnabledTextBlockStyle`, which targets
`controls:IsEnabledTextBlock` and preserves the intended secondary
foreground and 12px font size.

The same regression is present on `stable`; this fix should be included
in the v0.101 release branch after merge.

## Validation Steps Performed

- Built `src/settings-ui/PowerToys.Settings.slnf` in Release x64.
- Ran `Settings.UI.UnitTests.dll`: 185 passed, 0 failed, 0 skipped.
- Launched the fixed Release Settings binary directly on `Overview`; the
General header and Update channel controls rendered.
- Confirmed no new `NavigationService` or `XamlParseException` log
entries and no relevant Event Viewer crash.

Copilot-Session: e9f79ac2-9a7b-4083-834c-0d87e8c83bfd
Boliang Zhang (LegendaryBlair) added a commit that referenced this pull request Aug 11, 2026
## Summary of the Pull Request

Fixes Settings navigation to the General page by applying the correctly
typed `SecondaryIsEnabledTextBlockStyle` to
`GeneralPage_UpdateChannelDescription` in
`src/settings-ui/Settings.UI/SettingsXAML/Views/GeneralPage.xaml`.

The previous `SecondaryTextStyle` targets `TextBlock`, so WinUI threw a
`XamlParseException` when applying it to the custom `IsEnabledTextBlock`
control. This prevented `GeneralPage.InitializeComponent()` from
completing.

## PR Checklist

- [x] **Communication:** Regression identified while validating the
v0.101 preview candidate
- [x] **Tests:** Existing Settings tests pass and the runtime regression
was verified
- [x] **Localization:** No end-user-facing strings changed

## Detailed Description of the Pull Request / Additional comments

PR #49722 introduced the incompatible style assignment. This change
reuses the existing `SecondaryIsEnabledTextBlockStyle`, which targets
`controls:IsEnabledTextBlock` and preserves the intended secondary
foreground and 12px font size.

The same regression is present on `stable`; this fix should be included
in the v0.101 release branch after merge.

## Validation Steps Performed

- Built `src/settings-ui/PowerToys.Settings.slnf` in Release x64.
- Ran `Settings.UI.UnitTests.dll`: 185 passed, 0 failed, 0 skipped.
- Launched the fixed Release Settings binary directly on `Overview`; the
General header and Update channel controls rendered.
- Confirmed no new `NavigationService` or `XamlParseException` log
entries and no relevant Event Viewer crash.

Copilot-Session: e9f79ac2-9a7b-4083-834c-0d87e8c83bfd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.101 Product-Settings The standalone PowerToys Settings application

4 participants