Add ExpertiseSelect component for onboarding

Replace database-backed TagInput with a cleaner ExpertiseSelect
component that has predefined ocean conservation expertise areas.
Features a checkbox grid UI that's more user-friendly for onboarding.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-04 00:56:03 +01:00
parent 39f7bc207b
commit 4f0531d2ee
2 changed files with 155 additions and 10 deletions

View File

@@ -22,7 +22,7 @@ import {
SelectValue,
} from '@/components/ui/select'
import { toast } from 'sonner'
import { TagInput } from '@/components/shared/tag-input'
import { ExpertiseSelect } from '@/components/shared/expertise-select'
import {
User,
Phone,
@@ -202,15 +202,11 @@ export default function OnboardingPage() {
</CardDescription>
</CardHeader>
<CardContent className="space-y-4">
<div className="space-y-2">
<Label>Expertise Tags</Label>
<TagInput
value={expertiseTags}
onChange={setExpertiseTags}
placeholder="Select your expertise areas..."
maxTags={10}
/>
</div>
<ExpertiseSelect
value={expertiseTags}
onChange={setExpertiseTags}
maxTags={5}
/>
<div className="flex gap-2">
<Button variant="outline" onClick={goBack} className="flex-1">