Repository navigation
feat(cms): the Lumen account and billing pages in the Payload admin (LX2) - #20
Merged
Merged
Conversation
…LX2) The old console's account and billing pages move into the Payload admin, as views behind the staff Lumen sign-in, for every staff role: Profile (/admin/account), Security activity (/admin/account/security), Organization (/admin/organization), Notifications (/admin/organization/notifications) and Billing & plan (/admin/organization/billing), under an Account group in the nav. Ported from sourceplane/lumen-payload#23 and #24 (PX2, PX3). - each reads and writes the signed-in Lumen account through api-edge with the session cookie's bearer; forms post to same-origin /lumen/* routes and land back on their page with a status; no client-side token - Upgrade starts the provider's checkout, which returns to the billing page, which reconciles with one same-origin form post; switch or cancel behind a confirm step; the customer portal for a paid subscription; where no provider is configured (stage) the page says so - session lookups are shared per token, and a session api-edge confirmed in the last 5 minutes survives api-edge being unable to answer, until it expires; the admin cannot be framed by another origin - identity-worker: security events take the user's UUID, not the public usr_ id, which made the endpoint answer 503 for everyone - api-edge: a bearer's own session, profile and security-events reads get an `account` rate family (60/min); sign-in stays on `auth` (10/min) - docs: runbook, architecture, overview, operations guide; epic status Orun-Task: LX-3 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013JuHbkZCjDrGgHdzCrCRqG
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.
LX2 of
multi-tenant-saas-2-console(task LX-3, milestone LX2). It ports sourceplane/lumen-payload#23 and #24 (PX2 and PX3) together.The old console's account and billing pages move into the Payload admin, behind the staff Lumen sign-in from LX1 (#19), under an Account nav group. Every staff role (admin, editor, instructor) can open them; a pending account can't.
/admin/account(display name, also written to theusersrow)/admin/account/security/admin/organization/admin/organization/notifications/admin/organization/billingThese pages show the staff member's own Lumen account and organization, not an academy's.
Also in this change
/lumen/*routes and land back on their page with a status. No token reaches client code.usr_id. Without this, the endpoint answers 503 for everyone; the same fix is in sourceplane/orun-cloud#2114.accountrate family (60/min). Sign-in stays at 10/min.Verification
/.usersrow, security activity, organization, notifications off and back on, cross-origin and pending posts refused, signed-out redirect);tests/cms214,tests/api-edge411,tests/identity-worker181.apps/cms,tests/cmsandapps/identity-worker.Orun-Task: LX-3
Generated by Claude Code