Skip to content

refactor(nsgotest): own mounted view kinds - #1873

Merged
houko merged 1 commit into
nsgo-dev:mainfrom
houko:refactor/view-kind-181
Nov 22, 2026
Merged

houko merged 1 commit into
nsgo-dev:mainfrom
houko:refactor/view-kind-181

Conversation

@houko

@houko houko commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Give mounted test-model views their own nsgotest.ViewKind type and constants (KindText, KindInput, KindScroll, KindCanvas, KindGPU, and the other mounted forms). The model maps the private mount protocol at its boundary, while selectors, automation, steps and diagnostics use the owned type. Migrate gallery and component tests to the public constants and remove ViewKind and SurfaceKind from the driver API allowlist.

Refs #181. This is an independent slice; the existing Event, WebConfig and ViewStyle/ViewProps slices remain separate.

Targets

  • Shared code

Screenshots

None.

Verification

  • go tool nsgo test ./nsgotest -- -p 1 -count=1: 158 passed, one skipped.
  • go tool nsgo test ./base -- -p 1 -count=1: 469 passed, two skipped.
  • go tool nsgo test ./ui -- -p 1 -count=1: 231 passed.
  • Public API guard, all 26 layering variants and skill checks passed with an isolated local Go cache.
  • 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 also 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. CodeQL/actions failed on installation API rate limiting; dependency review reports that Dependency graph is unavailable.
  • git diff --check passed.

Checklist

  • Conventional Commit title
  • Testing docs, skill and changelog updated

@houko

houko commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Reviewed. The owned kinds map one-to-one onto all twelve driver kinds, and String keeps the dump names. The allowlist line conflicts with #1874's ImageSampling entry, so this needs a rebase after #1874 and 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-kind-181 branch from d22c1d4 to 78890b0 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-kind-181 branch from 78890b0 to 325e2b7 Compare November 22, 2026 08:19
@houko
houko added this pull request to the merge queue Nov 22, 2026
@houko
houko force-pushed the refactor/view-kind-181 branch from 325e2b7 to 6088786 Compare November 22, 2026 08:56
@houko
houko force-pushed the refactor/view-kind-181 branch from 6088786 to 069036b Compare November 22, 2026 09:40
Merged via the queue into nsgo-dev:main with commit d7b70aa Nov 22, 2026
3 of 4 checks passed
@houko
houko deleted the refactor/view-kind-181 branch November 22, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

base core documentation Improvements or additions to documentation size/M ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant