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

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.tsx
index 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.tsx
index 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 &amp; 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.tsx
index 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 &amp; 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.png
new file mode 100644
index 000000000..51c9731e8
Binary files /dev/null and b/docs/screenshots/settings-navigation-pr.png differ
diff --git a/docs/screenshots/settings/account.png b/docs/screenshots/settings/account.png
new file mode 100644
index 000000000..bc9fbd810
Binary files /dev/null and b/docs/screenshots/settings/account.png differ
diff --git a/docs/screenshots/settings/ai.png b/docs/screenshots/settings/ai.png
new file mode 100644
index 000000000..1ff0f274d
Binary files /dev/null and b/docs/screenshots/settings/ai.png differ
diff --git a/docs/screenshots/settings/display.png b/docs/screenshots/settings/display.png
new file mode 100644
index 000000000..51c9731e8
Binary files /dev/null and b/docs/screenshots/settings/display.png differ
diff --git a/docs/screenshots/settings/general.png b/docs/screenshots/settings/general.png
new file mode 100644
index 000000000..b91ef9d5d
Binary files /dev/null and b/docs/screenshots/settings/general.png differ
diff --git a/docs/screenshots/settings/notifications.png b/docs/screenshots/settings/notifications.png
new file mode 100644
index 000000000..9f4345d18
Binary files /dev/null and b/docs/screenshots/settings/notifications.png differ
diff --git a/docs/screenshots/settings/power-disclosure.png b/docs/screenshots/settings/power-disclosure.png
new file mode 100644
index 000000000..b9ece675b
Binary files /dev/null and b/docs/screenshots/settings/power-disclosure.png differ
diff --git a/docs/screenshots/settings/privacy.png b/docs/screenshots/settings/privacy.png
new file mode 100644
index 000000000..89bebc159
Binary files /dev/null and b/docs/screenshots/settings/privacy.png differ
diff --git a/docs/screenshots/settings/recording.png b/docs/screenshots/settings/recording.png
new file mode 100644
index 000000000..ad7d64f08
Binary files /dev/null and b/docs/screenshots/settings/recording.png differ
diff --git a/docs/screenshots/settings/referral.png b/docs/screenshots/settings/referral.png
new file mode 100644
index 000000000..10535b443
Binary files /dev/null and b/docs/screenshots/settings/referral.png differ
diff --git a/docs/screenshots/settings/speakers.png b/docs/screenshots/settings/speakers.png
new file mode 100644
index 000000000..0315f9434
Binary files /dev/null and b/docs/screenshots/settings/speakers.png differ
diff --git a/docs/screenshots/settings/storage.png b/docs/screenshots/settings/storage.png
new file mode 100644
index 000000000..85fc995a0
Binary files /dev/null and b/docs/screenshots/settings/storage.png differ
diff --git a/docs/screenshots/settings/team.png b/docs/screenshots/settings/team.png
new file mode 100644
index 000000000..a5acbfccf
Binary files /dev/null and b/docs/screenshots/settings/team.png differ
diff --git a/docs/screenshots/settings/usage.png b/docs/screenshots/settings/usage.png
new file mode 100644
index 000000000..21f30e66e
Binary files /dev/null and b/docs/screenshots/settings/usage.png differ