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

feat(onboarding): add animated timeline + AI chat demo

Louis Beaumont53cd63199af5
diff --git a/screenpipe-app-tauri/bun.lock b/screenpipe-app-tauri/bun.lock
index 8d179c38a..584342c18 100644
--- a/screenpipe-app-tauri/bun.lock
+++ b/screenpipe-app-tauri/bun.lock
@@ -54,6 +54,7 @@
"js-levenshtein": "^1.1.6",
"localforage": "^1.10.0",
"lodash": "^4.17.21",
+ "lottie-react": "^2.4.1",
"lucide-react": "^0.414.0",
"next": "15.1.4",
"next-themes": "^0.4.6",
@@ -1461,6 +1462,10 @@
"loose-envify": ["[email protected]", "", { "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, "bin": "cli.js" }, ""],
+ "lottie-react": ["[email protected]", "", { "dependencies": { "lottie-web": "^5.10.2" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, "sha512-LQrH7jlkigIIv++wIyrOYFLHSKQpEY4zehPicL9bQsrt1rnoKRYCYgpCUe5maqylNtacy58/sQDZTkwMcTRxZw=="],
+
+ "lottie-web": ["[email protected]", "", {}, "sha512-+gfBXl6sxXMPe8tKQm7qzLnUy5DUPJPKIyRHwtpCpyUEYjHYRJC/5gjUvdkuO2c3JllrPtHXH5UJJK8LRYl5yQ=="],
+
"lowercase-keys": ["[email protected]", "", {}, "sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ=="],
"lowlight": ["[email protected]", "", { "dependencies": { "fault": "^1.0.0", "highlight.js": "~10.7.0" } }, ""],
diff --git a/screenpipe-app-tauri/components/onboarding/status.tsx b/screenpipe-app-tauri/components/onboarding/status.tsx
index e75823905..f26e49fec 100644
--- a/screenpipe-app-tauri/components/onboarding/status.tsx
+++ b/screenpipe-app-tauri/components/onboarding/status.tsx
@@ -1,5 +1,5 @@
import React, { useState, useEffect, useRef } from "react";
-import { Check, Monitor, Mic, AlertTriangle, MessageSquare } from "lucide-react";
+import { Check, Monitor, Mic, AlertTriangle } from "lucide-react";
import { Button } from "../ui/button";
import { invoke } from "@tauri-apps/api/core";
import posthog from "posthog-js";
@@ -10,6 +10,7 @@ import { useSettings, DEFAULT_PROMPT } from "@/lib/hooks/use-settings";
import { open as openPath } from "@tauri-apps/plugin-shell";
import { homeDir, join } from "@tauri-apps/api/path";
import { scheduleFirstRunNotification } from "@/lib/notifications";
+import { TimelineAIDemo } from "./timeline-ai-demo";
// Format shortcut for display (platform-aware)
function formatShortcut(shortcut: string, isMac: boolean): string {
@@ -329,33 +330,13 @@ const OnboardingStatus: React.FC<OnboardingStatusProps> = ({
</p>
</div>
- {/* Timeline + AI Chat animation placeholder */}
+ {/* Timeline + AI Chat animation */}
<motion.div
- className="bg-muted/30 border border-border rounded-lg p-4 max-w-sm"
initial={{ opacity: 0, y: 10 }}
animate={{ opacity: 1, y: 0 }}
transition={{ delay: 0.3 }}
>
- <div className="flex items-center space-x-2 mb-3">
- <MessageSquare className="w-4 h-4 text-primary" />
- <span className="font-mono text-xs font-medium text-foreground">
- then chat with your history
- </span>
- </div>
- {/* TODO: Replace with Lottie animation showing timeline selection + AI chat */}
- <div className="bg-background/50 rounded border border-border p-3 space-y-2">
- <div className="flex items-center space-x-2">
- <div className="h-2 bg-muted-foreground/20 rounded flex-1">
- <div className="h-2 bg-primary/50 rounded w-1/4 ml-[30%]" />
- </div>
- <span className="font-mono text-[10px] text-muted-foreground">select</span>
- </div>
- <p className="font-mono text-[10px] text-muted-foreground text-center">
- press{" "}
- <span className="font-semibold text-foreground">⌘ L</span>{" "}
- to ask AI about any moment
- </p>
- </div>
+ <TimelineAIDemo />
</motion.div>
<div className="flex items-center space-x-4 text-xs font-mono text-muted-foreground">
diff --git a/screenpipe-app-tauri/components/onboarding/timeline-ai-demo.tsx b/screenpipe-app-tauri/components/onboarding/timeline-ai-demo.tsx
new file mode 100644
index 000000000..55a34ac01
--- /dev/null
+++ b/screenpipe-app-tauri/components/onboarding/timeline-ai-demo.tsx
@@ -0,0 +1,195 @@
+import React from "react";
+import { motion } from "framer-motion";
+import { MessageSquare, Sparkles } from "lucide-react";
+
+/**
+ * Animated demo showing:
+ * 1. Timeline with activity bars
+ * 2. Selection being made (drag effect)
+ * 3. AI chat appearing
+ * 4. Response typing in
+ *
+ * Loops every 6 seconds
+ */
+export const TimelineAIDemo: React.FC = () => {
+ return (
+ <div className="bg-muted/30 border border-border rounded-lg p-4 max-w-sm overflow-hidden">
+ <div className="flex items-center space-x-2 mb-3">
+ <MessageSquare className="w-4 h-4 text-primary" />
+ <span className="font-mono text-xs font-medium text-foreground">
+ then chat with your history
+ </span>
+ </div>
+
+ <div className="bg-background rounded border border-border p-3 space-y-3">
+ {/* Timeline visualization */}
+ <div className="space-y-1.5">
+ <div className="flex items-center justify-between">
+ <span className="font-mono text-[9px] text-muted-foreground">timeline</span>
+ <span className="font-mono text-[9px] text-muted-foreground">2:00pm</span>
+ </div>
+
+ {/* Activity bars */}
+ <div className="relative h-6 bg-muted/50 rounded overflow-hidden">
+ {/* Static activity indicators */}
+ <div className="absolute inset-y-1 left-[5%] w-[15%] bg-blue-500/30 rounded-sm" />
+ <div className="absolute inset-y-1 left-[25%] w-[20%] bg-green-500/30 rounded-sm" />
+ <div className="absolute inset-y-1 left-[50%] w-[10%] bg-purple-500/30 rounded-sm" />
+ <div className="absolute inset-y-1 left-[65%] w-[25%] bg-orange-500/30 rounded-sm" />
+
+ {/* Animated selection highlight */}
+ <motion.div
+ className="absolute inset-y-0 bg-primary/20 border-x-2 border-primary"
+ initial={{ left: "20%", width: "0%" }}
+ animate={{
+ left: ["20%", "20%", "20%", "20%"],
+ width: ["0%", "35%", "35%", "35%"],
+ opacity: [0, 1, 1, 0],
+ }}
+ transition={{
+ duration: 6,
+ repeat: Infinity,
+ times: [0, 0.2, 0.7, 1],
+ ease: "easeInOut",
+ }}
+ />
+
+ {/* Selection handles */}
+ <motion.div
+ className="absolute top-1/2 -translate-y-1/2 w-1 h-4 bg-primary rounded-full"
+ initial={{ left: "20%", opacity: 0 }}
+ animate={{
+ left: ["20%", "20%", "20%", "20%"],
+ opacity: [0, 1, 1, 0],
+ }}
+ transition={{
+ duration: 6,
+ repeat: Infinity,
+ times: [0, 0.2, 0.7, 1],
+ }}
+ />
+ <motion.div
+ className="absolute top-1/2 -translate-y-1/2 w-1 h-4 bg-primary rounded-full"
+ initial={{ left: "20%", opacity: 0 }}
+ animate={{
+ left: ["20%", "55%", "55%", "55%"],
+ opacity: [0, 1, 1, 0],
+ }}
+ transition={{
+ duration: 6,
+ repeat: Infinity,
+ times: [0, 0.2, 0.7, 1],
+ }}
+ />
+ </div>
+ </div>
+
+ {/* Keyboard shortcut hint */}
+ <motion.div
+ className="flex items-center justify-center space-x-1"
+ initial={{ opacity: 0 }}
+ animate={{
+ opacity: [0, 0, 1, 1, 0],
+ }}
+ transition={{
+ duration: 6,
+ repeat: Infinity,
+ times: [0, 0.15, 0.25, 0.35, 0.45],
+ }}
+ >
+ <span className="font-mono text-[10px] text-muted-foreground">press</span>
+ <kbd className="px-1.5 py-0.5 bg-muted border border-border rounded text-[10px] font-mono font-semibold">
+ ⌘ L
+ </kbd>
+ </motion.div>
+
+ {/* AI Chat bubble */}
+ <motion.div
+ className="bg-muted/50 rounded-lg p-2 space-y-2"
+ initial={{ opacity: 0, y: 10, height: 0 }}
+ animate={{
+ opacity: [0, 0, 0, 1, 1, 0],
+ y: [10, 10, 10, 0, 0, 0],
+ height: ["0px", "0px", "0px", "auto", "auto", "auto"],
+ }}
+ transition={{
+ duration: 6,
+ repeat: Infinity,
+ times: [0, 0.3, 0.35, 0.45, 0.9, 1],
+ }}
+ >
+ {/* User question */}
+ <motion.div
+ className="flex items-start space-x-2"
+ initial={{ opacity: 0 }}
+ animate={{
+ opacity: [0, 0, 0, 0, 1, 1, 0],
+ }}
+ transition={{
+ duration: 6,
+ repeat: Infinity,
+ times: [0, 0.35, 0.4, 0.45, 0.5, 0.9, 1],
+ }}
+ >
+ <div className="w-4 h-4 rounded-full bg-primary/20 flex items-center justify-center flex-shrink-0">
+ <span className="text-[8px]">👤</span>
+ </div>
+ <p className="font-mono text-[10px] text-foreground">
+ what was discussed here?
+ </p>
+ </motion.div>
+
+ {/* AI response */}
+ <motion.div
+ className="flex items-start space-x-2"
+ initial={{ opacity: 0 }}
+ animate={{
+ opacity: [0, 0, 0, 0, 0, 1, 1, 0],
+ }}
+ transition={{
+ duration: 6,
+ repeat: Infinity,
+ times: [0, 0.45, 0.5, 0.55, 0.6, 0.65, 0.9, 1],
+ }}
+ >
+ <div className="w-4 h-4 rounded-full bg-primary flex items-center justify-center flex-shrink-0">
+ <Sparkles className="w-2.5 h-2.5 text-primary-foreground" />
+ </div>
+ <div className="space-y-1">
+ <motion.p
+ className="font-mono text-[10px] text-muted-foreground"
+ initial={{ opacity: 0 }}
+ animate={{
+ opacity: [0, 0, 0, 0, 0, 0, 1, 1, 0],
+ }}
+ transition={{
+ duration: 6,
+ repeat: Infinity,
+ times: [0, 0.5, 0.55, 0.6, 0.65, 0.68, 0.72, 0.9, 1],
+ }}
+ >
+ In this meeting you discussed
+ </motion.p>
+ <motion.p
+ className="font-mono text-[10px] text-foreground"
+ initial={{ opacity: 0 }}
+ animate={{
+ opacity: [0, 0, 0, 0, 0, 0, 0, 1, 1, 0],
+ }}
+ transition={{
+ duration: 6,
+ repeat: Infinity,
+ times: [0, 0.55, 0.6, 0.65, 0.7, 0.73, 0.76, 0.8, 0.9, 1],
+ }}
+ >
+ Q1 roadmap priorities...
+ </motion.p>
+ </div>
+ </motion.div>
+ </motion.div>
+ </div>
+ </div>
+ );
+};
+
+export default TimelineAIDemo;
diff --git a/screenpipe-app-tauri/package.json b/screenpipe-app-tauri/package.json
index ced5fdb6c..51f99bfef 100644
--- a/screenpipe-app-tauri/package.json
+++ b/screenpipe-app-tauri/package.json
@@ -62,6 +62,7 @@
"js-levenshtein": "^1.1.6",
"localforage": "^1.10.0",
"lodash": "^4.17.21",
+ "lottie-react": "^2.4.1",
"lucide-react": "^0.414.0",
"next": "15.1.4",
"next-themes": "^0.4.6",
@@ -69,8 +70,8 @@
"openai": "^4.100.0",
"posthog-js": "^1.154.6",
"react": "^18",
- "react-dom": "^18",
"react-day-picker": "8.10.1",
+ "react-dom": "^18",
"react-markdown": "^9.0.1",
"react-resizable-panels": "^2.1.6",
"react-syntax-highlighter": "^15.5.0",