Repository navigation
chore(winui-sync): Onboard ProgressRing at WinUI 2.6.5 - #26486
Conversation
There was a problem hiding this comment.
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.
|
Claude finished @MartinZikmund's task in 24s —— View job Review of #26486: Onboard ProgressRing at WinUI 2.6.5Verdict: 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 Code review assessment of
Notes (non-blocking):
|
|
This pull request is merged. |
morning4coffe-dev
left a comment
There was a problem hiding this comment.
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).
344667e to
e95e0ac
Compare
There was a problem hiding this comment.
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.
|
Claude finished @MartinZikmund's task in 27s —— View job Fix for the WinAppSDK compile failure: committed locally, not pushedI couldn't push. The change is in
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 I did not address the CodeQL floating-point equality comments ( |
e95e0ac to
5ce63d8
Compare
There was a problem hiding this comment.
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.
|
Claude finished @MartinZikmund's task in 18s —— View job Review of #26486: Onboard ProgressRing at WinUI 2.6.5Verdict: fix-first. One blocking issue, which is already posted inline. Severity count: 1 blocking, 0 major, 0 minor. Scope. I diffed the branch against Cross-cutting notes
|
5ce63d8 to
c4a682d
Compare
There was a problem hiding this comment.
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.
|
Claude finished @MartinZikmund's task in 16s —— View job Review of #26486: Onboard ProgressRing at WinUI 2.6.5Verdict: fix-first. The one blocking issue is unchanged since the last review. Severity count: 1 blocking, 0 major, 0 minor. Blocking: 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 build 247250 found UI Test snapshots differences: Details
|
c4a682d to
b2a13dc
Compare
There was a problem hiding this comment.
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.
|
Claude finished @MartinZikmund's task in 15s —— View job Status check on #26486Verdict: fix-first. The blocking issue from the last two reviews is still open. Blocking (1): Fix (keep [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 Unchanged notes
|
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
b2a13dc to
4f1aa81
Compare
There was a problem hiding this comment.
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.
|
Claude finished @MartinZikmund's task in 10s —— View job Status check on #26486Verdict: ship. The blocking issue from the earlier reviews is fixed on the branch. Resolved: 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
|
🤖 Addressed PR comments up to this point
|
|
The build 247311 found UI Test snapshots differences: Details
|
4f1aa81 to
bcbb47a
Compare
|
Claude finished @MartinZikmund's task in 9s —— View job Status check on #26486Verdict: 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.
|
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
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtzW3o9yaCzcTjhsgHm
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtzpwqXiaSHwvb2y5UA
bcbb47a to
668ddc6
Compare
|
Claude finished @MartinZikmund's task in 8s —— View job Status check on #26486Verdict: 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.
If you want something specific, such as a full review or a code change, say so in a new |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 247366 found UI Test snapshots differences: Details
|
GitHub Issue: closes #26485
PR Type:
What changed? 🚀
Onboards
ProgressRingto theWinUI 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/maincommit (the indeterminate visual). Three files had no header, includingProgressRing.csitself. 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)
ProgressRing.vcxitems: Perf2026 page entriesNothing skipped, so no skipped-items issue. Strings already matched upstream exactly.
Line-by-line review against 2.6.5
ProgressRing.cshad never been checked against upstream, and the review found these gaps:ProgressRing.cpp/.hProgressRing.cs(rewritten 1:1)TemplateSettingswith itsSizeChanged/Loadedhandlers andApplyTemplateSettings;UpdateStatestogglingAccessibilityView; them_rangeBasePropertyUpdatingre-entrancy guard on Value/Minimum/Maximum; the default-colour fallback toSystemControlHighlightAccentBrush/SystemControlBackgroundBaseLowBrush;Gridlayout root. Unmarked differences removed (see the audit)ProgressRing.idl,Generated/ProgressRing.properties.cppProgressRing.Properties.cs(new, DPs moved here)TemplateSettingsaddedProgressRingTemplateSettings.cpp/.h,.properties.cppProgressRingTemplateSettings.cs(new)ProgressRingAutomationPeer.cpp/.hProgressRingAutomationPeer.csGetClassNameCore. Upstream'shstring_name_ofis the fully-qualified name, and Uno returnedProgressRing, so this is fixed. Open PR #26234 makes the identical change, so the two merge cleanly in either orderAnimatedVisuals/ProgressRing{Determinate,Indeterminate}.cpp/.hProgressRing.xaml,ProgressRing_themeresources.xamlAPITests/ProgressRingTests.csProgressRingTests.mux.csVerifyAccessibilityViewis now portedInteractionTests/ProgressRingTests.csProgressRingTests.mux.csStoryboardAnimationRetemplateTestuses the upstream WUXC template verbatim, which exercisesTemplateSettings.VerifyAxeScanPassesis not applicable (Windows-only Axe tooling)SharedHelpers.RgbaColoris added as a port of the upstream helper.Workaround audit
ProgressRing.cs_loadedAsset) instead of recreating it as upstream doesOnIsIndeterminatePropertyChangedStop()before updating statesWhen_NoProgress/HalfProgress_IsIndeterminate_TogglepassUpdateLottieProgress(fromStart)_isTemplateAppliedguardVerifyAccessibilityViewfailed before, passes nowIAnimatedVisualSource2.SetColorProperty)IndeterminateSource/DeterminateSourceWhen_Custom_Source_Keeps_Its_Coloursfailed before, passes nowTryGetColorWithOpacitySolidColorBrush.Color, else the theme fallbackBrush.SetupBrushChangedRegisterPropertyChangedCallbackonSolidColorBrush.ColorProperty) leaked:When_Add_Remove(ProgressRing, 15)found 45 live rings against a limit of 3. The C++ handler holds a rawthis, while Uno's property callbacks are strong references, so a shared theme brush kept every ring alive. The upstream form stays under#elseRangeValueproperty changesProgressRing.uno.csnew bool IsActiveDependencyObject.IsActiveTODO Uno:markersCreateAnimations/DestroyAnimations, internalGetThemePropertiesIAnimatedVisual2, which Uno's player (like WinUI's) supports.GetThemePropertiesstays internal because the public surface is API-diffed against WinAppSDKTests
ProgressRingTests(9),Given_ProgressRing(12, 3 of them new),Given_ProgressRing_Visuals(4) andGiven_FrameworkElement_And_Leak.When_Add_Remove(all rows, including ProgressRing).VerifyAccessibilityView,When_Custom_Source_Keeps_Its_Coloursand bothWhen_Sized_TemplateSettings_Follow_Widthcases failed, andStoryboardAnimationRetemplateTestcrashed the app:TemplateSettingsthrew inside a binding.Uno.UIandUno.UI.RuntimeTests.Genericwith analyzers on (noUnoFastDevBuild), 0 errors.detect.ps1 -AreaFilter progressringreports up to date, with the code diff excludingStringsand both mirrored XAML files. 132 Pester tests pass.Other
ProgressRing.TemplateSettingsandProgressRingTemplateSettingsare now implemented. Their surface matches the generated stubs: public getters and an internal constructor. Nothing is removed.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 ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_01TXMNtzW3o9yaCzcTjhsgHm