Skip to content

chore: Sync master → feature/breakingchanges - #24355

Merged
agneszitte merged 12 commits into
feature/breakingchangesfrom
dev/mazi/sync-master
Sep 2, 2026
Merged

agneszitte merged 12 commits into
feature/breakingchangesfrom
dev/mazi/sync-master

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue: n/a — branch synchronization, no behavior change of its own.

PR Type:

🤖 Project automation

What changed? 🚀

Merges master into feature/breakingchanges (11 commits, PR #24282 — the press-to-stop-momentum manipulation opt-in), and lands the incoming code on the branch's renamed surface.

Conflict resolved — GestureRecognizer.Manipulation.cs
Adjacency only: master adds IsCoasting immediately above the AddPointer signature that this branch qualifies as global::Microsoft.UI.Input.PointerPoint. Both sides kept.

File relocations (git flagged these as "file location" conflicts):

From (master) To (branch)
src/Uno.UI.Toolkit/ManipulationExtensions.cs src/Uno.UI.Extras/ManipulationExtensions.cs
.../Windows_UI_Input/GestureRecognizerTests/Manipulation_TapStopsInertia.xaml{,.cs} .../Windows/UI/Input/GestureRecognizerTests/…
doc/articles/Uno.UI.Toolkit.md doc/articles/additional-features.md (auto-merged)

Uno.UI.Toolkit → natural namespaces

Following the rule already applied to the rest of Uno.UI.Extras — mirror the WinUI namespace of the type being extended:

Incoming Adjusted to Why
namespace Uno.UI.Toolkit (ManipulationExtensions) Uno.UI.Xaml it extends Microsoft.UI.Xaml.UIElement, like the neighbouring UIElementExtensions
using Uno.UI.Toolkit.DevTools.Input (runtime test) Uno.UI.DevTools.Input where the injected-pointer helpers already live
namespace …Tests.Uno_UI_Toolkit (runtime test) …Tests.Uno_UI_Extras matches its two sibling files
xmlns:toolkit="using:Uno.UI.Toolkit" (docs) xmlns:uux="using:Uno.UI.Xaml" the prefix already registered in XamlHelper.KnownXmlnses, matching the uuxcp: usage in the same document

Two prose references to Uno.UI.Toolkit in GestureRecognizer.cs / Given_GestureRecognizer.cs comments were repointed at Uno.UI.Xaml.ManipulationExtensions as well.

Validation

Check Result
Uno.UI.Extras.Skia (net10.0, pulls Uno.UI) ✅ 0 warnings, 0 errors
Uno.UI.RuntimeTests.Skia (net10.0) ✅ 0 warnings, 0 errors
SamplesApp head (net10.0-desktop) ✅ 0 errors (only pre-existing MSB4011)
dotnet xstyler -p on the new sample XAML ✅ PASS

net11.0 and the runtime-test execution are left to CI.

Known follow-up, deliberately not in this PR: src/Uno.UI.RuntimeTests/Tests/Uno_UI_Toolkit/ still carries the old folder name while every file inside it already declares …Tests.Uno_UI_Extras.

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample (for bug fixes / features, if applicable) — carried over from master
  • 📚 Docs have been added/updated following the documentation template (for bug fixes / features) — carried over, re-pointed at the natural namespace
  • 🖼️ Validated PR Screenshots Compare Test Run results.
  • ❗ Contains NO breaking changes — beyond those already on feature/breakingchanges
  • 👀 Reviewed 2 other open pull requests (optional but appreciated!)

🤖 Generated with Claude Code

https://claude.ai/code/session_01Gsfy1USDYeExNxsQGd3FQQ

ajpinedam and others added 12 commits September 1, 2026 17:38
feat: Add opt-in press-to-stop-momentum for ManipulationMode panning
Lands master's press-to-stop-momentum opt-in on the branch's renamed
surface: `ManipulationExtensions` moves with `Uno.UI.Toolkit` ->
`src/Uno.UI.Extras`, and its namespace becomes the natural
`Uno.UI.Xaml` (the namespace of the `UIElement` it extends), matching
`UIElementExtensions` and the `uux` XAML prefix. The runtime test's
`Uno.UI.Toolkit.DevTools.Input` becomes `Uno.UI.DevTools.Input`.

`GestureRecognizer.Manipulation` conflicted only on adjacency: master's
new `IsCoasting` sits next to the `AddPointer` signature this branch
qualifies as `global::Microsoft.UI.Input.PointerPoint`. Both kept.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Gsfy1USDYeExNxsQGd3FQQ
Copilot AI lite review requested due to automatic review settings September 2, 2026 14:37
@github-actions github-actions Bot added area/automation Categorizes an issue or PR as relevant to project automation kind/documentation labels Sep 2, 2026
@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 2m 26s —— View job


Claude's review of PR #24355

Todo list

  • Gather context (PR body, diff, changed files)
  • Review diff against AGENTS.md rules
  • Post inline findings (if any)
  • Post summary

Verdict: ✅ Ship

This is a clean branch-sync PR (master → feature/breakingchanges) with one real conflict (adjacency-only, both sides correctly kept) and several git-flagged "file location" conflicts resolved by re-homing the incoming code onto the branch's renamed Uno.UI.Extras/Uno.UI.Xaml surface. I found no correctness, style, or convention issues and no inline comments were needed.

Checks performed:

  • No leftover merge-conflict markers in any touched file.
  • No stale references to the old Uno.UI.Toolkit.md doc path remain anywhere in doc/.
  • The rename from Uno.UI.Toolkit → Uno.UI.Xaml for ManipulationExtensions matches the established pattern of sibling files (e.g. UIElementExtensions) already living in Uno.UI.Extras.
  • internal members newly consumed cross-assembly (UIElement.PreventGestures, GestureRecognizer.PendingManipulation/LastDownStoppedInertia) resolve fine — Uno.UI's existing InternalsVisibleTo already covers Uno.UI.Extras and the unit/runtime test assemblies; nothing new needed there.
  • The attached DependencyProperty in ManipulationExtensions.cs follows the same RegisterAttached + plain PropertyMetadata shape used by neighboring Uno.UI.Extras extension classes (this project isn't under the stricter src/Uno.UI/** DP rules, and there's no [GeneratedDependencyProperty] precedent in this project to prefer instead).
  • New behavior (IsTapToStopInertiaEnabled) has both a unit-test pin (Given_GestureRecognizer, Uno.UI.UnitTests) and a runtime-test pin with real input injection (Given_ManipulationExtensions, gated #if HAS_INPUT_INJECTOR && !WINAPPSDK) covering the opt-in, opt-out, and at-rest cases — good root-cause coverage, no skipped/ignored tests.
  • Sample XAML (Manipulation_TapStopsInertia.xaml) uses {ThemeResource} throughout (no hardcoded colors) and is [Sample(..., IsManualTest = true)], consistent with .claude/rules/samples.md.
  • Docs addition reads clearly and the CommunityToolkit DataGrid styling example is consistent with the new namespace/prefix.

One pre-existing nit, not introduced by this PR (no inline comment posted, since it doesn't originate here): src/Uno.UI.RuntimeTests/Tests/Uno_UI_Toolkit/ folder name still doesn't mirror the …Tests.Uno_UI_Extras namespace used by all three files inside it (Given_FromJson.cs, Given_VisibleBoundsPadding.cs, and now Given_ManipulationExtensions.cs). This is the exact situation the PR description already calls out as a deliberate, out-of-scope follow-up — the new file is just staying consistent with its existing siblings, so it's fine to land as-is.
· branch: dev/mazi/sync-master

@agneszitte
agneszitte merged commit 3e51e1e into feature/breakingchanges Sep 2, 2026
13 of 20 checks passed
@agneszitte
agneszitte deleted the dev/mazi/sync-master branch September 2, 2026 14:39

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.

🟡 Changes recommended

The newly added runtime test injects input and asserts immediately without an idle wait, which can make the test outcome timing-dependent and flaky in CI.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR synchronizes master into feature/breakingchanges, bringing in the “press-to-stop-momentum” opt-in work and resolving conflicts/relocations so the incoming changes land cleanly on the branch’s renamed surface.

Changes:

  • Adds internal signaling in GestureRecognizer/UIElement to detect when a pointer down aborts a coasting (inertia) manipulation, plus a helper to suppress gesture recognition for a given pointer.
  • Introduces Uno.UI.Xaml.ManipulationExtensions.IsTapToStopInertiaEnabled (in Uno.UI.Extras) to opt into “first tap stops momentum only” behavior on supported targets.
  • Carries over validation artifacts: unit tests, runtime tests, SamplesApp manual sample, and documentation updates.
File summaries
File Description
src/Uno.UI/UI/Xaml/UIElement.Pointers.cs Exposes internal element-level helpers to read “last down stopped inertia” and to suppress gesture recognition for a pointer.
src/Uno.UI/UI/Input/WinRT/GestureRecognizer.Manipulation.cs Adds IsCoasting to represent “in inertia with no active pointer” for manipulations.
src/Uno.UI/UI/Input/WinRT/GestureRecognizer.cs Tracks LastDownStoppedInertia during ProcessDownEvent so callers can detect “press aborted inertia” without changing default behavior.
src/Uno.UI.UnitTests/Windows_UI_Input/Given_GestureRecognizer.cs Adds unit coverage that inertia-aborting presses still raise tap by default and are reported via the new flag.
src/Uno.UI.RuntimeTests/Tests/Uno_UI_Toolkit/Given_ManipulationExtensions.cs Adds runtime validation for the opt-in behavior across a small “DataGrid-like” visual tree.
src/Uno.UI.Extras/ManipulationExtensions.cs Implements the attached property + tracking logic to mute tap-related gestures on the pointer path when a press aborts inertia (opt-in).
src/SamplesApp/SamplesApp.Samples/Windows/UI/Input/GestureRecognizerTests/Manipulation_TapStopsInertia.xaml.cs Adds a manual validation sample demonstrating the opt-in’s effect on selection while coasting.
src/SamplesApp/SamplesApp.Samples/Windows/UI/Input/GestureRecognizerTests/Manipulation_TapStopsInertia.xaml XAML UI for the manual sample, including instructions and the opt-in toggle.
doc/articles/additional-features.md Documents the new opt-in behavior and its platform reach, including XAML usage examples.
Review details

Suppressed comments (1)

src/Uno.UI.RuntimeTests/Tests/Uno_UI_Toolkit/Given_ManipulationExtensions.cs:83

  • PressWhileCoasting injects the tap and returns immediately; add an idle wait after the tap so the resulting Tapped events have a chance to be raised before assertions in the calling test methods run.
		using var tapFinger = injector.GetFinger(id: 43);
		tapFinger.Tap(bounds.GetCenter());

		return taps;
	}
  • Files reviewed: 9/9 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +53 to +54
finger.Tap(bounds.GetCenter());

@unodevops

Copy link
Copy Markdown
Contributor

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 kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants