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
feat(app): add feedback section to settings and tray menu
Louis Beaumont28f508674c28
diff --git a/screenpipe-app-tauri/app/settings/page.tsx b/screenpipe-app-tauri/app/settings/page.tsxindex 4ddb7d285..1a252736f 100644--- a/screenpipe-app-tauri/app/settings/page.tsx+++ b/screenpipe-app-tauri/app/settings/page.tsx@@ -10,6 +10,7 @@ import {Settings as SettingsIcon,HardDrive,Plug,+ MessageSquare,} from "lucide-react";import { cn } from "@/lib/utils";import { AccountSection } from "@/components/settings/account-section";@@ -19,6 +20,7 @@ import { RecordingSettings } from "@/components/settings/recording-settings";import GeneralSettings from "@/components/settings/general-settings";import { DiskUsageSection } from "@/components/settings/disk-usage-section";import { ConnectionsSection } from "@/components/settings/connections-section";+import { FeedbackSection } from "@/components/settings/feedback-section";import { useRouter } from "next/navigation";import { useQueryState } from "nuqs";import { listen } from "@tauri-apps/api/event";@@ -30,14 +32,15 @@ type SettingsSection =| "recording"| "account"| "disk-usage"- | "connections";+ | "connections"+ | "feedback";function SettingsPageContent() {const router = useRouter();const [activeSection, setActiveSection] = useQueryState("section", {defaultValue: "general" as SettingsSection,parse: (value) => {- if (["general", "ai", "shortcuts", "recording", "account", "disk-usage", "connections"].includes(value)) {+ if (["general", "ai", "shortcuts", "recording", "account", "disk-usage", "connections", "feedback"].includes(value)) {return value as SettingsSection;}return "general" as SettingsSection;@@ -63,6 +66,8 @@ function SettingsPageContent() {return <DiskUsageSection />;case "connections":return <ConnectionsSection />;+ case "feedback":+ return <FeedbackSection />;}};@@ -109,6 +114,12 @@ function SettingsPageContent() {icon: <Plug className="h-4 w-4" />,description: "Connect to AI assistants like Claude",},+ {+ id: "feedback",+ label: "Send Feedback",+ icon: <MessageSquare className="h-4 w-4" />,+ description: "Report issues or share suggestions",+ },];// Listen for navigation events from other windows@@ -116,7 +127,7 @@ function SettingsPageContent() {const unlisten = listen<{ url: string }>("navigate", (event) => {const url = new URL(event.payload.url, window.location.origin);const section = url.searchParams.get("section");- if (section && ["general", "ai", "shortcuts", "recording", "account", "disk-usage", "connections"].includes(section)) {+ if (section && ["general", "ai", "shortcuts", "recording", "account", "disk-usage", "connections", "feedback"].includes(section)) {setActiveSection(section as SettingsSection);}});diff --git a/screenpipe-app-tauri/components/settings/feedback-section.tsx b/screenpipe-app-tauri/components/settings/feedback-section.tsxnew file mode 100644index 000000000..b9281d372--- /dev/null+++ b/screenpipe-app-tauri/components/settings/feedback-section.tsx@@ -0,0 +1,47 @@+"use client";++import React from "react";+import { ShareLogsButton } from "@/components/share-logs-button";+import { MessageSquare } from "lucide-react";++export function FeedbackSection() {+ return (+ <div className="space-y-8">+ <div className="space-y-3">+ <h1 className="text-3xl font-bold tracking-tight text-foreground">+ Send Feedback+ </h1>+ <p className="text-muted-foreground text-lg">+ Help us improve screenpipe by sharing your feedback+ </p>+ </div>++ <div className="space-y-6">+ <div className="p-6 bg-card rounded-xl border border-border">+ <div className="flex items-start gap-4 mb-6">+ <div className="p-3 bg-primary/10 rounded-lg">+ <MessageSquare className="h-6 w-6 text-primary" />+ </div>+ <div>+ <h3 className="text-lg font-semibold mb-1">Share Your Thoughts</h3>+ <p className="text-sm text-muted-foreground">+ Your feedback helps us make screenpipe better. Logs are automatically+ included to help us diagnose any issues you're experiencing.+ </p>+ </div>+ </div>++ <ShareLogsButton showShareLink={true} />+ </div>++ <div className="p-4 bg-muted/50 rounded-lg">+ <p className="text-sm text-muted-foreground">+ <strong>What gets sent:</strong> Your feedback message, app logs, system info+ (OS version, app version), and any screenshots or recordings you choose to attach.+ No personal screen content is sent unless you explicitly attach it.+ </p>+ </div>+ </div>+ </div>+ );+}diff --git a/screenpipe-app-tauri/components/share-logs-button.tsx b/screenpipe-app-tauri/components/share-logs-button.tsxindex 36c4e707a..95b23fae7 100644--- a/screenpipe-app-tauri/components/share-logs-button.tsx+++ b/screenpipe-app-tauri/components/share-logs-button.tsx@@ -189,15 +189,27 @@ export const ShareLogsButton = ({const identifier = settings.user?.id || machineId;const type = settings.user?.id ? "user" : "machine";- // Get all log contents+ // Get log contents - limit to last 100KB per file to avoid OOM+ const MAX_LOG_SIZE = 100 * 1024; // 100KB per fileconst logContents = await Promise.all(- logFiles.map(async (file) => ({- name: file.name,- content: await readTextFile(file.path),- }))+ logFiles.slice(0, 5).map(async (file) => { // Only process 5 most recent logs+ try {+ const content = await readTextFile(file.path);+ // Only keep last MAX_LOG_SIZE characters+ const truncatedContent = content.length > MAX_LOG_SIZE+ ? `... [truncated, showing last ${MAX_LOG_SIZE / 1024}KB] ...\n` + content.slice(-MAX_LOG_SIZE)+ : content;+ return {+ name: file.name,+ content: truncatedContent,+ };+ } catch (e) {+ return { name: file.name, content: `[Error reading file: ${e}]` };+ }+ }));- const consoleLog = localStorage.getItem("console_logs") || "";+ const consoleLog = (localStorage.getItem("console_logs") || "").slice(-50000); // Last 50KB of console logsconst signedRes = await fetch(`${BASE_URL}/api/logs`, {method: "POST",diff --git a/screenpipe-app-tauri/src-tauri/src/tray.rs b/screenpipe-app-tauri/src-tauri/src/tray.rsindex a6ab9b7bb..45d6f3808 100644--- a/screenpipe-app-tauri/src-tauri/src/tray.rs+++ b/screenpipe-app-tauri/src-tauri/src/tray.rs@@ -96,10 +96,11 @@ fn create_dynamic_menu(.item(&MenuItemBuilder::with_id("stop_recording", "stop recording").build(app)?);}- // Settings and quit+ // Settings, feedback and quitmenu_builder = menu_builder.item(&PredefinedMenuItem::separator(app)?).item(&MenuItemBuilder::with_id("settings", "settings").build(app)?)+ .item(&MenuItemBuilder::with_id("feedback", "send feedback").build(app)?).item(&MenuItemBuilder::with_id("onboarding", "onboarding").build(app)?).item(&PredefinedMenuItem::separator(app)?).item(&MenuItemBuilder::with_id("quit", "quit screenpipe").build(app)?);@@ -129,6 +130,9 @@ fn handle_menu_event(app_handle: &AppHandle, event: tauri::menu::MenuEvent) {"settings" => {let _ = ShowRewindWindow::Settings { page: None }.show(app_handle);}+ "feedback" => {+ let _ = ShowRewindWindow::Settings { page: Some("feedback".to_string()) }.show(app_handle);+ }"onboarding" => {// Reset onboarding state so it shows even if previously completedlet _ = OnboardingStore::update(app_handle, |onboarding| {diff --git a/screenpipe-app-tauri/src-tauri/src/window_api.rs b/screenpipe-app-tauri/src-tauri/src/window_api.rsindex 68447fcec..fa14c17ab 100644--- a/screenpipe-app-tauri/src-tauri/src/window_api.rs+++ b/screenpipe-app-tauri/src-tauri/src/window_api.rs@@ -494,8 +494,12 @@ impl ShowRewindWindow {window}- ShowRewindWindow::Settings { page: _ } => {- let builder = self.window_builder(app, "/settings").focused(true);+ ShowRewindWindow::Settings { page } => {+ let url = match page {+ Some(p) => format!("/settings?section={}", p),+ None => "/settings".to_string(),+ };+ let builder = self.window_builder(app, &url).focused(true);#[cfg(target_os = "macos")]let builder = builder.hidden_title(true);let window = builder.build()?;