Skip to content

chore(winui-sync): Onboard ProgressRing at WinUI 2.6.5 - #26486

Merged
MartinZikmund merged 4 commits into
masterfrom
dev/mazi/winui-sync-progressring
Nov 18, 2026
Merged

MartinZikmund merged 4 commits into
masterfrom
dev/mazi/winui-sync-progressring

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue: closes #26485

PR Type:

  • 🤖 Project automation (WinUI port sync onboarding, with port fixes)

What changed? 🚀

Onboards ProgressRing to the WinUI Port Sync, recorded at WinUI 2.6.5. Before the area was added, the port was caught up to the latest stable release, reviewed line by line against it, and its Uno workarounds were audited.

Starting point

Headers named only WinUI 1.8.4 (the automation peer) and a winui3/main commit (the indeterminate visual). Three files had no header, including ProgressRing.cs itself. Upstream has not changed the control's code since the 1.5.5 import (July 2024), so any starting point in that range gives the same diff. The catch-up started at the proposed 1.8.4 (dc46907e).

Upstream changes 1.8.4 → 2.6.5 (1 file, +6)

Change Verdict
ProgressRing.vcxitems: Perf2026 page entries Not applicable (Windows build plumbing)

Nothing skipped, so no skipped-items issue. Strings already matched upstream exactly.

Line-by-line review against 2.6.5

ProgressRing.cs had never been checked against upstream, and the review found these gaps:

Upstream Uno Result
ProgressRing.cpp / .h ProgressRing.cs (rewritten 1:1) Gaps fixed: TemplateSettings with its SizeChanged/Loaded handlers and ApplyTemplateSettings; UpdateStates toggling AccessibilityView; the m_rangeBasePropertyUpdating re-entrancy guard on Value/Minimum/Maximum; the default-colour fallback to SystemControlHighlightAccentBrush / SystemControlBackgroundBaseLowBrush; Grid layout root. Unmarked differences removed (see the audit)
ProgressRing.idl, Generated/ProgressRing.properties.cpp ProgressRing.Properties.cs (new, DPs moved here) Defaults match. TemplateSettings added
ProgressRingTemplateSettings.cpp / .h, .properties.cpp ProgressRingTemplateSettings.cs (new) Ported. Generated stubs now say "already declared"
ProgressRingAutomationPeer.cpp / .h ProgressRingAutomationPeer.cs Match, except GetClassNameCore. Upstream's hstring_name_of is the fully-qualified name, and Uno returned ProgressRing, so this is fixed. Open PR #26234 makes the identical change, so the two merge cleanly in either order
AnimatedVisuals/ProgressRing{Determinate,Indeterminate}.cpp / .h LottieGen C# output Same composition graph. The differences come from the generator (see the audit)
ProgressRing.xaml, ProgressRing_themeresources.xaml FluentTheme copies Byte-identical to 2.6.5, so they are mapped as mirrors (#26484)
APITests/ProgressRingTests.cs ProgressRingTests.mux.cs Not ported before. VerifyAccessibilityView is now ported
InteractionTests/ProgressRingTests.cs ProgressRingTests.mux.cs Not ported before. 6 of the 7 tests are now runtime tests. The test page's UIA lookups are replaced by direct reads of the same template parts and peer. StoryboardAnimationRetemplateTest uses the upstream WUXC template verbatim, which exercises TemplateSettings. VerifyAxeScanPasses is not applicable (Windows-only Axe tooling)

SharedHelpers.RgbaColor is added as a port of the upstream helper.

Workaround audit

Location What it did Verdict Evidence
ProgressRing.cs Cached the loaded visual (_loadedAsset) instead of recreating it as upstream does Removed All ProgressRing tests pass
OnIsIndeterminatePropertyChanged Called Stop() before updating states Removed When_NoProgress/HalfProgress_IsIndeterminate_Toggle pass
UpdateLottieProgress(fromStart) Re-animated from 0% on each entry into the determinate state Removed Upstream animates from the last value
_isTemplateApplied guard Skipped state updates before the template was applied Removed It blocked the AccessibilityView update: VerifyAccessibilityView failed before, passes now
Colours applied to custom sources (IAnimatedVisualSource2.SetColorProperty) Overwrote the colours of a user's IndeterminateSource/DeterminateSource Removed Upstream themes only the default visuals. New When_Custom_Source_Keeps_Its_Colours failed before, passes now
TryGetColorWithOpacity Folded brush opacity and gradient fallbacks into the colour Removed Upstream uses SolidColorBrush.Color, else the theme fallback
Determinate visual theming Applies Foreground/Background to the determinate visual too Kept, marked WinUI themes only the indeterminate visual, so a determinate ring ignores Foreground there. Keeping Uno's fix for #24555 is a deliberate choice
Brush tracking via Brush.SetupBrushChanged Follows the brush's colour through a weak subscription Kept, marked A 1:1 port (RegisterPropertyChangedCallback on SolidColorBrush.ColorProperty) leaked: When_Add_Remove(ProgressRing, 15) found 45 live rings against a limit of 3. The C++ handler holds a raw this, while Uno's property callbacks are strong references, so a shared theme brush kept every ring alive. The upstream form stays under #else
Range automation events Raises UIA RangeValue property changes Kept, moved to ProgressRing.uno.cs WinUI's ProgressRing raises none; Uno's accessibility bridges need them to announce progress
new bool IsActive Hides DependencyObject.IsActive Kept Language requirement
AnimatedVisuals TODO Uno: markers Deferred CreateAnimations/DestroyAnimations, internal GetThemeProperties Kept LottieGen's C# output implements IAnimatedVisual2, which Uno's player (like WinUI's) supports. GetThemeProperties stays internal because the public surface is API-diffed against WinAppSDK

Tests

  • Runtime (Skia desktop, local): all ProgressRing tests and every leak-test row pass, 107/107 with no retries: ProgressRingTests (9), Given_ProgressRing (12, 3 of them new), Given_ProgressRing_Visuals (4) and Given_FrameworkElement_And_Leak.When_Add_Remove (all rows, including ProgressRing).
  • Before the port: VerifyAccessibilityView, When_Custom_Source_Keeps_Its_Colours and both When_Sized_TemplateSettings_Follow_Width cases failed, and StoryboardAnimationRetemplateTest crashed the app: TemplateSettings threw inside a binding.
  • Compile: Uno.UI and Uno.UI.RuntimeTests.Generic with analyzers on (no UnoFastDevBuild), 0 errors.
  • Tooling: detect.ps1 -AreaFilter progressring reports up to date, with the code diff excluding Strings and both mirrored XAML files. 132 Pester tests pass.
  • Not run: the WinAppSDK head and WASM.

Other

  • Public API: ProgressRing.TemplateSettings and ProgressRingTemplateSettings are now implemented. Their surface matches the generated stubs: public getters and an internal constructor. Nothing is removed.
  • Found while porting: a RepeatBehavior="Forever" storyboard with zero total duration overflows the stack in Uno. Not caused by this PR, and not hit by the ported test, which uses the full upstream template. It will be filed separately.

PR Checklist ✅

🤖 Generated with Claude Code

https://claude.ai/code/session_01TXMNtzW3o9yaCzcTjhsgHm

Copilot AI balanced review requested due to automatic review settings November 14, 2026 21:03
@MartinZikmund MartinZikmund self-assigned this Nov 14, 2026

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 was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Nov 14, 2026
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 24s —— View job


Review of #26486: Onboard ProgressRing at WinUI 2.6.5

Verdict: ship, with a few notes and no blocking findings. I posted no inline comments.

Scope of this review. The checkout has no merge base with origin/master, so git diff origin/master...HEAD failed. I read the final ProgressRing.cs in full. I did not read the other 11 changed files (the tests, areas.json, ProgressRing.Properties.cs, ProgressRing.uno.cs, ProgressRingTemplateSettings.cs and the generated-stub edits). I built nothing and ran no tests. Everything below comes from reading ProgressRing.cs.

Code review assessment of ProgressRing.cs:

  • The port looks faithful to ProgressRing.cpp:
    • The m_rangeBasePropertyUpdating guard is wrapped in try/finally.
    • UpdateStates toggles AccessibilityView.
    • TemplateSettings is created in the constructor and filled in ApplyTemplateSettings.
    • Colours fall back to the theme brushes.
  • The #if HAS_UNO blocks are narrow and each carries a short TODO Uno specific reason, as the repo rules ask.
  • The header is // MUX Reference ProgressRing.cpp and ProgressRing.h with no tag or commit, which is what the sync-area exception requires.
  • Braces, tabs and #nullable enable are all fine. No event Action is declared.

Notes (non-blocking):

  • Division by zero: UpdateLottieProgress divides by Maximum - Minimum. When Min equals Max, fromProgress/toProgress become NaN. Upstream does the same, so this is parity rather than a regression. A When_Min_Equals_Max runtime test would show whether it matters.
  • New visual on every state update: UpdateStates calls SetAnimatedVisualPlayerSource(), so each Loaded and each IsActive or IsIndeterminate change builds a new composition visual. This matches upstream, and it is the behaviour the _loadedAsset removal now relies on. The When_Add_Remove leak rows cover the memory side. I'd still check for churn when a ring is repeatedly re-parented.
  • Non-Uno #else branches: these assign the revoker without disposing the previous one. Nothing compiles them in this repo, but if the #else path is ever enabled, a second Foreground change would leak the first subscription.
  • Validation gap: per the PR description, the WinAppSDK head and WASM were not run. The #if HAS_UNO brush tracking and the determinate-visual theming (ProgressRing keeps its old colour when the brush assigned to Foreground changes colour #24555) are Uno-only, so WinUI parity there rests on code review alone.
  • Housekeeping:
    • The "Docs" and "Screenshots Compare" checkboxes are unchecked, which is reasonable for a sync onboarding.
    • Commit messages follow Conventional Commits.
      · branch dev/mazi/winui-sync-progressring

@mergify

mergify Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@morning4coffe-dev morning4coffe-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Compared ProgressRing.cs against ProgressRing.cpp/.h at winui3/release/2.6.5. The rewrite is a faithful port: constructor (RegisterPropertyChangedCallback for Foreground/Background, TemplateSettings, SizeChanged/Loaded), OnApplyTemplate, SetAnimatedVisualPlayerSource, UpdateLottieProgress (including the PlayAsync(from, to) / SetProgress split), UpdateStates (including the AccessibilityView toggle), ApplyTemplateSettings (diameter additive, anchor point, MaxSideLength), the m_rangeBasePropertyUpdating guards and the Coerce* helpers all match, as do the default-colour resource names. The remaining Uno-specific branches (theming the determinate visual for #24555, Brush.SetupBrushChanged, range automation events) are all marked.

One thing needs fixing before this can go green: the WinAppSDK Build Samples App job fails to compile Given_ProgressRing.cs:

  • Given_ProgressRing.cs(232,71): CS0234: 'ProgressRingIndeterminate' does not exist in the namespace 'Microsoft.UI.Xaml.Controls.AnimatedVisuals'
  • Given_ProgressRing.cs(239,4): CS0117: 'ProgressRing' does not contain a definition for 'IndeterminateSource'

When_Custom_Source_Keeps_Its_Colours builds Uno's LottieGen ProgressRingIndeterminate and sets its Foreground/Background, and it isn't guarded for the native WinUI head. Wrapping the method (or its body) in #if HAS_UNO / [PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)] should be enough. Other new tests in the file look fine for WinAppSDK (TemplateSettings, GetClassName).

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winui-sync-progressring branch from 344667e to e95e0ac Compare November 16, 2026 10:28
Copilot AI balanced review requested due to automatic review settings November 16, 2026 10:28

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 was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 27s —— View job


Fix for the WinAppSDK compile failure: committed locally, not pushed

I couldn't push. git push returned 403: Permission to unoplatform/uno.git denied to github-actions[bot], so the fix is not on the PR branch yet.

The change is in src/Uno.UI.RuntimeTests/Microsoft/UI/Xaml/Controls/Given_ProgressRing.cs. It addresses the CS0234 and CS0117 errors that @morning4coffe-dev reported:

  • When_Custom_Source_Keeps_Its_Colours now has [PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)].
  • The body that uses AnimatedVisuals.ProgressRingIndeterminate and IndeterminateSource sits inside #if HAS_UNO. The #else branch is await Task.CompletedTask;.
  • I put the #if inside the method rather than around it. .claude/rules/runtime-tests.md says wrapping a [TestMethod] in #if breaks test discovery.

Validation: none. I did not build or run anything, so this is a code-review-level change only. The WinAppSDK head needs a CI run to confirm.

To apply it: the commit is local on dev/mazi/winui-sync-progressring as test(progressring): Exclude custom-source test from WinUI head. You can re-run me with push permission, or make the same edit by hand.

I did not address the CodeQL floating-point equality comments (ActualWidth != 0 and Opacity == 0). The ActualWidth check mirrors upstream, and an epsilon comparison isn't needed for the exact-zero checks. Say so if you want them changed anyway.
· branch dev/mazi/winui-sync-progressring

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 was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 18s —— View job


Review of #26486: Onboard ProgressRing at WinUI 2.6.5

Verdict: fix-first. One blocking issue, which is already posted inline.

Severity count: 1 blocking, 0 major, 0 minor.

Scope. I diffed the branch against origin/master and checked the state of Given_ProgressRing.cs. I did not build or run anything. This is a code-review-level result. The port itself was already reviewed above and by @morning4coffe-dev, and I found nothing new in it.

Cross-cutting notes

  • The WinAppSDK compile fix is not on the branch. The earlier bot run committed it locally but could not push (403), so the PR is unchanged. Either apply the edit by hand, or re-run me and ask me to implement it. I didn't change the code, because this run asked for a review.
  • CodeQL floating-point comments. I agree with the earlier assessment. ActualWidth != 0 mirrors upstream and Opacity == 0 is an exact-zero check, so neither needs an epsilon. I'd dismiss both.
  • Screenshot diffs. The 234 Linux and 304 Windows differences are spread across unrelated samples. That looks like baseline drift rather than something this PR caused, but it is unconfirmed. Please check the Screenshots Compare results before merging.
    · branch dev/mazi/winui-sync-progressring

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winui-sync-progressring branch from 5ce63d8 to c4a682d Compare November 18, 2026 06:08
Copilot AI balanced review requested due to automatic review settings November 18, 2026 06:08

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 was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 16s —— View job


Review of #26486: Onboard ProgressRing at WinUI 2.6.5

Verdict: fix-first. The one blocking issue is unchanged since the last review.

Severity count: 1 blocking, 0 major, 0 minor.

Blocking: When_Custom_Source_Keeps_Its_Colours in Given_ProgressRing.cs (line 230) still uses Uno-only APIs with no guard for the native WinUI head. I checked the current branch and the guard is still missing. The WinAppSDK build will keep failing with CS0234 and CS0117 until it is added. The inline comment from the previous review has the exact suggestion: add [PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)] and put the body under #if HAS_UNO inside the method.

Scope: I only checked whether that fix had landed. I did not re-review the port, build anything or run any tests. This is a code-review-level result.

Other notes (unchanged):

  • The CodeQL floating-point comments (ActualWidth != 0 and Opacity == 0) can be dismissed. The first mirrors upstream and the second is an exact-zero check.
  • The screenshot diffs are spread across unrelated samples and are probably baseline drift. That is unconfirmed, so please check the Screenshots Compare results before merging.
  • Your trigger comment's text wasn't included in what I received. If you wanted me to push the fix instead of reviewing, say so in a new @claude comment. A bot run could not push earlier (403), so you may need to apply the edit by hand.
    · branch dev/mazi/winui-sync-progressring

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 247250 found UI Test snapshots differences: skia-linux-screenshots: 241, skia-windows-screenshots: 265

Details
  • skia-linux-screenshots: 241 changed over 2496

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_Showcase.png-dark
    • AnimatedVisualsTestbedPage.png-dark
    • AnimatedVisualsTestbedPage.png
    • AppWindowTitleBar Properties.png-dark
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_AutomationId.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • BasicAcrylicBrushTest.png-dark
    • BasicAcrylicBrushTest.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedBackVisualSourceSamplePage.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Buttons.png-dark
    • CornerRadiusControls.png-dark
  • skia-windows-screenshots: 265 changed over 2496

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png
    • AnimatedVisualsTestbedPage.png
    • AppWindowTitleBar Properties.png
    • AppWindowTitleBar Properties.png-dark
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • Basics Pivot Test.png-dark
    • Basics Pivot Test.png
    • Basics.png-dark
    • Basics.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • Buttons.png-dark
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • BenchmarkDotNet.png-dark

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winui-sync-progressring branch from c4a682d to b2a13dc Compare November 18, 2026 09:48
Copilot AI balanced review requested due to automatic review settings November 18, 2026 09:48

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 was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 15s —— View job


Status check on #26486

Verdict: fix-first. The blocking issue from the last two reviews is still open.

Blocking (1): When_Custom_Source_Keeps_Its_Colours in src/Uno.UI.RuntimeTests/Microsoft/UI/Xaml/Controls/Given_ProgressRing.cs:229-248 is still unguarded for the native WinUI head. It uses AnimatedVisuals.ProgressRingIndeterminate and ProgressRing.IndeterminateSource, which exist only in Uno, so the WinAppSDK build keeps failing with CS0234 and CS0117. I checked the current file, and the fix has not landed.

Fix (keep [TestMethod] outside #if, per .claude/rules/runtime-tests.md):

[TestMethod]
[PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
public async Task When_Custom_Source_Keeps_Its_Colours()
{
#if HAS_UNO
	// existing body unchanged
#else
	await Task.CompletedTask;
#endif
}

Scope. This run was triggered by a push and had no explicit request in it. I only checked whether the fix had landed. I changed nothing, built nothing and ran no tests, so this is a code-review-level result. Earlier bot runs could not push (403). If you want me to apply the edit, say so in a new @claude comment. Otherwise it needs a manual edit.

Unchanged notes

  • The CodeQL floating-point comments (ActualWidth != 0, Opacity == 0) can be dismissed. The first mirrors upstream and the second is an exact-zero check.
  • The screenshot diffs are spread across unrelated samples and are probably baseline drift, but that is unconfirmed. Please check the Screenshots Compare results before merging.
    · branch dev/mazi/winui-sync-progressring

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winui-sync-progressring branch from b2a13dc to 4f1aa81 Compare November 18, 2026 10:31
Copilot AI balanced review requested due to automatic review settings November 18, 2026 10:31

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 was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label Nov 18, 2026
@MartinZikmund
MartinZikmund changed the base branch from master to dev/mazi/winui-sync-progressbar November 18, 2026 10:31
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 10s —— View job


Status check on #26486

Verdict: ship. The blocking issue from the earlier reviews is fixed on the branch.

Resolved: When_Custom_Source_Keeps_Its_Colours in src/Uno.UI.RuntimeTests/Microsoft/UI/Xaml/Controls/Given_ProgressRing.cs:229-253 now has [PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]. The Uno-only body sits inside #if HAS_UNO, with await Task.CompletedTask; in the #else. [TestMethod] stays outside the #if, as .claude/rules/runtime-tests.md requires. That should clear the WinAppSDK CS0234 and CS0117 errors.

Scope. This run was triggered by a push and had no explicit request. I only checked whether the fix had landed. I changed nothing, built nothing and ran no tests, so this is a code-review-level result. Confirm the WinAppSDK head compiles in the next CI run.

Unchanged notes

  • The CodeQL floating-point comments (ActualWidth != 0, Opacity == 0) can be dismissed. The first mirrors upstream and the second is an exact-zero check.
  • The screenshot diffs are spread across unrelated samples and are probably baseline drift, but that is unconfirmed. Please check the Screenshots Compare results before merging.
    · branch dev/mazi/winui-sync-progressring

@MartinZikmund

Copy link
Copy Markdown
Member Author

🤖 Addressed PR comments up to this point

  • @morning4coffe-dev (review): the WinAppSDK compile failure in Given_ProgressRing.cs is fixed in 4f1aa81. When_Custom_Source_Keeps_Its_Colours now has [PlatformCondition(Exclude, NativeWinUI)], with its body under #if HAS_UNO.
  • This PR is now part of a stack (PipsPager → ProgressBar → ProgressRing → RadioButtons), ordered smallest to largest so the areas.json entries merge without conflicts.

@unoplatform unoplatform deleted a comment from nventive-devops Nov 18, 2026
@unoplatform unoplatform deleted a comment from nventive-devops Nov 18, 2026
@unoplatform unoplatform deleted a comment from nventive-devops Nov 18, 2026
@unoplatform unoplatform deleted a comment from unodevops Nov 18, 2026
@unoplatform unoplatform deleted a comment from unodevops Nov 18, 2026
@unoplatform unoplatform deleted a comment from unodevops Nov 18, 2026
@nventive-devops

Copy link
Copy Markdown
Contributor

The build 247311 found UI Test snapshots differences: skia-linux-screenshots: 437, skia-windows-screenshots: 494

Details
  • skia-linux-screenshots: 437 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • ButtonClippingTestsControl.png
    • CheckBox_DisabledInDisabledListView.png-dark
    • CheckBox_DisabledInDisabledListView.png
    • Accessibility_ScreenReader.png
    • Accessibility_Showcase.png
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • Buttons.png-dark
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • Accessibility_Showcase.png-dark
    • AppWindowTitleBar Properties.png-dark
    • AutomationProperties_AutomationId.png-dark
    • BasicAcrylicBrushTest2.png-dark
    • BasicAcrylicBrushTest2.png
  • skia-windows-screenshots: 494 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_ScreenReader.png-dark
    • AnimatedBackVisualSourceSamplePage.png
    • Accessibility_Showcase.png-dark
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedVisualsTestbedPage.png
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_AutomationId.png
    • Basics.png-dark
    • Basics.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Buttons.png-dark
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • AutomationProperties_StructureAndProps.png-dark
    • BasicAcrylicBrushTest2.png-dark
    • BasicAcrylicBrushTest2.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • CompositionPath.png-dark

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winui-sync-progressring branch from 4f1aa81 to bcbb47a Compare November 18, 2026 14:19
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 9s —— View job


Status check on #26486

Verdict: ship (no change since the last check). This run was triggered by a push with no explicit request, so I only reviewed the state of the PR from the comments. I changed nothing, built nothing and ran no tests. This is a code-review-level result.

  • WinAppSDK compile fix: it landed in 4f1aa81, and Martin Zikmund confirmed it. A CI run on the WinAppSDK head is still needed to confirm it compiles.
  • CodeQL floating-point comments: both were answered inline as intentional parity with upstream (ActualWidth != 0 mirrors ProgressRing.cpp, and Opacity == 0 is an exact-zero check). They can be dismissed.
  • Screenshot diffs: the latest build (247311) reports 437 Linux and 494 Windows differences. That is up from 241 and 265 in the previous build, and the changed files are in unrelated samples (BenchmarkDotNet, Buttons, ClipboardTests and others). I haven't confirmed whether this is baseline drift. The rise between builds on the same PR is worth checking against the base branch's own screenshot run before merging. A ProgressRing-dependent sample such as AnimatedVisualsTestbedPage appears in both lists.
    · branch dev/mazi/winui-sync-progressring

Base automatically changed from dev/mazi/winui-sync-progressbar to master November 18, 2026 15:40
MartinZikmund and others added 4 commits November 18, 2026 16:40
Line-by-line review of the port against winui3/release/2.6.5:
- Implement TemplateSettings (ProgressRingTemplateSettings) with the
  SizeChanged/Loaded handlers that keep it current
- Toggle AccessibilityView with IsActive, as UpdateStates does
- Port the range-property reentrancy guard
- Match upstream source handling: no source caching, no Stop() on
  IsIndeterminate change, no forced 0% start, colours applied only to the
  default visuals (custom sources keep their own)
- Report the fully-qualified class name from the automation peer
- Mark the remaining Uno deviations (determinate theming, weak brush
  tracking, range automation events)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNtzW3o9yaCzcTjhsgHm
Port the API test and the interaction tests (as runtime tests), and cover
TemplateSettings, custom source colours and the peer class name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNtzW3o9yaCzcTjhsgHm
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winui-sync-progressring branch from bcbb47a to 668ddc6 Compare November 18, 2026 15:40
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 8s —— View job


Status check on #26486

Verdict: ship (no change since the last check). This run was triggered by a push with no explicit request, so I only looked at the branch state. I changed nothing, built nothing and ran no tests. This is a code-review-level result.

  • Branch head: 668ddc6a test(progressring): Keep the custom source test off WinAppSDK. That is the WinAppSDK compile fix, and the working tree is clean.
  • Still unconfirmed: the WinAppSDK head needs a CI run to show it compiles.
  • Screenshot diffs: build 247311 reports 437 Linux and 494 Windows differences, up from 241 and 265 in the previous build. The changed samples are unrelated, but I haven't confirmed baseline drift. Compare against the base branch's own screenshot run before merging.

If you want something specific, such as a full review or a code change, say so in a new @claude comment.
· branch dev/mazi/winui-sync-progressring

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 247366 found UI Test snapshots differences: skia-linux-screenshots: 280, skia-windows-screenshots: 353

Details
  • skia-linux-screenshots: 280 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AutomationProperties_AutomationId.png
    • Basics.png-dark
    • Basics.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • ComboBox_MaxDropdownHeight.png-dark
    • ComboBox_MaxDropdownHeight.png
    • Accessibility_Showcase.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedBackVisualSourceSamplePage.png
    • AutomationProperties_StructureAndProps.png-dark
    • BitmapIcon_Foreground.png-dark
    • BitmapIcon_Foreground.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
  • skia-windows-screenshots: 353 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AutomationProperties_StructureAndProps.png-dark
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AppWindowTitleBar Properties.png-dark
    • AutomationProperties_AutomationId.png
    • BenchmarkDotNet.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • AutomationProperties_StructureAndProps.png
    • Basics.png-dark
    • Basics.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • ClipboardTests.png-dark
    • ClipboardTests.png

@MartinZikmund
MartinZikmund merged commit 1f89de4 into master Nov 18, 2026
51 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/winui-sync-progressring branch November 18, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation area/build Categorizes an issue or PR as relevant to build infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WinUI Port Sync: track ProgressRing

5 participants