Skip to content

feat: the front door — the console URL opens the Payload admin (PX4) - #25

Merged
ruehowl merged 1 commit into
mainfrom
orun/PX-5-front-door-v2
Oct 28, 2026
Merged

ruehowl merged 1 commit into
mainfrom
orun/PX-5-front-door-v2

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

PX4 of the lumen-payload-console epic (task PX-5, milestone PX4). After PX1–PX3, the Payload admin holds sign-in, the account pages and billing, so the product now opens there.

The console becomes a redirect Worker

  • apps/web-console-next is replaced by src/worker.ts. Every old path answers 308 to its place in the same environment's CMS. The OAuth callback is included (/auth/callback → /auth/lumen/callback).
  • It redirects only on its own hosts.
  • Its Next.js UI and tests are removed. Solo mode already hid what the UI held beyond PX2/PX3 (members, invitations, API keys, audit, projects); the epic design §8 keeps those out of scope.
  • Deploy smoke: checks the 308 into the CMS billing page, and that the console URL lands on the Lumen sign-in.
  • tests/web-console-next/src/redirect.test.ts: 18 tests over the route map, the host guard and query preservation.

The CMS is the product

  • / redirects to /admin.
  • The admin carries the product's name and mark: Logo, Icon, and titles ending "— Lumen Payload". The sign-in carries them too.
  • intent.yaml: the stage and prod product URLs point at the CMS. execution.state is untouched.
  • billing-worker POLAR_SUCCESS_URL returns to …/admin/organization/billing?checkout=complete.
  • The parked custom domain (infra/terraform/cloudflare-domain) targets lumen-payload-cms.
  • Docs: the console's README and docs are rewritten as the redirect Worker; CMS architecture and overview; epic status.

Verification

  • PX1–PX3 are live and verified on stage against the deployed admin: 35, 26 and 11 checks, all passing. Prod passed read-only checks.
  • This branch's tree is identical to the tip verified locally:
    • the redirect tests (18/18)
    • the CMS root and branding checks
    • typecheck and lint
  • After merge, on stage and prod:
    • the console URL, its old paths and /auth/callback answer 308 into the CMS;
    • following the console URL lands on the CMS sign-in, titled "Lumen Payload";
    • the CMS root redirects to /admin.

Orun-Task: PX-5



Generated by Claude Code

The product now opens in the Payload admin. The Lumen console Worker
(web-console-next) is a small redirect Worker: every old path, its OAuth
callback (/auth/callback -> /auth/lumen/callback) included, answers 308
to its place in the same environment's CMS, and only on its own hosts.
Its Next.js UI and tests are removed (what Solo mode hid stays out of
scope, per the epic design).

- the CMS root redirects to /admin; the admin carries the product's name
  and mark (Logo, Icon, "— Lumen Payload" titles), the sign-in too
- intent.yaml's stage and prod product URLs, billing-worker's checkout
  return (POLAR_SUCCESS_URL) and the parked custom domain point at the CMS
- the console's deploy smoke checks the 308 into the CMS and that the
  console URL lands on the Lumen sign-in
- docs: the console's README and docs rewritten as the redirect Worker;
  CMS architecture and overview; epic status

Orun-Task: PX-5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013JuHbkZCjDrGgHdzCrCRqG
@ruehowl
ruehowl marked this pull request as ready for review October 28, 2026 21:19
@ruehowl
ruehowl merged commit fbf4930 into main Oct 28, 2026
11 checks passed
ruehowl added a commit to sourceplane/multi-tenant-saas-2 that referenced this pull request Oct 28, 2026
The Lumen console Worker (web-console-next) becomes a small redirect
Worker: every old path, its OAuth callback (/auth/callback ->
/auth/lumen/callback) included, answers 308 to its place in the same
environment's CMS, and only on its own hosts. Its Next.js UI and tests are
removed. Ported from sourceplane/lumen-payload#25 (PX4) without its root
redirect: the CMS root stays the academy's catalogue.

- intent.yaml's stage and prod product URLs are the CMS root (the academy;
  staff reach /admin there or through the old console URL)
- billing-worker's checkout return (POLAR_SUCCESS_URL) is the CMS billing
  page; the parked custom domain targets the CMS Worker
- the admin carries the product's name and mark (Logo, Icon,
  "— Multi Tenant Saas 2" titles), the staff sign-in too
- the console's deploy smoke checks the 308 into the CMS and that the
  console URL lands on the Lumen sign-in; its redirect tests run in its build
- docs: the console's README and docs rewritten as the redirect Worker; CMS
  architecture and overview; the parked domain's README; epic status

Orun-Task: LX-4


Claude-Session: https://claude.ai/code/session_013JuHbkZCjDrGgHdzCrCRqG

Co-authored-by: Claude <noreply@anthropic.com>
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