Repository navigation
refactor(nsgotest): own mounted styles and animation values - #1880
Merged
Merged
Conversation
Collaborator
Author
|
Reviewed. Both mappings cover every driver field (31 style fields, 16 animated-value fields) in both directions, and the policies still go through the driver implementations. This conflicts with #1873 on the |
houko
enabled auto-merge (rebase)
November 22, 2026 04:21
houko
force-pushed
the
refactor/view-style-181
branch
from
November 22, 2026 04:34
a063faa to
ed60e06
Compare
houko
force-pushed
the
refactor/view-style-181
branch
2 times, most recently
from
November 22, 2026 08:56
dc77880 to
495ce4b
Compare
houko
added this pull request to the merge queue
Nov 22, 2026
houko
force-pushed
the
refactor/view-style-181
branch
from
November 22, 2026 09:40
495ce4b to
852399f
Compare
houko
force-pushed
the
refactor/view-style-181
branch
from
November 23, 2026 00:22
852399f to
6872a57
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Give mounted test views owned
nsgotest.ViewStyleandnsgotest.AnimatedValuesrecords. Explicit boundary mappings handle incoming styles, animator callbacks andApp.Animated;Radii,Rounded,Rim,Matrix,HasandApplydelegate to the existing geometry and animation policies. Effects and custom cursors keep their immutable app-value identities and styles remain comparable.Remove
ViewStyleandAnimatedValuesfrom the public driver API allowlist. Migrate the gallery's appearance snapshots and the dialog test helper to the public record and update testing architecture, English/Chinese guides, skill and changelog. This is an independent slice against main with no PR dependency.Refs #181. Event kinds/masks await the owned Event and ViewProps contracts separately.
Targets
Screenshots
None.
Verification
go tool nsgo test ./nsgotest -- -p 1 -count=1: 161 passed, one skipped, including three new regressions for real mount snapshots/resource identity, geometry policies, bound-value application and live animator recording.go tool nsgo test ./ui -- -p 1 -count=1: 231 passed.go tool nsgo test ./examples/gallery -- -p 1 -run '^TestAppearanceRestylesInPlace$' -count=1: passed across all demos.go tool nsgo check -target macos,ios,windows,linux,android_arm64,web -jobs 1passed remotely, including both desktop architectures, iOS and Android arm64.git diff --checkpassed.Checklist