From 9519337030d01992fa2b8e130233f616f2a96fbc Mon Sep 17 00:00:00 2001
From: Ashwin Kumar Sivakumar
Date: Fri, 3 Jul 2026 17:40:14 +0530
Subject: [PATCH] fix(signup): show role badge for professional/customer
intents, fix role assignment
- Hide role selector tabs when intent is provided via URL
- Show role badge for professional/customer roles
- Add profession field to API call for backend role assignment
- Fixes issue where roles weren't properly assigned after signup
---
src/routes/signup.tsx | 134 ++++++++++++++++++++++++------------------
1 file changed, 76 insertions(+), 58 deletions(-)
diff --git a/src/routes/signup.tsx b/src/routes/signup.tsx
index befce3c..5a18224 100644
--- a/src/routes/signup.tsx
+++ b/src/routes/signup.tsx
@@ -230,6 +230,7 @@ export default function SignupRoute() {
phone: "",
intent: role(),
role_key: selectedProfessionalRole() || undefined,
+ profession: selectedProfessionalRole() || undefined,
...(role() === "company" ? { company_name: companyName().trim() } : {}),
...(isTestMode ? { test_mode: true } : {}),
}),
@@ -492,64 +493,81 @@ export default function SignupRoute() {
Sign up first, then go directly to dashboard after email verification.
- {/* Role Selector */}
-
-
-
-
+ {/* Role Selector - Only show tabs for job_seeker and company when no intent is provided */}
+
+
+
+
+
+
+
+ {/* Show role badge for professional/customer when coming via direct link */}
+
+
+
+ Registering as: {role() === "professional" ? "Professional" : role() === "customer" ? "Customer" : role()}
+
+
+