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: remove focus score + words from modal, replace with apps tracked + meetings. Force refresh on load.

Louis Beaumontb3981f61dc92
diff --git a/apps/screenpipe-app-tauri/components/home-stats-badge.tsx b/apps/screenpipe-app-tauri/components/home-stats-badge.tsx
index 5aeed70e3..a053fb89a 100644
--- a/apps/screenpipe-app-tauri/components/home-stats-badge.tsx
+++ b/apps/screenpipe-app-tauri/components/home-stats-badge.tsx
@@ -43,7 +43,7 @@ export function HomeStatsBadge() {
const [showModal, setShowModal] = useState(false);
useEffect(() => {
- fetch("http://localhost:3030/stats")
+ fetch("http://localhost:3030/stats?force_refresh=true")
.then((r) => r.json())
.then(setStats)
.catch(() => {});
@@ -107,12 +107,12 @@ export function HomeStatsBadge() {
<div className="text-[10px] text-muted-foreground uppercase tracking-wide">day streak 🔥</div>
</div>
<div className="text-center">
- <div className="text-2xl font-bold">{formatNum(stats.all_time.total_words)}</div>
- <div className="text-[10px] text-muted-foreground uppercase tracking-wide">words spoken</div>
+ <div className="text-2xl font-bold">{stats.all_time.total_apps}</div>
+ <div className="text-[10px] text-muted-foreground uppercase tracking-wide">apps tracked</div>
</div>
<div className="text-center">
- <div className="text-2xl font-bold">{stats.week.focus_score}%</div>
- <div className="text-[10px] text-muted-foreground uppercase tracking-wide">focus score</div>
+ <div className="text-2xl font-bold">{stats.all_time.total_meetings}</div>
+ <div className="text-[10px] text-muted-foreground uppercase tracking-wide">meetings</div>
</div>
</div>