Skip to content

Commit ae5f1ca

Browse files
committed
feat: redesign Advanced section UI/UX
- Update header to match other sections with larger title and border - Remove icons from section headers for cleaner look - Improve card styling with softer borders - Redesign Reset Onboarding with button on right side - Simplify button text and make icon smaller - Fix JSX structure issue with proper div nesting
1 parent 4a06489 commit ae5f1ca

File tree

1 file changed

+32
-38
lines changed

1 file changed

+32
-38
lines changed

src/components/sections/AdvancedSection.tsx

Lines changed: 32 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import { relaunch } from "@tauri-apps/plugin-process";
1616
import {
1717
CheckCircle,
1818
FileText,
19-
HelpCircle,
20-
Key,
2119
Keyboard,
2220
Loader2,
2321
Mic,
@@ -108,24 +106,26 @@ export function AdvancedSection() {
108106

109107
return (
110108
<PermissionErrorBoundary>
111-
<div className="h-full flex flex-col p-6">
112-
<div className="flex-shrink-0 mb-4 space-y-3">
113-
<h2 className="text-lg font-semibold">Advanced Settings</h2>
114-
<p className="text-sm text-muted-foreground">
115-
System permissions and app management
116-
</p>
109+
<div className="h-full flex flex-col">
110+
{/* Header */}
111+
<div className="px-6 py-4 border-b border-border/40">
112+
<div className="flex items-center justify-between">
113+
<div>
114+
<h1 className="text-2xl font-semibold">Advanced</h1>
115+
<p className="text-sm text-muted-foreground mt-1">
116+
System permissions and app management
117+
</p>
118+
</div>
119+
</div>
117120
</div>
118121

119-
<ScrollArea className="flex-1 min-h-0">
120-
<div className="space-y-6">
122+
<ScrollArea className="flex-1">
123+
<div className="p-6 space-y-6">
121124
{/* Permissions Section - Only show on macOS */}
122125
{showAccessibility && (
123-
<div className="rounded-lg border bg-card p-4 space-y-4">
124-
<div className="flex items-center justify-between mb-2">
125-
<div className="flex items-center gap-2">
126-
<Key className="h-4 w-4 text-muted-foreground" />
127-
<h3 className="text-sm font-medium">Permissions</h3>
128-
</div>
126+
<div className="space-y-4">
127+
<div className="flex items-center justify-between">
128+
<h2 className="text-base font-semibold">Permissions</h2>
129129
<TooltipProvider>
130130
<Tooltip>
131131
<TooltipTrigger asChild>
@@ -150,8 +150,7 @@ export function AdvancedSection() {
150150
</TooltipProvider>
151151
</div>
152152

153-
154-
<div className="space-y-3">
153+
<div className="rounded-lg border border-border/50 bg-card p-4 space-y-3">
155154
{permissionData.map((perm) => (
156155
<div
157156
key={perm.type}
@@ -207,26 +206,24 @@ export function AdvancedSection() {
207206
)}
208207

209208
{/* Reset Options Section */}
210-
<div className="rounded-lg border bg-card p-4 space-y-4">
211-
<div className="flex items-center gap-2 mb-2">
212-
<RefreshCw className="h-4 w-4 text-muted-foreground" />
213-
<h3 className="text-sm font-medium">Reset Options</h3>
214-
</div>
209+
<div className="space-y-4">
210+
<h2 className="text-base font-semibold">Reset Options</h2>
215211

216-
<div className="space-y-4">
217-
<div>
218-
<p className="text-sm font-medium mb-1">Reset Onboarding</p>
219-
<p className="text-xs text-muted-foreground mb-3">
220-
Re-run the initial setup wizard
221-
</p>
212+
<div className="rounded-lg border border-border/50 bg-card p-4 space-y-4">
213+
<div className="flex items-center justify-between">
214+
<div className="flex-1">
215+
<p className="text-sm font-medium">Reset Onboarding</p>
216+
<p className="text-xs text-muted-foreground mt-1">
217+
Re-run the initial setup wizard
218+
</p>
219+
</div>
222220
<Button
223221
variant="outline"
224222
size="sm"
225223
onClick={handleResetOnboarding}
226-
className="w-full"
227224
>
228-
<RefreshCw className="mr-2 h-4 w-4" />
229-
Reset Onboarding
225+
<RefreshCw className="h-3 w-3" />
226+
Reset
230227
</Button>
231228
</div>
232229

@@ -290,13 +287,10 @@ export function AdvancedSection() {
290287
</div>
291288

292289
{/* Diagnostics Section */}
293-
<div className="rounded-lg border bg-card p-4 space-y-4">
294-
<div className="flex items-center gap-2 mb-2">
295-
<HelpCircle className="h-4 w-4 text-muted-foreground" />
296-
<h3 className="text-sm font-medium">Diagnostics</h3>
297-
</div>
290+
<div className="space-y-4">
291+
<h2 className="text-base font-semibold">Diagnostics</h2>
298292

299-
<div className="space-y-3">
293+
<div className="rounded-lg border border-border/50 bg-card p-4 space-y-3">
300294
<Button
301295
variant="outline"
302296
size="sm"

0 commit comments

Comments
 (0)