Repository navigation
chore(winui-sync): Onboard Expander at WinUI 2.7.0 - #26601
Conversation
|
Claude finished @MartinZikmund's task in 15s —— View job Review of #26601: Onboard Expander to WinUI syncVerdict: ship. No blocking issues. I read the diff only. I did not build it or run tests, so the test results in the PR description are taken as stated. Findings: 0 blocking, 0 major, 2 minor (nits, no inline comments posted).
What I checked:
|
|
This pull request is merged. |
3355084 to
92ef5b1
Compare
|
Claude finished @MartinZikmund's task in 19s —— View job Review of #26601: Onboard Expander to WinUI syncVerdict: ship (with one trivial nit). Issues: 0 blocking, 0 major, 1 minor (inline comment posted). Scope of this review: I read the diff for Cross-cutting notes
|
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 248281 found UI Test snapshots differences: Details
|
6fe4326 to
7e136b0
Compare
|
Claude finished @MartinZikmund's task in 14s —— View job Review of #26601: Onboard Expander to WinUI syncVerdict: ship. Issues: 0 blocking, 0 major, 0 minor. No new inline comments. Scope: I read the current head ( Cross-cutting notes
|
|
Claude finished @MartinZikmund's task in 14s —— View job Review of #26601: Onboard Expander to WinUI syncVerdict: ship. Issues: 0 blocking, 0 major, 0 minor. No inline comments posted. Scope: I read the diff of Checked
Cross-cutting notes
|
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
The upstream changes since 1.4.2 were already in the port. The review against 2.7.0 aligns the remaining gaps: the automation event raise and GetPeerFromPointCore cast like upstream, and the unavoidable C# access differences are marked. Headers name their upstream files. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu2vyo2nCA7nYdY9GPd
- Restore the composition InsetClip on ExpanderContentClip; InsetClip is implemented on Skia, so the SizeChanged + RectangleGeometry stand-in is no longer needed. - Drop the Loaded/Unloaded resubscription added for an iOS native-view leak; the content SizeChanged handler is revoked on re-template like upstream's auto_revoke. The Expander leak test passes without it. - Drop the stale note that AutomationPeer.EventsSource is unimplemented. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu2vyo2nCA7nYdY9GPd
- Port the two interaction tests (ExpandCollapseAutomationTests, AutomationPeerTest) as runtime tests driven through the automation peers; VerifyAxeScanPasses has no Uno equivalent. - Re-enable the AutomationProperties.Name check in the API test. - Add a screenshot test for the restored content clip. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu2vyo2nCA7nYdY9GPd
Record the Expander area at winui3/release/2.7.0. Detection reports it up to date. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu2vyo2nCA7nYdY9GPd
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtzaC5dx4oo2ZVG5BHB
It guards Uno's InsetClip on Skia; on WinAppSDK the Expander is still header-sized when the screenshot is taken, so the probe falls outside it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtzaC5dx4oo2ZVG5BHB
3f75548 to
4fed11b
Compare
|
Claude finished @MartinZikmund's task in 16s —— View job Review of #26601: Onboard Expander to WinUI syncVerdict: ship. Issues: 0 blocking, 0 major, 0 minor. I posted no inline comments. Scope: I read the current Checked
Cross-cutting notes
|
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 248334 found UI Test snapshots differences: Details
|
GitHub Issue: closes unoplatform/uno-private#2618
PR Type:
🔄 Refactoring (WinUI sync onboarding)
What changed? 🚀
Onboards Expander (
id: expander) to the weekly WinUI port sync. The port was brought up towinui3/release/2.7.0, reviewed against it line by line, and its Uno workarounds were audited. The area is then recorded inbuild/winui-sync/areas/expander.jsonat that tag.Starting point
seed-area.ps1header refs:winui3/release/1.4.2×3,8d20a91×2,winui3/release/1.8.4×1,winui3/release/2.5.1×1.8d20a91(2021, onExpander.Properties.cs/ExpanderTemplateSettings.cs) predates thecontrols/devlayout, so it was treated as an outlier. Both files match the 2.7.0 generated properties (Expander.properties.cpp,ExpanderTemplateSettings.properties.cpp): same DPs, same defaults, same callbacks.winui3/release/1.4.2(7198c4e690).ExpandDirection.csand the two event-args files had no recorded ref. They are generated fromExpander.idland match it; a header now names it.Catch-up 1.4.2 → 2.7.0
The upstream diff touched 6 files (+450/−5). Most of it is the perf2026 XAML variants.
Expander.cpp:NegativeContentHeight(-1 * static_cast<double>(height))heightis alreadydouble)ExpanderAutomationPeer.cpp: control typeGroup→ButtonExpander_perf2026.xaml,Expander_themeresources_perf2026.xamlExpander.vcxitemsNothing was skipped, so no skipped-items issue was needed. Theme XAML (
Expander.xaml,Expander_themeresources.xaml) matches 2.7.0 apart from the header.Line-by-line review (vs 2.7.0)
Expander.h/.cppExpander.csUpdateExpandStateusedpeer as … ?.; it now casts like upstream'speer.as<>().GetNameCore()→GetName()is kept and marked (GetNameCoreis protected in C#;GetNameforwards to it). The rest matches.Expander.idl+Generated/Expander.properties.cppExpander.Properties.cs,ExpandDirection.cs,Expander*EventArgs.csIsExpanded.ExpanderTemplateSettings.h/.cpp+ generated propertiesExpanderTemplateSettings.csExpanderAutomationPeer.h/.cppExpanderAutomationPeer.csGetPeerFromPointCoresilently skipped focusing a non-ToggleButtonheader; it now casts like upstream. Kept and marked: null guards on the C#GetChildrenCore(), the empty-list early return (upstream would size a vector at-1), andGetChildren()for the protectedGetChildrenCore(). Added the missing upstream comment.GetImplis unused upstream and not applicable.APITests/ExpanderTests.csExpanderTests_APITests.mux.csAutomationProperties.Namecheck is re-enabled and passes.InteractionTests/ExpanderTests.csExpanderTests_InteractionTests.mux.csExpandCollapseAutomationTestsandAutomationPeerTest(2.7.0 version, including the new focus asserts) are ported as runtime tests that drive the automation peers.VerifyAxeScanPassesis not ported: Uno has no Axe infrastructure.Workaround audit
Expander.OnApplyTemplate/OnContentClipSizeChangedInsetClipwith aRectangleGeometryclip updated onSizeChangedCreateInsetClip()restoredInsetClipis implemented on Skia. The newGiven_Expander.When_Content_Translated_Over_Header_Then_Clippedpasses with the clip and fails without it (red content bleeds into the header at (100, 38)).ExpanderctorLoaded/Unloaded+_eventSubscriptionsOnApplyTemplateon reload, for an iOS native-view leakSizeChangedhandler is revoked on re-template like upstream'sauto_revokerevokerGiven_FrameworkElement_And_Leak.When_Add_Remove(Expander)passes.// Uno Doc: EventSource is not implementedAutomationPeer.EventsSourceis implementedHeaderTemplatemetadataValueDoesNotInheritDataContextDataTemplatepropertiesExpander.cs/ExpanderAutomationPeer.csTests (Skia desktop, Release)
ExpanderTests.ExpanderAutomationPeerTest,ExpanderInteractionTests.ExpandCollapseAutomationTests,ExpanderInteractionTests.AutomationPeerTest,Given_Expander.When_Content_Translated_Over_Header_Then_Clipped: pass, 5 iterations each with retries disabled. The clip test is excluded on WinAppSDK: it guards Uno's SkiaInsetClip, and there the Expander is still header-sized (48 px) when the screenshot is taken.Given_FrameworkElement_And_Leak.When_Add_Remove(all rows, including Expander),Given_Control.When_CCExpander_*,Given_AriaMapper.When_Expander_Then_Expanded_Without_HasPopup: pass (92 total).Uno.UI.RuntimeTests.Genericbuilds clean withoutUnoFastDevBuild(analyzers on).detect.ps1:expanderreports up to date.build/winui-sync/tests/run.ps1: 133 passed.No project or MSBuild files changed.
PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_01TXMNu2vyo2nCA7nYdY9GPd