Skip to content

chore(start-wrt,start-tunnel): realistic mock data, and the tunnel dialog help toggle - #4481

Merged
MattDHill merged 3 commits into
masterfrom
chore/realistic-web-mocks
Oct 29, 2026
Merged

MattDHill merged 3 commits into
masterfrom
chore/realistic-web-mocks

Conversation

@MattDHill

Copy link
Copy Markdown
Member

Mock data for the StartWRT and StartTunnel UIs that reads like a real home network, so screenshots taken from npm run start:wrt / npm run start:tunnel (and the public demo at router-demo.start9.com, which is built from these mocks) look like the product. Companion to the start9-store software-page pass, whose StartWRT/StartTunnel screenshots come from this data.

StartWRT

  • Devices with real names in every profile (Server One, Gaming PC, MacBook Air, iPad, Living Room TV, Thermostat, a guest's phone); removes humble-weeds and the real first names (Mariusz's Phone, a Matt VPN at agf5d.start9.me).
  • Four profiles (Admin through a Mullvad-over-Proton chain, Children with filtered DNS and a bedtime blackout, Guest through Proton, Smart Devices with a whitelist); a Wi-Fi password per profile; SSID Home instead of StartOS.
  • Inbound VPNs Home (enabled, peers in the documented .200–.253 range) and Friends; automatic port uses all owned by Server One, including two SNI routes; Server One may publish DNS records.
  • Version 1.4.0 with generic release notes (the old ones claimed WPA3 support and a CVE number).
  • Fixed: the weekday blackout window used index 0 as Monday; the UI treats it as Sunday.

StartTunnel

  • Server One, Phone, Laptop, Tablet in Family; a Friends subnet with custom DNS; SNI routes on 443; injected DNS records plus a manual one; 203.0.113.42 (TEST-NET-3) instead of 69.1.1.42; versions 1.5.0 → 1.5.1.
  • MOCK_CONFIG now has the shape of client.conf.template instead of a server config.

Kept on purpose: the nameless device (device-<mac> placeholder), the derived-label device, a disabled VPN no profile uses (now IVPN, since Mullvad carries the chain), and a disabled port to a device with no reservation.

Fix: StartTunnel's in-dialog Help toggle (help/modal-help.ts, copied from StartWRT) sat 3rem from the edge, where StartWRT's header logo pushes its toggle; StartTunnel's header toggle is at 1rem, so a dialog showed two "Help" pills side by side. Fragment patch-fixed-dialog-help-toggle.md (user-facing: false).

Overlap: #4466 and #4157 touch the same mock files in other hunks.

Verified: npm run check:wrt, npm run check:tunnel, prettier; both UIs driven in headless Chromium against these mocks.

🤖 Generated with Claude Code

MattDHill and others added 2 commits October 28, 2026 21:35
…creenshots

Named devices across every profile, four profiles with a Mullvad-over-Proton
chain, a password per profile, blackout schedules that read as one, and
inbound VPNs with peers in the .200 range. StartTunnel gets Server One, a
Friends subnet, SNI routes, injected DNS records, TEST-NET-3 addresses, a
real client config shape and current versions. The edge cases the mocks
existed to exercise (nameless device, derived label, a disabled VPN no
profile uses, a disabled port to a device without a reservation) are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
modal-help came from StartWRT, whose header ends in a logo, so it sat 3rem
from the edge; StartTunnel's header toggle sits at 1rem, so both showed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MattDHill
MattDHill marked this pull request as ready for review October 29, 2026 16:03
@MattDHill
MattDHill requested a review from helix-white October 29, 2026 16:03

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: merge origin/master and resolve projects/start-tunnel/web/src/app/services/api/mock-api.service.ts. Both git merge-tree and GitHub report a conflict with the endpoint-selection change from #4157.

Keep the new Phone client config, but preserve master's device.show-config endpoint substitution and IPv6 bracketing. The substitution must match the new 203.0.113.42:51820 sample endpoint; retaining the old vpn.example.com:51820 search string would silently ignore the endpoint selected in the dialog.

The proposal is a merge of master into the reviewed head with that resolution. I found no other correctness regressions in the mock data or Help-toggle positioning change. Reviewed code and existing check results only; no builds or tests run. The reported checks are skipped except for the successful Conflict Markers check, which does not establish mergeability.

Proposed changes: ad196b6...proposal/4481

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white

Copy link
Copy Markdown
Member

Rechecked after the merge-conflict notification: the PR remains open at ad196b6, and merging current master (7c73325) still conflicts in projects/start-tunnel/web/src/app/services/api/mock-api.service.ts. This session is the reviewer, not the implementer, so I have left the PR branch unchanged. The merge resolution preserving the new sample data and endpoint overrides is already published at ad196b6...proposal/4481 for the author to adopt and verify.

Resolves the conflict with #4157 in the StartTunnel mock: keeps the Phone
client config and master's endpoint substitution, matched to the new
203.0.113.42 sample endpoint (helix-a's proposal).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MattDHill
MattDHill requested a review from helix-white October 29, 2026 16:24

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at f5cce2f. The base merge resolves the earlier conflict exactly as proposed, preserving endpoint overrides and IPv6 bracketing alongside the new Phone config. git merge-tree confirms a clean merge with current master. No remaining correctness findings.

The existing mock APIs and PatchDB seed now depict a home network: named devices across four StartWRT profiles, chained outbound VPNs, inbound peers, schedules and Wi-Fi passwords; StartTunnel gains a Friends subnet, service hostname routes and DNS records using a reserved documentation IP. Production backend configuration is unchanged. Existing locally saved mock VPNs still take precedence over the new defaults.

Separately, StartTunnel's dialog Help toggle moves from 3rem to 1rem from the edge to cover the header toggle rather than appear beside it. The existing help-overlay mechanism is retained.

Implementation diff: +293 / −118 lines in 5 files (excludes lockfiles, tests, docs, release notes, and changelog).

The author records successful StartWRT/StartTunnel typechecks, Prettier and headless-browser use. For the required screenshots, I served both apps from this reviewed head with their mock APIs in headless Chromium and captured devices, profiles, VPNs, Wi-Fi, published ports, subnets, DNS and the open Add server dialog. These captures exercise no real router or tunnel server; no reviewer tests were run. Screenshots follow in an attachment-only comment. At CI inspection, Prettier, Conflict Markers, changelog/version validation and dependency licensing passed; the three StartTunnel package builds, StartWRT binary build, automated tests, formatting/lockfiles and generated-artifact checks were still running.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@helix-white

Copy link
Copy Markdown
Member

StartWRT: named devices distributed across all four profiles.

StartWRT: Admin, Children, Guest and Smart Devices policy examples.

StartWRT: Mullvad through Proton, with IVPN disabled.

StartWRT: Home and Friends inbound VPN examples.

StartWRT: Server One owns the automatic port and hostname routes.

StartWRT: Wi-Fi password examples for each profile.

StartTunnel: Family and Friends subnet examples.

StartTunnel: Server One and the Family and Friends clients.

StartTunnel: service hostname routes and reserved documentation IP.

StartTunnel: injected service DNS records and a manual record.

StartTunnel: the open Add server dialog has one aligned Help pill.

@MattDHill
MattDHill merged commit d4f3eee into master Oct 29, 2026
15 checks passed
@MattDHill
MattDHill deleted the chore/realistic-web-mocks branch October 29, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants