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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
Reorganize settings navigation around user intent (#5098)
Louis Beaumont6349ef50fde2
diff --git a/apps/screenpipe-app-tauri/app/(main)/settings/page.tsx b/apps/screenpipe-app-tauri/app/(main)/settings/page.tsxindex fa49fb714..4ae32d8c0 100644--- a/apps/screenpipe-app-tauri/app/(main)/settings/page.tsx+++ b/apps/screenpipe-app-tauri/app/(main)/settings/page.tsx@@ -79,6 +79,7 @@ import { useEnterprisePolicy } from "@/lib/hooks/use-enterprise-policy";import { useSettings } from "@/lib/hooks/use-settings";import { commands } from "@/lib/utils/tauri";import { toast } from "@/components/ui/use-toast";+import posthog from "posthog-js";type SettingsSection =| "account"@@ -232,22 +233,40 @@ function SettingsContent() {const navGroups = [{- label: "App",+ label: "Capture & AI",items: [- { id: "display" as const, label: "Display", icon: <Layout className="h-4 w-4" /> },- { id: "general" as const, label: "General", icon: <SettingsIcon className="h-4 w-4" /> },- { id: "ai" as const, label: "AI models", icon: <Brain className="h-4 w-4" /> },{ id: "recording" as const, label: "Recording", icon: <Video className="h-4 w-4" /> },- { id: "shortcuts" as const, label: "Shortcuts", icon: <Keyboard className="h-4 w-4" /> },- { id: "notifications" as const, label: "Notifications", icon: <Bell className="h-4 w-4" /> },+ { id: "ai" as const, label: "AI", icon: <Brain className="h-4 w-4" /> },].filter((s) => !isSectionHidden(s.id)),},{- label: "Data & Privacy",+ label: "Privacy & security",items: [- { id: "usage" as const, label: "Usage", icon: <BarChart3 className="h-4 w-4" /> },{ id: "privacy" as const, label: "Privacy", icon: <Shield className="h-4 w-4" /> },+ ].filter((s) => !isSectionHidden(s.id)),+ },+ {+ label: "Data",+ items: [{ id: "storage" as const, label: "Storage", icon: <HardDrive className="h-4 w-4" /> },+ { id: "usage" as const, label: "Usage", icon: <BarChart3 className="h-4 w-4" /> },+ ].filter((s) => !isSectionHidden(s.id)),+ },+ {+ label: "App",+ items: [+ // Keep the legacy `general` section id so existing deep links and+ // automated tests continue to work. The user-facing label is the+ // familiar Apple-style category name.+ { id: "general" as const, label: "General", icon: <SettingsIcon className="h-4 w-4" /> },+ { id: "display" as const, label: "Appearance", icon: <Layout className="h-4 w-4" /> },+ { id: "notifications" as const, label: "Notifications", icon: <Bell className="h-4 w-4" /> },+ { id: "shortcuts" as const, label: "Shortcuts", icon: <Keyboard className="h-4 w-4" /> },+ ].filter((s) => !isSectionHidden(s.id)),+ },+ {+ label: "Audio",+ items: [{ id: "speakers" as const, label: "Speakers", icon: <Mic className="h-4 w-4" /> },].filter((s) => !isSectionHidden(s.id)),},@@ -284,10 +303,27 @@ function SettingsContent() {);const results = searchSettingsNav(searchQuery, flatItems, ALL_SETTINGS_FIELDS);+ useEffect(() => {+ posthog.capture("settings_viewed", { initial_section: section });+ // The initial page view should be sent once per settings mount.+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, []);++ useEffect(() => {+ posthog.capture("settings_section_viewed", { section });+ if (section === "general") {+ posthog.capture("settings_general_opened");+ }+ }, [section]);+// Reset highlight to top whenever the query changes.useEffect(() => { setActiveIndex(0); }, [searchQuery]);const pickResult = (result: { item: { id: string }; matchedFieldLabel?: string }) => {+ posthog.capture("settings_search_result_selected", {+ section: result.item.id,+ matched_field: Boolean(result.matchedFieldLabel),+ });setSection(result.item.id as SettingsSection);setSearchQuery("");searchInputRef.current?.blur();diff --git a/apps/screenpipe-app-tauri/components/settings/battery-saver-section.tsx b/apps/screenpipe-app-tauri/components/settings/battery-saver-section.tsxindex f01c1b785..c4fb957f2 100644--- a/apps/screenpipe-app-tauri/components/settings/battery-saver-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/battery-saver-section.tsx@@ -17,7 +17,7 @@ import { PowerModePreview } from "./setting-previews";/** Settings search index for this section. Co-located with the component so adding a field here means updating one file. See `SettingsField` in `./settings-search` for the schema. */export const searchIndex: SettingsField[] = [- { label: "Power mode", keywords: ["battery", "performance", "saver"] },+ { label: "Power & battery", keywords: ["power", "battery", "performance", "saver"] },{ label: "Keep computer awake", keywords: ["sleep", "awake", "power"] },];@@ -180,7 +180,7 @@ export function BatterySaverSection() {<div className="space-y-4"><div className="flex items-center justify-between"><div>- <h3 className="text-sm font-medium text-foreground">power mode</h3>+ <h3 className="text-sm font-medium text-foreground">power & battery</h3><p className="text-xs text-muted-foreground mt-0.5">controls capture frequency, quality, and transcription to save battery</p>diff --git a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsxindex d7e602b91..639a3953d 100644--- a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx+++ b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx@@ -2660,13 +2660,6 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre)}</div>- {/* Battery Saver / Power Mode */}- <Card className="border-border bg-card">- <CardContent className="px-3 py-3">- <BatterySaverSection />- </CardContent>- </Card>-{/* Audio */}<LockedSetting settingKey="audio_recording"><div className="space-y-2 pt-2">@@ -4004,6 +3997,22 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre</Card></div>+ {/* Power and battery are important but infrequent decisions. Keep them+ in Recording for discoverability/search, but defer the full control+ surface until the user explicitly opens it. */}+ <details className="border border-border bg-card rounded">+ <summary className="flex cursor-pointer list-none items-center gap-2 px-3 py-2.5 [&::-webkit-details-marker]:hidden">+ <Zap className="h-4 w-4 shrink-0 text-muted-foreground" />+ <div>+ <h2 className="text-sm font-medium text-foreground">Power & battery</h2>+ <p className="text-xs text-muted-foreground">Battery-aware capture and keep-awake behavior</p>+ </div>+ </summary>+ <div className="border-t border-border px-3 py-3">+ <BatterySaverSection />+ </div>+ </details>+{/* Voice Training Dialog */}<Dialog open={voiceTraining.dialogOpen} onOpenChange={(open) => {if (!open) {diff --git a/docs/screenshots/settings-navigation-pr.png b/docs/screenshots/settings-navigation-pr.pngnew file mode 100644index 000000000..51c9731e8Binary files /dev/null and b/docs/screenshots/settings-navigation-pr.png differdiff --git a/docs/screenshots/settings/account.png b/docs/screenshots/settings/account.pngnew file mode 100644index 000000000..bc9fbd810Binary files /dev/null and b/docs/screenshots/settings/account.png differdiff --git a/docs/screenshots/settings/ai.png b/docs/screenshots/settings/ai.pngnew file mode 100644index 000000000..1ff0f274dBinary files /dev/null and b/docs/screenshots/settings/ai.png differdiff --git a/docs/screenshots/settings/display.png b/docs/screenshots/settings/display.pngnew file mode 100644index 000000000..51c9731e8Binary files /dev/null and b/docs/screenshots/settings/display.png differdiff --git a/docs/screenshots/settings/general.png b/docs/screenshots/settings/general.pngnew file mode 100644index 000000000..b91ef9d5dBinary files /dev/null and b/docs/screenshots/settings/general.png differdiff --git a/docs/screenshots/settings/notifications.png b/docs/screenshots/settings/notifications.pngnew file mode 100644index 000000000..9f4345d18Binary files /dev/null and b/docs/screenshots/settings/notifications.png differdiff --git a/docs/screenshots/settings/power-disclosure.png b/docs/screenshots/settings/power-disclosure.pngnew file mode 100644index 000000000..b9ece675bBinary files /dev/null and b/docs/screenshots/settings/power-disclosure.png differdiff --git a/docs/screenshots/settings/privacy.png b/docs/screenshots/settings/privacy.pngnew file mode 100644index 000000000..89bebc159Binary files /dev/null and b/docs/screenshots/settings/privacy.png differdiff --git a/docs/screenshots/settings/recording.png b/docs/screenshots/settings/recording.pngnew file mode 100644index 000000000..ad7d64f08Binary files /dev/null and b/docs/screenshots/settings/recording.png differdiff --git a/docs/screenshots/settings/referral.png b/docs/screenshots/settings/referral.pngnew file mode 100644index 000000000..10535b443Binary files /dev/null and b/docs/screenshots/settings/referral.png differdiff --git a/docs/screenshots/settings/speakers.png b/docs/screenshots/settings/speakers.pngnew file mode 100644index 000000000..0315f9434Binary files /dev/null and b/docs/screenshots/settings/speakers.png differdiff --git a/docs/screenshots/settings/storage.png b/docs/screenshots/settings/storage.pngnew file mode 100644index 000000000..85fc995a0Binary files /dev/null and b/docs/screenshots/settings/storage.png differdiff --git a/docs/screenshots/settings/team.png b/docs/screenshots/settings/team.pngnew file mode 100644index 000000000..a5acbfccfBinary files /dev/null and b/docs/screenshots/settings/team.png differdiff --git a/docs/screenshots/settings/usage.png b/docs/screenshots/settings/usage.pngnew file mode 100644index 000000000..21f30e66eBinary files /dev/null and b/docs/screenshots/settings/usage.png differ