Skip to content

Commit 0651131

Browse files
author
apex-ai-net
committed
feat(ui): complete Phase 4.3 - profile edit form save buttons
- Student profile: wrap Save Changes button with blue PixelCard (speed=16, gap=10) - Preceptor profile: wrap Update Profile button with pink PixelCard (speed=16, gap=10) - Emphasizes primary action buttons without overwhelming the form - Pink variant maintains preceptor brand identity vs blue for students - Professional parameters appropriate for healthcare forms Part of React Bits UI enhancement - Phase 4 Forms & Intake Flows COMPLETE
1 parent 429848a commit 0651131

File tree

2 files changed

+28
-22
lines changed

2 files changed

+28
-22
lines changed

app/dashboard/preceptor/profile/page.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import { Badge } from '@/components/ui/badge'
1010
import { Separator } from '@/components/ui/separator'
1111
import { useQuery, useMutation, useAction, usePaginatedQuery } from '@/lib/supabase-hooks'
1212
import {
13-
User,
14-
// Mail,
15-
// Phone,
13+
User,
14+
// Mail,
15+
// Phone,
1616
MapPin,
1717
Stethoscope,
1818
Building,
@@ -24,6 +24,7 @@ import {
2424
AlertCircle
2525
} from 'lucide-react'
2626
import Link from 'next/link'
27+
import PixelCard from '@/components/react-bits/pixel-card'
2728

2829
interface PreceptorProfile {
2930
personalInfo: {
@@ -332,12 +333,14 @@ export default function PreceptorProfile() {
332333
<CardTitle className="text-base">Account</CardTitle>
333334
</CardHeader>
334335
<CardContent className="space-y-3">
335-
<Button variant="outline" size="sm" className="w-full justify-start" asChild>
336-
<Link href="/preceptor-intake">
337-
<Edit className="h-4 w-4 mr-2" />
338-
Update Profile
339-
</Link>
340-
</Button>
336+
<PixelCard variant="pink" speed={16} gap={10} noFocus={false}>
337+
<Button variant="outline" size="sm" className="w-full justify-start" asChild>
338+
<Link href="/preceptor-intake">
339+
<Edit className="h-4 w-4 mr-2" />
340+
Update Profile
341+
</Link>
342+
</Button>
343+
</PixelCard>
341344
<Button variant="outline" size="sm" className="w-full justify-start" asChild>
342345
<Link href="/dashboard/preceptor/schedule">
343346
<Calendar className="h-4 w-4 mr-2" />

app/dashboard/student/profile/page.tsx

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ import {
3030
SelectTrigger,
3131
SelectValue
3232
} from '@/components/ui/select'
33-
import {
34-
User,
35-
GraduationCap,
33+
import {
34+
User,
35+
GraduationCap,
3636
Edit2,
3737
Save,
3838
Camera,
3939
Loader2
4040
} from 'lucide-react'
4141
import { toast } from 'sonner'
42+
import PixelCard from '@/components/react-bits/pixel-card'
4243

4344
const DEGREE_TRACK_OPTIONS = ['FNP', 'PNP', 'PMHNP', 'AGNP', 'ACNP', 'WHNP', 'NNP', 'DNP'] as const
4445
const PROGRAM_FORMAT_OPTIONS = ['online', 'in-person', 'hybrid'] as const
@@ -578,16 +579,18 @@ function StudentProfileContent() {
578579
<Button variant="ghost" onClick={() => !settingsSaving && setActiveSettingsModal(null)} disabled={settingsSaving}>
579580
Cancel
580581
</Button>
581-
<Button onClick={handleSettingsSave} disabled={settingsSaving}>
582-
{settingsSaving ? (
583-
<>
584-
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
585-
Saving
586-
</>
587-
) : (
588-
'Save changes'
589-
)}
590-
</Button>
582+
<PixelCard variant="blue" speed={16} gap={10} noFocus={false}>
583+
<Button onClick={handleSettingsSave} disabled={settingsSaving}>
584+
{settingsSaving ? (
585+
<>
586+
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
587+
Saving
588+
</>
589+
) : (
590+
'Save changes'
591+
)}
592+
</Button>
593+
</PixelCard>
591594
</DialogFooter>
592595
</DialogContent>
593596
</Dialog>

0 commit comments

Comments
 (0)