Skip to content

refactor(nsgotest): own mounted view props - #1876

Merged
houko merged 3 commits into
nsgo-dev:mainfrom
houko:refactor/view-props-181
Nov 23, 2026
Merged

houko merged 3 commits into
nsgo-dev:mainfrom
houko:refactor/view-props-181

Conversation

@houko

@houko houko commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Give mounted test views an owned nsgotest.ViewProps record for identity, accessible names and state, actions, focus, pointer and presentation settings. The model explicitly maps incoming driver props, copying label-ID and action lists plus ripple settings while preserving nil/empty values and the record's comparability. HelpText, HasAction, ActionList and FocusStop delegate to the existing policies through an explicit private conversion, which hit testing uses too.

Remove ViewProps from the public driver API allowlist. Update the testing architecture, public English/Chinese guides, skill and changelog. This is an independent slice against main with no PR dependency.

Refs #181. Event kinds/masks and ViewStyle remain separate work.

Targets

  • Shared code

Screenshots

None.

Verification

  • go tool nsgo test ./nsgotest -- -p 1 -count=1: 160 passed, one skipped on the remote Mac builder, including two new regressions for actual mount snapshots and accessibility queries/actions/keyboard stops.
  • Public API guard, all 26 layering variants and skill checks passed remotely.
  • go tool nsgo check -target macos,ios,windows,linux,android_arm64,web -jobs 1 passed remotely, including both desktop architectures, iOS and Android arm64.
  • CI Build and vet passed. The CI test job fails only TestMinimalAppLinks (macOS: net/http, crypto/tls, crypto/x509; Linux: net/http), reproducing the exact clean-main 0919846 baseline confirmed for refactor(core): own the host storage contract #1866.
  • git diff --check passed.

Checklist

  • Conventional Commit title
  • Public guides, skill, architecture and changelog updated

@houko

houko commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Reviewed. Field sets of nsgotest.ViewProps and driver.ViewProps match (39 fields), the three pointer-backed values are deep-copied, and policies go through driverProps. A follow-up worth considering: a reflection test that fails when driver.ViewProps gains a field the mapping misses. This needs a rebase once the other #181 slices land.

@houko
houko enabled auto-merge (rebase) November 22, 2026 04:20
@github-actions github-actions Bot added the conflict Conflicts with the base branch; resolve it first label Nov 22, 2026
@houko
houko force-pushed the refactor/view-props-181 branch from 9caeb03 to 398d78f Compare November 22, 2026 04:34
@github-actions github-actions Bot removed the conflict Conflicts with the base branch; resolve it first label Nov 22, 2026
@houko
houko force-pushed the refactor/view-props-181 branch 3 times, most recently from 446bd3e to 82928fb Compare November 22, 2026 09:40
@houko
houko added this pull request to the merge queue Nov 22, 2026
@houko
houko force-pushed the refactor/view-props-181 branch from 82928fb to 4d794e5 Compare November 23, 2026 00:03
@houko
houko merged commit 33f056e into nsgo-dev:main Nov 23, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant