|
All checks were successful
build-and-release / build (push) Successful in 1m42s
Generalizes the COMPANY-only 3-step wizard into RoleWizard, a component driven entirely by the role's active onboarding_configs schema (fetched via fetchOnboardingSchemaForRole) rather than hardcoded field/step lists. Which roles get the wizard, and when, is now a runtime toggle (enableWizardFlow) set through the new admin schema editor: - ProfilePage shows the wizard while unverified/sent-back-for-fixes, falls back to the existing free-form tabs once approved, and greys out (both client- and server-side) any field the schema marks lockAfterApproval once approved — previously isLocked() only covered the in-review window and unlocked everything again at APPROVED. - dashboard.tsx hides My Profile/My Portfolio from the sidebar pre-approval only for roles that have the wizard enabled (roles not yet rolled out keep direct access, so they aren't left with no way to complete their profile), and shows a checkmark on the Verification nav item once approved. Rolling out to more roles is now purely an admin-panel config change — no further code needed, since RoleWizard has no role-specific branches. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| components | ||
| data | ||
| hooks | ||
| lib | ||
| routes | ||
| stories | ||
| test | ||
| app.css | ||
| app.tsx | ||
| entry-client.tsx | ||
| entry-server.tsx | ||
| global.d.ts | ||
| middleware.ts | ||