refactor(frontend): drop registration flow, now owned by SiteNova - #1872
Conversation
Sign-up has moved to SiteNova, so the RocketAdmin frontend no longer needs to host it. Removes the registration page, its route, and every entry point that led there: - delete components/registration/ and routes/registration.routes.ts; /registration now falls through to PageNotFoundComponent - remove the demo navbar "Create account" CTA and the whole !currentUser header actions block (its only other child was a self-referential "Login" link on /login) - remove logoutAndRedirectToRegistration() from AppComponent - remove signUpUser/signUpWithGoogle/signUpWithGithub from AuthService along with their specs, and the now-unused NewAuthUser model Follow-on cleanup the deletions exposed: the orphaned `environment` import in auth.service.ts, the `.actions .action` rules with no matching template nodes, and a stale doc comment on noAuthGuard. Kept deliberately: RegistrationProvider/externalRegistrationProvider (an existing user's auth provider, rendered in user-settings and company) and the shared Turnstile, UserPassword, EmailValidation and zxcvbn pieces, still used by invite-member, setup, login and password-reset. Note for the backend: POST /saas/user/register, /saas/user/google/register and /saas/user/github/registration/request now have no caller in this app, and the AW-419937947 Google Ads conversion tag plus the `Reg: *` analytics events are gone from here. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (13)
💤 Files with no reviewable changes (11)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe frontend removes the registration route, component, navigation actions, signup service methods, signup tests, and ChangesRegistration removal
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change removes the retired registration flow and its frontend entry points while keeping the remaining authentication flows intact; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files. Full details: Security CheckExplanation PASS — The patch removes the RocketAdmin sign-up UI and its client callers. It introduces no new executable or security-sensitive behavior; the only additions are an updated comment and a retained ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Sign-up has moved to SiteNova, so the RocketAdmin frontend no longer needs to host it. This removes the registration page, its route, and every entry point that led there — 784 lines deleted across 13 files.
Removed
components/registration/androutes/registration.routes.ts—/registrationnow falls through toPageNotFoundComponent!currentUserheader actions block (its only other child was a self-referential "Login" link shown on/login)logoutAndRedirectToRegistration()fromAppComponentsignUpUser()/signUpWithGoogle()/signUpWithGithub()fromAuthService, plus their specs, plus the now-unusedNewAuthUsermodelFollow-on cleanup the deletions exposed: the orphaned
environmentimport inauth.service.ts(its only use was thefbqSignup pixel), the.actions .actionCSS rules with no matching template nodes, and a stale doc comment onnoAuthGuard.Kept deliberately
RegistrationProvider/externalRegistrationProvider— that's an existing user's auth provider, rendered in user-settings and company, not the sign-up flowTurnstileComponent,UserPasswordComponent,EmailValidationDirective,provideZxvbnServiceForPSM— still used by invite-member, setup, login and password-resetHeads-up for the backend
POST /saas/user/register,/saas/user/google/registerand/saas/user/github/registration/requestnow have no caller in this app. TheAW-419937947Google Ads conversion tag and theReg: *PostHog/angulartics events are also gone from here — if SiteNova doesn't fire equivalents, that funnel goes dark.Test plan
yarn build— succeeds; the only warnings are two pre-existing ones unrelated to this change (BreadcrumbsComponentunused inDbTableRowEditComponent, mat-icon projection inEditDatabaseSchemaComponent)yarn test:ci— 267 files / 1615 tests pass🤖 Generated with Claude Code
Summary by CodeRabbit