From af07f720ff089e83d10c040aee7eb61609c58b4d Mon Sep 17 00:00:00 2001 From: axiomlogicnexus Date: Sat, 27 Jun 2026 23:41:35 +0000 Subject: [PATCH] Add protected launch status route --- ...LING_AND_DISTRIBUTION_PACKET_2026-06-22.md | 10 + .../HyperTwist/DEVELOPMENT.md | 4 + .../HyperTwist/FEATURE_REGISTRY.md | 2 +- website/README.md | 9 +- .../__tests__/DashboardOverviewPage.test.tsx | 5 + website/src/__tests__/app-route-tree.test.tsx | 69 +++++ .../__tests__/protected-app-pages.test.tsx | 19 +- website/src/__tests__/route-shells.test.tsx | 2 + website/src/components/layout/AppShell.tsx | 4 +- website/src/pages/app-pages.tsx | 290 +++++++++++++++--- website/src/router/AppRouteTree.tsx | 8 + website/src/site-data.ts | 6 + 12 files changed, 381 insertions(+), 47 deletions(-) diff --git a/docs/ops/HYPERTWIST_PUBLIC_WEBSITE_AUTH_BILLING_AND_DISTRIBUTION_PACKET_2026-06-22.md b/docs/ops/HYPERTWIST_PUBLIC_WEBSITE_AUTH_BILLING_AND_DISTRIBUTION_PACKET_2026-06-22.md index 153792f..359f65d 100644 --- a/docs/ops/HYPERTWIST_PUBLIC_WEBSITE_AUTH_BILLING_AND_DISTRIBUTION_PACKET_2026-06-22.md +++ b/docs/ops/HYPERTWIST_PUBLIC_WEBSITE_AUTH_BILLING_AND_DISTRIBUTION_PACKET_2026-06-22.md @@ -128,6 +128,12 @@ The protected dashboard now also has a first-party launch-readiness panel for: - backend webhook-secret and billing-map configuration posture - public auth runtime posture, cookie-hardening posture, and local-vs-public runtime diagnostics +The next same-family protected-shell continuation then widened that signed-in +launch-truth lane into a dedicated `/app/launch-status` route so rollout +blockers, release action, packaged desktop proof, notices references, and +signed-in next steps no longer collapse back to a single dashboard panel after +auth succeeds. + The adjacent protected account route now also mirrors that same signed-in auth/session-authority truth instead of reducing the account lane to a thinner identity-and-billing shell than the main protected dashboard. @@ -292,6 +298,10 @@ Current behavior: - the protected dashboard launch-readiness panel and the public preview-versus-launch callouts now also consume manifest-backed Windows download truth instead of relying only on static frontend config +- the dedicated protected `/app/launch-status` route now consumes that same + manifest-backed Windows download truth too, so signed-in rollout review + stays aligned with both the public authority page and the protected release + action surface - the same public launch-status lane now also checks live auth-health webhook and public-origin readiness posture before presenting the site as launch-ready - the runtime-readiness verifier now accepts server-backed release-manifest diff --git a/docs/v6_5_deep_manual_pack/HyperTwist/DEVELOPMENT.md b/docs/v6_5_deep_manual_pack/HyperTwist/DEVELOPMENT.md index a9f7b06..6899ff4 100644 --- a/docs/v6_5_deep_manual_pack/HyperTwist/DEVELOPMENT.md +++ b/docs/v6_5_deep_manual_pack/HyperTwist/DEVELOPMENT.md @@ -1053,6 +1053,10 @@ Current audit note: preview-versus-launch posture through a dedicated public `/launch-status` route, so rollout blockers, release references, support lanes, and packaged proof no longer have to be reconstructed from pricing plus scattered callouts +- the adjacent protected-shell parity continuation then mirrored that same + rollout truth after sign-in through a dedicated `/app/launch-status` route, + so the signed-in browser lane no longer reduces launch authority back to a + single dashboard panel once account context is present - this keeps the public manual professional without inventing browser simulator parity or widening the native XR branch - focused validation for that continuation stayed green under: diff --git a/docs/v6_5_deep_manual_pack/HyperTwist/FEATURE_REGISTRY.md b/docs/v6_5_deep_manual_pack/HyperTwist/FEATURE_REGISTRY.md index 219a6f1..5b5dd1d 100644 --- a/docs/v6_5_deep_manual_pack/HyperTwist/FEATURE_REGISTRY.md +++ b/docs/v6_5_deep_manual_pack/HyperTwist/FEATURE_REGISTRY.md @@ -269,7 +269,7 @@ repo. | Feature | Status | Primary authority | Notes | |---|---|---|---| | Public `hypertwist.app` marketing shell | Implemented now | first-party `website/` app + feature registry/roadmap authority | HyperTwist now has a dedicated first-party public web surface for homepage, feature atlas, about, resources, pricing, download, support, legal routes, a dedicated `/getting-started` onboarding surface, and a dedicated `/launch-status` authority surface. This lane is separate from the embedded Unreal browser runtime under `Content/Browser/` and does not claim browser-simulator parity. The same public lane now also serves as a bounded operator/distribution manual through the docs/resources/download/support surfaces, the public feature-atlas route, the dedicated getting-started route, the dedicated launch-status route, and related launch/status surfaces, explaining browser-versus-desktop posture, rollout steps, package proof, simulator-use guidance, and current input/device truth without claiming browser ownership of the native runtime or overclaiming unfinished VR/controller posture. The same package now also carries a first-party external runtime-readiness verifier so deploy-time env and live health posture can be checked outside the dashboard, plus separated local-versus-production env templates whose placeholder values are intentionally rejected until real launch config is in place, bootstrap CI now validates both the frontend and auth-server website commands directly, and the auth server can now auto-serve the built `website/dist` bundle with bounded SPA fallback for same-origin public deployment. Request-level server coverage now also proves that public/app shell delivery does not shadow `/api/*`, `/auth*`, `/health`, or missing asset paths, while the pricing/download/notices routes now surface first-party preview-versus-launch posture from the same bounded launch checklist instead of relying on hidden operator-only status. The shared marketing shell now also carries a compact public-site-status banner across public pages, the homepage keeps a fuller status section, and the shared public launch-status component now consumes live auth-health webhook/runtime truth in addition to release-manifest download readiness so public marketing copy does not claim launch posture from static checkout/download config alone. The auth server now also emits an authoritative `launch` summary on `/api/auth/health`, including required blocker labels, billing product/price-map gates, and current checkout targets, so the public banner and protected dashboard no longer duplicate launch-blocker evaluation client-side. A later same-family continuation then widened that release-manifest authority again to carry public runtime commerce config for operator/studio checkout URLs and live plan-price strings, so pricing, notices, and dashboard launch-readiness surfaces no longer depend only on frontend build-time checkout config. The live website lane now also owns route-aware title/description/canonical/Open-Graph/Twitter metadata for the real `hypertwist.app` marketing surface so deployed public pages no longer remain on a single generic SPA title/description, plus first-party `robots.txt` and `sitemap.xml` assets for the public route set while keeping `/app`, `/login`, and `/register` out of crawler posture. The real `check-runtime-readiness` CLI is now also exercised against the checked-in production example env files, and a spawned `website/server` bootstrap proof now verifies the live same-origin process path from production-shaped env into `/health`, `/api/auth/health`, built-shell serving, and the public anonymous release-manifest posture for the shared desktop release lane. The same verifier now also probes the deployed root-shell marker and can explicitly fail when the public origin is still serving the older placeholder rollout page instead of the first-party website/auth-server lane, while the repo now also carries first-party `website/deploy/` `nginx` plus `systemd` handoff templates, a concrete same-origin public-host cutover guide, a deployment-file renderer that emits resolved operator outputs from real checkout paths, and a manifest-driven bundle renderer that lets one authoritative input own the public origin while emitting validated env plus install artifacts together, with the shared-VPS-safe default upstream moved to `3011` after live host inspection confirmed `3001` is already occupied by FamiliarOS. The same deployment lane now also distinguishes `launch` from `preview` posture so honest missing checkout/download/webhook/release values are accepted only for non-public rehearsal while placeholder strings still fail, `runtime.mode: mixed` plus `public_origin_ready: true` counts as valid preview-host proof, and the staging helper can archive either committed `HEAD` or the live worktree through `--archive-source worktree`. An isolated VPS-local staging proof then confirmed that both the committed HyperTwist website lane and the later preview-tier worktree packet can serve green health, release-manifest, and first-party shell responses on that real shared host behind `3011`, and a later root-owned cutover then replaced the public placeholder site with the live first-party same-origin preview deployment on `https://hypertwist.app`. The package now also ships a bounded root-owned live-deploy helper that stages the committed checkout, uploads the rendered bundle, installs env, rebuilds the site, replaces the live `systemd` plus `nginx` files, and validates the public origin; that helper has already been re-proved idempotently against the live host. The repo now also ships that host-proof flow as a first-party staging helper so future sessions can rerun the temp checkout/build/boot verification path directly before or after root-owned cutover. The website lane now also owns a sanitized generated packaged-validation summary for the Windows higher-dimensional desktop proof, rendered from the checked-in authoritative package report into `website/src/shared/generated/windows-package-validation-summary.json`, and the owned web-surface validation gate now checks that generated proof for freshness before approving the current public/auth/download/browser lane. The remaining public conversion seams now also stop dead-ending on generic sign-in/support detours when the next lane is already known: the explorer CTA preserves `/register?next=/app`, operator fallback opens the protected downloads lane, studio fallback opens the protected browser-access rollout lane, and launch/download fallback callouts now point directly at protected release, notices, or dashboard follow-through. The narrative/help surfaces then widened again so the public About and Support pages also surface the same live launch-readiness callout and packaged desktop-proof section already used by the stronger public manual routes, keeping maturity language attached to current native release evidence instead of leaving those pages purely abstract. The same public manual continuation now also adds a direct reusable surface-choice guide across the homepage, About, Pricing, Download, and Support pages so operators no longer have to infer from the larger surface matrix alone when they should stay on the public web surface, move into the protected dashboard, or move into the packaged desktop runtime. A later same-family continuation then propagated that same guide through the remaining public feature/docs/resources/changelog/legal pages as well, so the whole public site now preserves one consistent browser-versus-protected-versus-desktop handoff story instead of leaving those lower-traffic surfaces on older implicit wording. A further same-day manual-clarity continuation then added a reusable direct comparison section across the homepage, About, Docs, and Download routes explaining why the website remains necessary, where it is intentionally narrower than the simulator, why the native Unreal runtime stays primary, and how the current keyboard or mouse versus unfinished XR/controller truth should be read. The latest same-family parity follow-up then widened that exact browser-versus-desktop reality section into Pricing and Resources as well, so commercial and reference-heavy public routes no longer rely only on the lighter surface-choice guide when explaining what stays native and where the current XR/controller boundary still begins. The next adjacent parity follow-up then extended the same direct comparison into the public Feature atlas and Support routes as well, so the remaining major public operator-facing surfaces no longer fall back to the lighter guide alone when capability review or recovery work needs the sharper website-versus-native split. A later same-family continuity follow-up then widened the shared release-decision guide into the remaining public legal/notices routes too, so open-source notices, privacy, terms, and shipping/payment now also tell the operator whether the next honest move is protected desktop access, pricing/provisioning, protected browser/account continuity, or notices/source follow-through instead of leaving those pages on the older lighter handoff only. The same browser shell now also has a first-party top-level runtime-recovery boundary, so unexpected React route failures degrade into a HyperTwist-owned retry/return surface that keeps the browser-versus-desktop product truth explicit instead of collapsing into a blank shell. A later same-family quickstart/manual continuation then added a reusable first serious-session guide across homepage, docs, and download so operators can see the real path from release-target choice through desktop-link pairing, first native verification, higher-dimensional verification, and the current XR/controller `No-Go` boundary in one place instead of reconstructing that flow from scattered adjacent sections. That same onboarding/manual packet is now also anchored at a dedicated public `/getting-started` route so the shortest complete browser-to-desktop first-session path is canonical, crawlable, and easier to hand off than the broader site sections alone. The next adjacent launch-authority continuation then did the same for rollout truth through a dedicated public `/launch-status` route, giving preview-versus-launch posture, rollout blockers, packaged proof, and release-reference follow-through one canonical public authority surface instead of leaving that lane distributed across pricing and compact status banners alone. | -| Browser-based operator/account dashboard | Implemented now | first-party `website/` app + shared auth/dashboard packet | A protected browser dashboard is now live for operator access, account state, download posture, browser-access boundary explanation, notices review, and bounded billing/entitlement status. It reuses the shared SuperTokens auth posture proven in FamiliarOS and ScriptoriumAI while remaining HyperTwist-specific in product content and boundary claims, the current auth-health surface now truthfully distinguishes configured versus reachable or ready shared-core posture while exposing fallback-active reason instead of hardcoding readiness, and the same dashboard now also surfaces launch-readiness truth for download URLs, checkout links, source/notices URLs, billing-secret/map configuration, and local-versus-public runtime deployment posture. The same shared-auth lane now also carries end-to-end optional provider parity for GitHub, Google, and bounded ORCID sign-in: the auth server owns the ORCID custom-provider path, the same-origin bundle emits matching ORCID frontend/server env truth, auth-health reports ORCID readiness alongside the other providers, and the public docs route now exposes the current browser-account method lineup instead of leaving provider truth visible only on the form pages. The same protected overview now also consumes the server-backed Windows packaged-validation summary that the release-manifest authority exposes, so operators can see current higher-dimensional desktop proof without drilling into the dedicated downloads screen. The adjacent protected `/app/browser-access` and `/app/notices` routes now also reuse the bounded escalation-map and release-follow-through guidance from the public support/manual lane, so sign-in does not degrade operator troubleshooting quality into a thinner shell than the public surface. The protected overview and protected download center now also mirror the same launch-readiness, operator-access, and studio-rollout help lanes as the public support/manual surface, but translate those actions into direct signed-in dashboard, downloads, browser-access, account, notices, pricing, and release-notes targets instead of sending the operator back through anonymous auth detours. A later same-family parity follow-up then added the same blunt browser-versus-desktop reality explanation to the protected dashboard, protected downloads, and browser-access routes as well, so sign-in no longer makes the product boundary or unfinished XR/controller truth less explicit than the public manual. The next adjacent parity follow-up then extended that same compact reality panel into the protected account and notices routes too, so entitlement review and distribution/compliance work no longer soften the browser-support versus native-simulator split after sign-in. The auth entry pages now also render the same browser-versus-desktop truth before sign-in is even complete, so login and register no longer rely only on next-step routing plus later dashboard surfaces to explain what stays native and where the current XR/controller boundary still begins. A later same-family protected-shell continuation then widened signed-in auth truth itself, so the dashboard and account routes now surface the auth method, current provider lineup, shared-auth readiness, runtime origins, cookie/public-origin posture, fallback state, and deployment diagnostics directly instead of collapsing that truth down to a thin stack label. The protected fallback path now also preserves signed-in viewer plan/access posture from local session truth when live manifest authority is temporarily unavailable, while still keeping download authority conservative until the auth server returns. The shared browser auth layer now also has a bounded release-authority reconciliation path that refreshes and persists the local browser session snapshot from fresher manifest viewer truth, while the dashboard and account surfaces expose a compact live-authority sync notice summarizing what changed so operators can see the session catch-up clearly. That same auth layer now also clears stale stored sessions when shared auth is configured and `/api/auth/me` returns `401`, while still preserving the intended offline/local-fallback posture when the account API is merely unreachable or shared auth is not configured. Focused frontend coverage now also protects deep-link login redirect preservation, safe `next`-path normalization across auth entry points, fallback/email auth-bootstrap normalization, login/register continuation behavior, public download-gating behavior, protected-route/shell behavior, real lazy-route tree behavior for key public and protected paths, top-level app-bootstrap and SuperTokens-wrapper posture, login/register unhappy-path and OAuth-button behavior, support-topic fallback routing when live checkout is not configured, desktop-link verify-url/dashboard readiness behavior, and explicit `noindex,nofollow` posture on protected/auth browser surfaces. The validation lane now also has a bounded signed test-session harness under `TEST_MODE=testing` that proves `/api/auth/me`, stale-session invalidation, release-authority reconciliation, and `/api/auth/desktop-link` behavior through the live spawned auth-server process without widening production auth posture. | +| Browser-based operator/account dashboard | Implemented now | first-party `website/` app + shared auth/dashboard packet | A protected browser dashboard is now live for operator access, account state, download posture, browser-access boundary explanation, notices review, and bounded billing/entitlement status. It reuses the shared SuperTokens auth posture proven in FamiliarOS and ScriptoriumAI while remaining HyperTwist-specific in product content and boundary claims, the current auth-health surface now truthfully distinguishes configured versus reachable or ready shared-core posture while exposing fallback-active reason instead of hardcoding readiness, and the same dashboard now also surfaces launch-readiness truth for download URLs, checkout links, source/notices URLs, billing-secret/map configuration, and local-versus-public runtime deployment posture. The same shared-auth lane now also carries end-to-end optional provider parity for GitHub, Google, and bounded ORCID sign-in: the auth server owns the ORCID custom-provider path, the same-origin bundle emits matching ORCID frontend/server env truth, auth-health reports ORCID readiness alongside the other providers, and the public docs route now exposes the current browser-account method lineup instead of leaving provider truth visible only on the form pages. The same protected overview now also consumes the server-backed Windows packaged-validation summary that the release-manifest authority exposes, so operators can see current higher-dimensional desktop proof without drilling into the dedicated downloads screen. The adjacent protected `/app/browser-access` and `/app/notices` routes now also reuse the bounded escalation-map and release-follow-through guidance from the public support/manual lane, so sign-in does not degrade operator troubleshooting quality into a thinner shell than the public surface. The protected overview and protected download center now also mirror the same launch-readiness, operator-access, and studio-rollout help lanes as the public support/manual surface, but translate those actions into direct signed-in dashboard, downloads, browser-access, account, notices, pricing, and release-notes targets instead of sending the operator back through anonymous auth detours. A later same-family parity follow-up then added the same blunt browser-versus-desktop reality explanation to the protected dashboard, protected downloads, and browser-access routes as well, so sign-in no longer makes the product boundary or unfinished XR/controller truth less explicit than the public manual. The next adjacent parity follow-up then extended that same compact reality panel into the protected account and notices routes too, so entitlement review and distribution/compliance work no longer soften the browser-support versus native-simulator split after sign-in. The auth entry pages now also render the same browser-versus-desktop truth before sign-in is even complete, so login and register no longer rely only on next-step routing plus later dashboard surfaces to explain what stays native and where the current XR/controller boundary still begins. A later same-family protected-shell continuation then widened signed-in auth truth itself, so the dashboard and account routes now surface the auth method, current provider lineup, shared-auth readiness, runtime origins, cookie/public-origin posture, fallback state, and deployment diagnostics directly instead of collapsing that truth down to a thin stack label. The protected fallback path now also preserves signed-in viewer plan/access posture from local session truth when live manifest authority is temporarily unavailable, while still keeping download authority conservative until the auth server returns. The shared browser auth layer now also has a bounded release-authority reconciliation path that refreshes and persists the local browser session snapshot from fresher manifest viewer truth, while the dashboard and account surfaces expose a compact live-authority sync notice summarizing what changed so operators can see the session catch-up clearly. That same auth layer now also clears stale stored sessions when shared auth is configured and `/api/auth/me` returns `401`, while still preserving the intended offline/local-fallback posture when the account API is merely unreachable or shared auth is not configured. The next adjacent protected-shell launch-authority continuation then added a dedicated signed-in `/app/launch-status` route, so launch posture, rollout blockers, release references, packaged proof, and signed-in next actions no longer collapse back to a single overview panel once account context exists. Focused frontend coverage now also protects deep-link login redirect preservation, safe `next`-path normalization across auth entry points, fallback/email auth-bootstrap normalization, login/register continuation behavior, public download-gating behavior, protected-route/shell behavior, real lazy-route tree behavior for key public and protected paths, top-level app-bootstrap and SuperTokens-wrapper posture, login/register unhappy-path and OAuth-button behavior, support-topic fallback routing when live checkout is not configured, desktop-link verify-url/dashboard readiness behavior, and explicit `noindex,nofollow` posture on protected/auth browser surfaces. The validation lane now also has a bounded signed test-session harness under `TEST_MODE=testing` that proves `/api/auth/me`, stale-session invalidation, release-authority reconciliation, and `/api/auth/desktop-link` behavior through the live spawned auth-server process without widening production auth posture. | | Desktop download posture and browser-to-desktop pairing | Implemented now | first-party `website/` app + `website/server` desktop-link endpoints | Public download targets, dashboard-side release posture, and short-lived desktop-link token generation/verification are now first-party owned. The current server posture now enforces exact website-origin matching, bounded per-user issuance, one-time token consumption, and billing-backed plan/download entitlement resolution with focused `website/server` tests green on `2026-06-22`, and the verify handshake now returns the same resolved download-entitlement posture the dashboard sees instead of only identity plus plan/role. The same lane now also owns a shared `GET /api/releases/manifest` runtime authority for release version/channel/build/published/file-size/checksum/docs/source metadata, with anonymous callers intentionally denied raw download URLs while entitled session-backed callers receive the configured direct platform URL. That manifest now also carries first-party packaged-validation summary truth for the Windows higher-dimensional desktop lane, so the public `/download` page, the public `/resources` reference page, and the protected `/app/downloads` surface can project real package evidence for the dedicated-family `Magic120Cell` / `MagicCube5D` maps even while launch-tier release URLs remain unconfigured. That website-facing packaged proof is now sourced through a sanitized generated summary rendered from the checked-in authoritative `phase6c_dedicated_family_package_validation_report.json`, and the owned web-surface validation gate now checks that generated summary for freshness before approving the current public/auth/download/browser lane. The public `/download` page now keeps raw download URLs behind the protected dashboard instead of exposing them directly, preserves requested platform continuity through `/app/downloads?platform=...`, and surfaces that requested target again after auth handoff inside the protected release lane. The public download fallbacks now also open exact protected download and dashboard follow-through instead of stopping at a generic anonymous login hop. When live manifest authority is unavailable, the protected fallback path now still reflects the signed-in viewer posture from local session truth while continuing to withhold raw delivery authority. When live manifest authority resolves fresher entitled viewer truth than the local browser auth snapshot, the protected download-center lane now also follows that server-backed viewer posture for the actual download action instead of leaving the operator blocked behind stale local session state. Both the public and protected download surfaces now also carry first-party rollout steps, first-launch desktop setup guidance, browser-to-desktop pairing follow-through, and release/notices/source references so the desktop setup lane is more than a generic link bucket, while the support surface now carries an explicit escalation map separating account, package, runtime, and rollout/compliance problems. The protected dashboard overview and protected account surface now also mirror that same first-launch follow-through, and the protected browser-access/notices routes now mirror the same escalation separation, so post-sign-in operator guidance does not collapse back into a thinner release-only shell. The protected download center now also mirrors the same three help-topic lanes used by the public support/manual surface, but with direct signed-in actions for downloads, dashboard, account, browser access, notices, and release notes so entitled operators can stay inside the protected rollout lane once auth has already succeeded. The dashboard plus public launch-status callouts now consume the same manifest-backed Windows download truth instead of only static frontend config. Actual release URLs remain deployment configuration rather than hardcoded product truth. | | Paddle-ready pricing and billing webhook seam | Implemented now | first-party `website/` app + `website/server` billing endpoint | The public pricing surface now exists with plan structure, checkout-link configuration seams, and the same `/api/billing/paddle/webhook` endpoint family used by the broader product website lane. The current server now verifies `Paddle-Signature` against `PADDLE_WEBHOOK_SECRET` using the documented raw-body HMAC flow, persists a bounded first-party billing state file, and applies verified Paddle events into account/download entitlement state that the browser dashboard consumes, with focused `website/server` tests green on `2026-06-22`. The shared `GET /api/releases/manifest` authority now also carries public runtime commerce config for operator/studio checkout URLs and live plan-price strings, allowing the pricing page to switch from frontend build-time checkout assumptions to auth-server runtime truth when those values are configured. The fallback plan CTAs now also use exact protected release/browser-access targets when live checkout URLs are absent, instead of routing operators back into a vague public support detour. A spawned live-process proof now also verifies that a real signed webhook updates processed-event health and persisted billing state through the actual auth-server runtime, not only helper-level store tests, and transaction events no longer leak their id into stored `subscriptionId` state. Production checkout URLs, secret management, and broader operator/admin billing workflows remain deployment/application tasks, not shipped-code omissions. | | Public open-source notices and corresponding-source surface | Implemented now | first-party `website/` app + `HYPERTWIST_MPL_DISTRIBUTION_PLACEMENT_CHECKLIST_2026-05-25.md` | HyperTwist now has a stable public `Open Source Notices` route linked from pricing, download, and footer surfaces, satisfying the requirement that public distribution surfaces expose notice and corresponding-source guidance when shipped builds contain `MPL`-covered material. The exact public corresponding-source URL still must be configured before external launch. | diff --git a/website/README.md b/website/README.md index 65ac7b8..73cf8c6 100644 --- a/website/README.md +++ b/website/README.md @@ -7,14 +7,14 @@ First-party `hypertwist.app` surface for HyperTwist: - dedicated public `/launch-status` route for the canonical preview-versus-launch rollout checklist - public feature-atlas route for current capability and boundary truth - browser-facing operator/account dashboard -- protected browser-access, account, and notices routes backed by live auth-health and release-manifest authority +- protected launch-status, browser-access, account, and notices routes backed by live auth-health and release-manifest authority - shared SuperTokens auth posture reused from the FamiliarOS and ScriptoriumAI website lane - route-aware SuperTokens wrapping so public brochure routes do not pay for auth chrome unnecessarily while `/app`, `/login`, `/register`, `/auth/*`, and stored-session continuity still do - FamiliarOS-style first-party auth-shell backdrop for login/register/auth callback posture, including first-paint HTML fallback plus route-synced runtime ownership - desktop download posture and desktop-link handshake endpoints - server-backed release-manifest authority shared by public and protected download surfaces - Paddle-ready pricing/check-out wiring -- dashboard-side launch-readiness surface for download, checkout, auth, and notice configuration +- dashboard-side plus dedicated protected launch-status surfaces for download, checkout, auth, and notice configuration - public launch-status callouts across pricing, download, and notices surfaces - route-aware metadata, canonical, Open Graph, Twitter-card, and protected-route noindex posture for the live `hypertwist.app` surface - first-party `robots.txt` plus `sitemap.xml` for the public crawlable route set while keeping `/app`, `/login`, and `/register` out of crawler posture @@ -84,6 +84,9 @@ manual: - the same launch-authority story is now also anchored at a dedicated public `/launch-status` route so preview-versus-launch truth, rollout blockers, packaged proof, and release references have one canonical authority surface +- the protected operator shell now also mirrors that same launch-authority + posture on a dedicated signed-in `/app/launch-status` route, so rollout + truth no longer collapses back down to a single dashboard panel after sign-in - the protected app shell now also carries richer operator-facing browser boundary, account, entitlement, and notices guidance instead of treating those routes as thin placeholders beside the main dashboard @@ -444,7 +447,7 @@ The focused frontend test coverage now also pins: - platform-preserving `/download -> /app/downloads?platform=...` continuation plus requested-target surfacing inside the protected release lane - support-topic fallback routing for pricing and launch-readiness actions when live checkout is not configured yet - protected-route loading/redirect behavior plus auth-aware marketing/app shell actions -- real `AppRouteTree` smoke coverage for `/`, `/features`, `/pricing`, `/download`, `/login`, `/app`, and `/app/downloads` +- real `AppRouteTree` smoke coverage for `/`, `/features`, `/pricing`, `/download`, `/login`, `/app`, `/app/launch-status`, and `/app/downloads` - top-level `App` bootstrap coverage for unknown-route redirect and SuperTokens wrapper on/off posture - login/register unhappy-path coverage for returned form errors, auth-runtime warning callouts, and OAuth-button visibility/invocation - dashboard launch-readiness plus desktop-link verify-url behavior diff --git a/website/src/__tests__/DashboardOverviewPage.test.tsx b/website/src/__tests__/DashboardOverviewPage.test.tsx index 9bac13e..cc178a3 100644 --- a/website/src/__tests__/DashboardOverviewPage.test.tsx +++ b/website/src/__tests__/DashboardOverviewPage.test.tsx @@ -202,6 +202,11 @@ describe('DashboardOverviewPage', () => { expect(screen.getByText('Signed-in help lanes')).toBeTruthy() expect(screen.getByText('Protected browser-versus-desktop reality')).toBeTruthy() expect(screen.getByText('Current input, XR, and settings truth')).toBeTruthy() + expect( + screen + .getAllByRole('link', { name: 'Open protected launch status' }) + .some((link) => link.getAttribute('href') === '/app/launch-status'), + ).toBe(true) expect(screen.getByRole('link', { name: 'Open account' }).getAttribute('href')).toBe('/app/account') expect(screen.getAllByRole('link', { name: 'Open browser access' }).every((link) => link.getAttribute('href') === '/app/browser-access')).toBe(true) expect(screen.getAllByRole('link', { name: 'Open notices' }).length).toBeGreaterThan(0) diff --git a/website/src/__tests__/app-route-tree.test.tsx b/website/src/__tests__/app-route-tree.test.tsx index 39a10a2..48d70cc 100644 --- a/website/src/__tests__/app-route-tree.test.tsx +++ b/website/src/__tests__/app-route-tree.test.tsx @@ -348,6 +348,75 @@ describe('AppRouteTree', () => { expect(screen.getByText('Windows')).toBeTruthy() }) + it('renders the protected launch-status route through the real route tree when authenticated', async () => { + mockUsePlatformAuth.mockReturnValue({ + isAuthenticated: true, + isLoading: false, + login: vi.fn(), + register: vi.fn(), + logout: vi.fn(), + toggleColorMode: vi.fn(), + colorMode: 'dark', + superTokensConfigured: true, + user: { + id: 'operator-1', + name: 'Operator', + email: 'operator@hypertwist.app', + plan: 'operator', + role: 'operator', + canDownload: true, + billing: { + source: 'session', + accessStatus: 'active', + canDownload: true, + lastEventType: 'transaction.completed', + }, + }, + }) + mockGetReleaseManifest.mockResolvedValue({ + ok: true, + manifest: { + generated_at: '2026-06-22T12:00:00.000Z', + support_email: 'hello@hypertwist.app', + public_docs_url: 'https://docs.hypertwist.app', + release_notes_url: 'https://notes.hypertwist.app', + corresponding_source_url: 'https://hypertwist.app/open-source/source.zip', + open_source_repo_url: 'https://github.com/hypertwist/hypertwist', + viewer: { + authenticated: true, + canDownload: true, + plan: 'operator', + role: 'operator', + accessStatus: 'active', + }, + platforms: [ + { + platform_key: 'windows', + platform: 'Windows', + subtitle: 'Primary shipping lane', + details: 'Current packaged validation is strongest on the Windows Unreal lane.', + configured: true, + channel: 'candidate', + version: '1.0.0', + build_id: 'win64-1000', + published_at: '2026-06-22T00:00:00.000Z', + file_name: 'HyperTwist-Windows.zip', + file_size_bytes: 1048576, + checksum_sha256: 'abc123', + download_url: 'https://downloads.hypertwist.app/windows.exe', + download_available: true, + }, + ], + }, + }) + + renderRoute('/app/launch-status') + await waitFor(() => { + expect(screen.getByText('Protected launch status')).toBeTruthy() + }) + expect(screen.getByText('Launch references and notices')).toBeTruthy() + }) + it('renders the protected browser-access route through the real route tree when authenticated', async () => { mockUsePlatformAuth.mockReturnValue({ isAuthenticated: true, diff --git a/website/src/__tests__/protected-app-pages.test.tsx b/website/src/__tests__/protected-app-pages.test.tsx index 71a3c72..3e829ac 100644 --- a/website/src/__tests__/protected-app-pages.test.tsx +++ b/website/src/__tests__/protected-app-pages.test.tsx @@ -20,7 +20,7 @@ vi.mock('../auth/auth-api', () => ({ getReleaseManifest: (...args: unknown[]) => mockGetReleaseManifest(...args), })) -import { AccountPage, BrowserAccessPage, DownloadCenterPage, NoticesPage } from '../pages/app-pages' +import { AccountPage, BrowserAccessPage, DownloadCenterPage, NoticesPage, ProtectedLaunchStatusPage } from '../pages/app-pages' function renderPage(page: React.ReactNode, initialEntry: string) { const queryClient = new QueryClient({ @@ -209,6 +209,23 @@ describe('protected app pages', () => { expect(screen.getByRole('link', { name: 'Open support' }).getAttribute('href')).toBe('/support?topic=operator-access') }) + it('surfaces a dedicated protected launch-status route with signed-in rollout authority', async () => { + renderPage(, '/app/launch-status') + + expect(await screen.findByText('Protected launch status')).toBeTruthy() + expect(screen.getByText('Signed-in rollout authority')).toBeTruthy() + expect(screen.getByText('Current release action')).toBeTruthy() + expect(screen.getByText('Current packaged desktop proof')).toBeTruthy() + expect(screen.getByText('Launch-readiness support lane')).toBeTruthy() + expect(screen.getByText('Launch references and notices')).toBeTruthy() + expect(screen.getByText('Protected browser-versus-desktop reality')).toBeTruthy() + expect(screen.getByRole('link', { name: 'Open public launch status' }).getAttribute('href')).toBe('/launch-status') + expect(screen.getByRole('link', { name: 'Open protected launch status' }).getAttribute('href')).toBe('/app/launch-status') + expect(await screen.findByText(byExactTextContent('Public repository/notices URL: https://github.com/hypertwist/hypertwist', 'LI'))).toBeTruthy() + expect(screen.getByRole('link', { name: 'Protected notices' }).getAttribute('href')).toBe('/app/notices') + expect(screen.getByRole('link', { name: 'Public notices' }).getAttribute('href')).toBe('/open-source-notices') + }) + it('keeps the protected download center aligned with packaged proof, notices, and escalation guidance', async () => { renderPage(, '/app/downloads?platform=windows') diff --git a/website/src/__tests__/route-shells.test.tsx b/website/src/__tests__/route-shells.test.tsx index b7effd8..f6ae681 100644 --- a/website/src/__tests__/route-shells.test.tsx +++ b/website/src/__tests__/route-shells.test.tsx @@ -250,6 +250,8 @@ describe('website route and shell behavior', () => { expect(screen.getByText('studio plan')).toBeTruthy() expect(screen.getByText('Overview content')).toBeTruthy() expect(screen.getByText('Desktop-first operator lane')).toBeTruthy() + expect(screen.getByRole('link', { name: 'Launch Status' }).getAttribute('href')).toBe('/app/launch-status') + expect(screen.getByRole('link', { name: 'Protected launch status' }).getAttribute('href')).toBe('/app/launch-status') expect(screen.getByRole('link', { name: 'Public download posture' }).getAttribute('href')).toBe('/download') expect(screen.getByRole('link', { name: 'Public notices' }).getAttribute('href')).toBe('/open-source-notices') expect(screen.getByRole('link', { name: 'Operator access support' }).getAttribute('href')).toBe('/support?topic=operator-access') diff --git a/website/src/components/layout/AppShell.tsx b/website/src/components/layout/AppShell.tsx index 572745a..6e2d8de 100644 --- a/website/src/components/layout/AppShell.tsx +++ b/website/src/components/layout/AppShell.tsx @@ -1,4 +1,4 @@ -import { Gauge, KeyRound, MonitorSmartphone, PackageOpen, ShieldCheck } from 'lucide-react' +import { Gauge, KeyRound, Landmark, MonitorSmartphone, PackageOpen, ShieldCheck } from 'lucide-react' import { Link, NavLink, Outlet } from 'react-router-dom' import { usePlatformAuth } from '../../auth/platform-auth' import { brandConfig } from '../../site-config' @@ -6,6 +6,7 @@ import { buildSupportPath } from '../../site-routes' const appLinks = [ { to: '/app', label: 'Overview', icon: Gauge, end: true }, + { to: '/app/launch-status', label: 'Launch Status', icon: Landmark }, { to: '/app/downloads', label: 'Downloads', icon: MonitorSmartphone }, { to: '/app/browser-access', label: 'Browser Access', icon: PackageOpen }, { to: '/app/account', label: 'Account', icon: KeyRound }, @@ -53,6 +54,7 @@ export function AppShell() { Use the native Unreal runtime for actual simulator execution.

    +
  • Protected launch status
  • Public download posture
  • Public notices
  • Operator access support
  • diff --git a/website/src/pages/app-pages.tsx b/website/src/pages/app-pages.tsx index d4412c9..aef7a4d 100644 --- a/website/src/pages/app-pages.tsx +++ b/website/src/pages/app-pages.tsx @@ -370,6 +370,11 @@ type ProtectedReleaseAction = { primary?: boolean } +type ProtectedLaunchReadinessAction = { + label: string + to: string +} + type ProtectedReleaseActionSurface = { badge: string tone: 'success' | 'info' @@ -383,6 +388,7 @@ function buildProtectedSupportTopicActions(topicKey: string): readonly Protected switch (topicKey) { case 'launch-readiness': return [ + { label: 'Open protected launch status', to: '/app/launch-status' }, { label: 'Open downloads', to: buildProtectedDownloadPath('windows') }, { label: 'Open notices', to: '/app/notices' }, { label: 'Open pricing', to: '/pricing' }, @@ -431,6 +437,79 @@ function ProtectedActionLink({ ) } +function ProtectedLaunchReadinessPanel({ + title, + kicker, + description, + launchStatus, + releaseManifestQuery, + actions = [], +}: { + title: string + kicker: string + description?: string + launchStatus: ReturnType + releaseManifestQuery: { + isLoading: boolean + isError: boolean + } + actions?: readonly ProtectedLaunchReadinessAction[] +}) { + const launchReadinessIssues = launchStatus.missingLabels + + return ( + + {description ?

    {description}

    : null} +

    + {launchStatus.ready ? 'Launch-ready posture' : 'Preview posture'} +

    +
      + {launchStatus.checklist.map((item) => ( +
    • + {item.label}: {item.configured + ? (item.id === 'public-auth-runtime' ? 'production-ready' : 'configured') + : (item.id === 'public-auth-runtime' ? 'local-or-mixed' : 'missing')} +
    • + ))} +
    • Operator checkout target: {launchStatus.targets.operatorCheckoutTarget || 'support fallback active'}
    • +
    • Studio checkout target: {launchStatus.targets.studioCheckoutTarget || 'support fallback active'}
    • +
    + {releaseManifestQuery.isLoading ? ( +

    Refreshing release-manifest download readiness from the auth server.

    + ) : null} + {releaseManifestQuery.isError ? ( + + ) : null} + {launchReadinessIssues.length > 0 ? ( +

    + Public launch is not fully configured yet: {launchReadinessIssues.join('; ')}. +

    + ) : ( +

    Core public release configuration is present for the current bounded website lane.

    + )} + {actions.length > 0 ? ( +
    + {actions.map((action) => ( + + {action.label} + + ))} +
    + ) : null} +
    + ) +} + function describeReleaseTarget( platform: ReleaseManifestView['platforms'][number] | null | undefined, ) { @@ -751,6 +830,79 @@ function ProtectedReleaseActionPanel({ ) } +function ProtectedSupportTopicPanel({ + title, + kicker, + description, + topicKey, +}: { + title: string + kicker: string + description: string + topicKey: string +}) { + const topic = protectedSupportTopicGuides.find((item) => item.topicKey === topicKey) + if (!topic) { + return null + } + + return ( + +

    {description}

    +
    +
    +

    {topic.title}

    +

    {topic.description}

    +
      + {topic.steps.map((step) => ( +
    • {step}
    • + ))} +
    +
    + {topic.actions.map((action) => ( + + {action.label} + + ))} +
    +
    +
    +
    + ) +} + +function ProtectedReleaseReferencesPanel({ + title, + kicker, + description, + releaseManifest, +}: { + title: string + kicker: string + description: string + releaseManifest: ReleaseManifestView +}) { + const supportEmail = releaseManifest.support_email || 'hello@hypertwist.app' + + return ( + +

    {description}

    +
      +
    • Public docs URL: {releaseManifest.public_docs_url || 'configure before launch'}
    • +
    • Release notes URL: {releaseManifest.release_notes_url || 'configure before launch'}
    • +
    • Corresponding-source URL: {releaseManifest.corresponding_source_url || 'configure before launch'}
    • +
    • Public repository/notices URL: {releaseManifest.open_source_repo_url || 'configure before launch'}
    • +
    • Operator support contact: {supportEmail}
    • +
    + +
    + ) +} + function PackagedValidationPanel({ title, kicker, @@ -1055,8 +1207,6 @@ export function DashboardOverviewPage() { return `${baseUrl}/api/auth/desktop-link/verify?token=${encodeURIComponent(token)}` }, [desktopLinkMutation.data?.token]) - const launchReadinessIssues = launchStatus.missingLabels - return ( <> - -

    - {launchStatus.ready ? 'Launch-ready posture' : 'Preview posture'} -

    -
      - {launchStatus.checklist.map((item) => ( -
    • - {item.label}: {item.configured - ? (item.id === 'public-auth-runtime' ? 'production-ready' : 'configured') - : (item.id === 'public-auth-runtime' ? 'local-or-mixed' : 'missing')} -
    • - ))} -
    • Operator checkout target: {launchStatus.targets.operatorCheckoutTarget || 'support fallback active'}
    • -
    • Studio checkout target: {launchStatus.targets.studioCheckoutTarget || 'support fallback active'}
    • -
    - {releaseManifestQuery.isLoading ? ( -

    Refreshing release-manifest download readiness from the auth server.

    - ) : null} - {releaseManifestQuery.isError ? ( - - ) : null} - {launchReadinessIssues.length > 0 ? ( -

    - Public launch is not fully configured yet: {launchReadinessIssues.join('; ')}. -

    - ) : ( -

    Core public release configuration is present for the current bounded website lane.

    - )} -
    + ( + resolvePublicLaunchStatusSummary( + healthQuery.data, + releaseManifestQuery.data?.manifest, + launchReadiness, + ) + ), [healthQuery.data, releaseManifestQuery.data?.manifest]) + + return ( + <> + +
    + + + + + + + + + + + + + +
    + + ) +} + export function DownloadCenterPage() { const { user, canDownload, releaseManifest, releaseManifestQuery } = useProtectedReleaseSurface('protected') const [searchParams] = useSearchParams() diff --git a/website/src/router/AppRouteTree.tsx b/website/src/router/AppRouteTree.tsx index 2e84f6b..269702f 100644 --- a/website/src/router/AppRouteTree.tsx +++ b/website/src/router/AppRouteTree.tsx @@ -6,6 +6,7 @@ import { Suspense, lazy } from 'react' import { GeneralPageLoader } from '../components/ui/Skeletons' const DashboardOverviewPage = lazy(() => import('../pages/app-pages').then((m) => ({ default: m.DashboardOverviewPage }))) +const ProtectedLaunchStatusPage = lazy(() => import('../pages/app-pages').then((m) => ({ default: m.ProtectedLaunchStatusPage }))) const DownloadCenterPage = lazy(() => import('../pages/app-pages').then((m) => ({ default: m.DownloadCenterPage }))) const BrowserAccessPage = lazy(() => import('../pages/app-pages').then((m) => ({ default: m.BrowserAccessPage }))) const AccountPage = lazy(() => import('../pages/app-pages').then((m) => ({ default: m.AccountPage }))) @@ -24,6 +25,12 @@ const protectedAppLoaders = { description: 'Resolving entitled desktop targets, current package proof, and rollout references before the signed-in download surface opens.', }, + launchStatus: { + title: 'Loading launch status...', + eyebrow: 'Protected rollout authority', + description: + 'Restoring the signed-in launch checklist, release references, and packaged proof before protected rollout follow-through resumes.', + }, browserAccess: { title: 'Loading browser access...', eyebrow: 'Protected browser shell', @@ -75,6 +82,7 @@ export function AppRouteTree() { }> }> )} /> + )} /> )} /> )} /> )} /> diff --git a/website/src/site-data.ts b/website/src/site-data.ts index 41f7e24..b9a6949 100644 --- a/website/src/site-data.ts +++ b/website/src/site-data.ts @@ -156,6 +156,7 @@ export const productSurfaceMatrixRows = [ description: 'This is the account-aware browser lane for entitlement, auth health, billing posture, protected notices, and desktop pairing.', owns: [ 'Live session, billing, entitlement, and release-manifest viewer posture.', + 'A dedicated signed-in launch-status route for rollout blockers, packaged proof, and protected next-step interpretation.', 'Desktop-link token issuance and protected follow-through after sign-in.', 'Operator-facing release, notice, and download-center context that should not sit on public pages.', ], @@ -865,6 +866,11 @@ export const resourceCollections = [ ] as const export const changelogEntries = [ + { + date: 'June 27, 2026', + title: 'Protected launch status now has its own signed-in authority route', + details: 'The browser operator shell now exposes a dedicated `/app/launch-status` route for signed-in launch-readiness truth, release action, packaged desktop proof, notices references, and protected rollout next steps instead of collapsing that lane down to one dashboard panel.', + }, { date: 'June 27, 2026', title: 'Launch status now has its own canonical public authority route',