fix(auth): show registration-capacity block as a persistent inline notice with recovery - #225
Draft
posthog[bot] wants to merge 1 commit into
Draft
Conversation
…tice The 409 TENANT_REGISTRATION_BLOCKED capacity block was surfaced only as a destructive toast that faded, leaving the form looking submittable with no recovery path. Hold the block as a persistent inline notice next to the domain field and keep the submit button disabled while it holds. - Report the 409 from the live availability check instead of folding it into a silent 'error' status. - Add a `registration_blocked` funnel event so the block emits telemetry. - Prefetch the Sign Up step and route the two hard-coded `/auth` paths through the route registry. - Extract a shared `isTenantRegistrationBlocked` helper for the 409 envelope. Generated-By: PostHog Desktop Task-Id: 3a994a9e-8b29-4da4-b62c-1eafa5f90265
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.
Problem
TENANT_REGISTRATION_BLOCKED(no cluster capacity for a new tenant) showed only a destructive toast that faded, leavingemail,domain, terms, and the enabled submit button untouched — the UI told the user to retry while nothing about the attempt could succeed.'error'status that rendered no message, so the user could not learn registration was closed before pressing Create Account.registration_blockedevent, so the block emitted no telemetry and was only visible in session replay./auth/signup(the primary CTA target) was never prefetched, and two/authpaths were hard-coded instead of using the route registry.Changes
domainStatusMessage,warningvariant) — where every other availability outcome already lives — and keep submit disabled while it holds. Clears on edit so the live check can re-evaluate.useDomainAvailabilitynow reports the 409 honestly (newregistration-blockedstatus + backend message) instead of swallowing it as'error'.pushRegistrationBlocked()/registration_blockedfunnel event so the block finally shows up in the data.routes.auth.signup; swap the two hard-coded/authpaths for the registry entries.isTenantRegistrationBlocked(response)helper so the live check and the submit-time re-check read the same 409 envelope.The capacity condition and the exact "try again in about 10 minutes" wording come from the backend in another repo; the frontend uses a fallback string only when the backend sends none.
Notes
npm run type-checkandnpm run lint:biomepass.Agent context
Created with PostHog Desktop from this inbox report.