Skip to content

The launcher has a guided first-run setup, previewable with NSPB_ONBOARDING_DEMO (view layer) - #119

Merged
LNPANDY merged 5 commits into
LNPANDY:mainfrom
v0lumehi:onboarding-view
Oct 28, 2026
Merged

LNPANDY merged 5 commits into
LNPANDY:mainfrom
v0lumehi:onboarding-view

Conversation

@v0lumehi

@v0lumehi v0lumehi commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

This adds the view layer of a guided first-run setup to the Mac launcher. Players see no change yet: nothing starts it, so the launcher opens as before.

The flow is Welcome, platform (Mac, iPhone or both), Xcode with background tool preparation, keys, games, done. It is a SwiftUI view over an OnboardingDriver contract (OnboardingState plus twelve intents, described in frontend/Onboarding.md). A mock driver drives it, and the scenarios can be previewed:

cd frontend
NSPB_ONBOARDING_DEMO=fresh swift run   # also xcodeReady, keysInvalid, xcodeFailed, noGames

The preview never creates BuildModel, detects tools, reads files or installs anything.

Review fixes on top of the original commit:

  • No SwiftPM resource. The release workflow copies only .build/release/NSPortBuilder into the .app, and Bundle.module aborts when its resource bundle is missing. The welcome icon is now NSApp.applicationIconImage inside the .app and a symbol under swift run.
  • The mock's example free/needed GB stay in the mock; the default state carries none.

The onboarding header also carries TitlebarDoubleClick (from #102, now on main), so a double-click on an empty part of it zooms the window as on the launcher's bar.

Checked: swift build -c release and swift test in frontend/ pass, and each demo scenario launches and stays up. The real driver follows in a stacked PR.

Screenshots

Offscreen captures of the preview at the default window size (1280 x 900), English unless noted.

Welcome Platform
Xcode, setting up (iPhone or both: with the iOS platform) Xcode, failed (details collapsed)
Keys Games
Done Welcome, Chinese

…sk figures in the mock

The release workflow copies only the executable into the .app, so a resource bundle
would be missing there and Bundle.module would abort. The welcome icon is now the
app's own icon (a symbol under swift run), and the default Welcome state carries no
invented free/needed GB.
…ze across states

The welcome header with the icon and name is gone (with its helper and string). The two
Xcode cards are equally wide and share one fixed height for every state, scrolling inside
instead of growing; the background note uses the card's full width. The platform cards
align their titles, and the keys and games cards keep a minimum height between states.
… footer

The block sits in the middle of the space and starts at the top and scrolls when it is
taller than the window. The disk warning keeps its place on Welcome so the block does
not shift.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants