Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: reorder privacy settings — Security section first

Louis Beaumont4718785b695b
diff --git a/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx b/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
index 82c88c234..07e6b51c3 100644
--- a/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/privacy-section.tsx
@@ -386,6 +386,36 @@ export function PrivacySection() {
)}
</div>
+ {/* API Authentication */}
+ <div className="space-y-2">
+ <h2 className="text-xs font-semibold text-muted-foreground uppercase tracking-wider px-1">
+ Security
+ </h2>
+ <Card className="border-border bg-card">
+ <CardContent className="px-3 py-2.5">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center space-x-2.5">
+ <Shield className="h-4 w-4 text-muted-foreground shrink-0" />
+ <div>
+ <h3 className="text-sm font-medium text-foreground">
+ require API authentication
+ </h3>
+ <p className="text-xs text-muted-foreground mt-0.5">
+ remote devices must use the same account to access this API. localhost is always allowed.
+ </p>
+ </div>
+ </div>
+ <Switch
+ checked={settings.apiAuth ?? false}
+ onCheckedChange={(checked) => {
+ handleSettingsChange({ apiAuth: checked });
+ }}
+ />
+ </div>
+ </CardContent>
+ </Card>
+ </div>
+
{/* Offline Mode */}
<LockedSetting settingKey="offline_mode">
<div className="space-y-2">
@@ -1070,33 +1100,6 @@ export function PrivacySection() {
</LockedSetting>
</div>
- {/* API Authentication */}
- <div className="space-y-2">
- <Card className="border-border bg-card">
- <CardContent className="px-3 py-2.5">
- <div className="flex items-center justify-between">
- <div className="flex items-center space-x-2.5">
- <Shield className="h-4 w-4 text-muted-foreground shrink-0" />
- <div>
- <h3 className="text-sm font-medium text-foreground">
- require API authentication
- </h3>
- <p className="text-xs text-muted-foreground mt-0.5">
- remote devices must use the same account to access this API. localhost is always allowed.
- </p>
- </div>
- </div>
- <Switch
- checked={settings.apiAuth ?? false}
- onCheckedChange={(checked) => {
- handleSettingsChange({ apiAuth: checked });
- }}
- />
- </div>
- </CardContent>
- </Card>
- </div>
-
{/* Floating apply & restart button */}
{hasUnsavedChanges && (
<div className="sticky bottom-4 flex justify-end pointer-events-none z-50">