Skip to content

feat: the front door — the console URL opens the staff admin (LX3) - #21

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

ruehowl merged 1 commit into
mainfrom
orun/LX-4-front-door-v2

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

LX3 of multi-tenant-saas-2-console (task LX-4). Ported from sourceplane/lumen-payload#25 (PX4), without its root redirect: the CMS root stays the academy's catalogue.

What changes

  • apps/web-console-next becomes a small redirect Worker. Every old console path answers 308 to its place in the same environment's CMS, and only on its own hosts (/ → /admin, /login → /admin/login, /account → /admin/account, /orgs/<slug>/settings/billing → /admin/organization/billing, /auth/callback → /auth/lumen/callback, query kept). Its Next.js UI, tests and the leftovers the LMS's console had of its own (artifact pin, Next/OpenNext configs, web manifest, src/lib, the app-config test) are removed.
  • Product URLs. intent.yaml's stage and prod URLs are the CMS root (the academy). execution.state is untouched.
  • Billing return. billing-worker's POLAR_SUCCESS_URL is the CMS billing page.
  • Parked custom domain. It targets the CMS Worker (workerNamePrefix multi-tenant-saas-2-cms, dependsOn: cms).
  • The admin carries the product's name and mark. Logo and Icon, " — Multi Tenant Saas 2" titles, and the staff sign-in.
  • The console's deploy smoke check asserts 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; the CMS architecture and overview; the parked domain's README; the epic status.

Verified locally

After merge

On stage and prod, read-only:

  • the console URL, its old paths and /auth/callback answer 308 into the CMS;
  • following it lands on the staff sign-in, titled Multi Tenant Saas 2;
  • the CMS root still renders the catalogue.

Generated by Claude Code

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

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 22:17
@ruehowl
ruehowl merged commit e001078 into main Oct 28, 2026
11 checks passed
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