Fix AI Coach typo, fix bulk register UI, and update exam tiers

This commit is contained in:
2026-09-24 21:59:04 +05:30
parent 6ba69a05ea
commit ec4849ccce
13 changed files with 87 additions and 34 deletions

View File

@@ -350,7 +350,7 @@ export default function DashboardLayout({ children }: { children: ReactNode }) {
<div className="flex-1 min-w-0">
<p className="text-sm font-bold leading-none truncate">{user ? cleanDisplayName(user.name).split(" ")[0] : "Loading..."}</p>
<div className="mt-1">
<TierBadge tier={user ? (user.tier === "Al_Coach" ? "AI Coach" : user.tier === "Pro" ? "Pro" : "Free") : "Free"} />
<TierBadge tier={user ? (user.tier === "AI Coach" ? "AI Coach" : user.tier === "Pro" ? "Pro" : "Free") : "Free"} />
</div>
</div>
</div>

View File

@@ -48,7 +48,7 @@ export default function DashboardPage() {
const rank = isNew ? "#--" : `#${userStats?.city_rank || 1} / ${userStats?.city_total || 50}`
const target = user?.target_exam === "NEET" ? "NEET" : "JEE"
const plan = user?.tier === "Al_Coach" ? "AI Coach" : user?.tier || "Free"
const plan = user?.tier === "AI Coach" ? "AI Coach" : user?.tier || "Free"
const name = user?.name || "Student"
const date = new Intl.DateTimeFormat('en-IN', {
dateStyle: 'medium',