Repository navigation
feat: the front door — the console URL opens the Payload admin (PX4) - #25
Merged
Merged
Conversation
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
marked this pull request as ready for review
October 28, 2026 21:19
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-nextis replaced bysrc/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).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.intent.yaml: the stage and prod product URLs point at the CMS.execution.stateis untouched.POLAR_SUCCESS_URLreturns to…/admin/organization/billing?checkout=complete.infra/terraform/cloudflare-domain) targetslumen-payload-cms.Verification
/auth/callbackanswer 308 into the CMS;/admin.Orun-Task: PX-5
Generated by Claude Code