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

Use quiet workflow catalog header with compact actions

louis4a1dc07df937
diff --git a/apps/screenpipe-app-tauri/components/workflows/integrated-workflows.test.tsx b/apps/screenpipe-app-tauri/components/workflows/integrated-workflows.test.tsx
index 5d127a905..c64c58597 100644
--- a/apps/screenpipe-app-tauri/components/workflows/integrated-workflows.test.tsx
+++ b/apps/screenpipe-app-tauri/components/workflows/integrated-workflows.test.tsx
@@ -91,3 +91,22 @@ it("hands off workflow identity without embedding captured content", async () =>
expect(task.previewPrompt).toContain("confirm before sending");
expect(task.previewPrompt).not.toContain(workflow.stages[0].evidence[0].detail);
});
+
+
+it("opens quiet header filters and restores the catalog after clearing them", async () => {
+ window.history.replaceState(null, "", "/home?mode=workflows");
+ render(<IntegratedWorkflows active onModeChange={vi.fn()} recordingStatus={null} />);
+ const filters = await screen.findByRole("button", { name: "Filters", exact: true });
+ expect(filters).toHaveAttribute("title", "Filters");
+ expect(screen.getByRole("button", { name: "Update now" })).toHaveAttribute("title", "Update now");
+ fireEvent.click(filters);
+ const panel = screen.getByRole("region", { name: "Workflow filters" });
+ expect(filters).toHaveAttribute("aria-controls", panel.id);
+ fireEvent.change(within(panel).getByLabelText("Evidence quality"), { target: { value: "strong" } });
+ expect(screen.getByRole("button", { name: "Filters (1)" })).toHaveAttribute("aria-expanded", "true");
+ fireEvent.click(screen.getByRole("button", { name: "Clear filters" }));
+ expect(within(panel).getByLabelText("Evidence quality")).toHaveValue("all");
+ expect(screen.queryByRole("button", { name: "Clear filters" })).not.toBeInTheDocument();
+ fireEvent.click(filters);
+ expect(screen.queryByRole("region", { name: "Workflow filters" })).not.toBeInTheDocument();
+});
diff --git a/apps/screenpipe-app-tauri/components/workflows/workflow-run-progress.test.tsx b/apps/screenpipe-app-tauri/components/workflows/workflow-run-progress.test.tsx
index 97fb820cc..0033bca18 100644
--- a/apps/screenpipe-app-tauri/components/workflows/workflow-run-progress.test.tsx
+++ b/apps/screenpipe-app-tauri/components/workflows/workflow-run-progress.test.tsx
@@ -41,7 +41,7 @@ it("cleans up late subscriptions and ignores stale events after switching runs",
it("shows no-change success and never labels a failed run with older change counts", () => {
const view = render(<WorkflowRunProgress active={false} job={{ id: "1", status: "complete" }} changes={{ created: 0, updated: 0 }} analyze={vi.fn()} />);
- expect(screen.getByRole("status")).toHaveTextContent("No changes saved");
+ expect(screen.getByRole("status")).toHaveTextContent("No changes found");
view.rerender(<WorkflowRunProgress active={false} job={{ id: "2", status: "failed" }} changes={{ created: 0, updated: 2 }} analyze={vi.fn()} />);
expect(screen.getByRole("status")).toHaveTextContent("Update failed");
expect(screen.queryByText("0 new · 2 updated")).not.toBeInTheDocument();
@@ -58,9 +58,29 @@ it("shows an incomplete pipeline as resumable without claiming the catalog saved
it("shows actual reviewed coverage after reload rather than calling yesterday's batch current", () => {
render(<WorkflowRunProgress active={false} updatedAt="2026-09-17T17:55:00Z" checkedThrough="2026-09-16T21:08:00Z" changes={{created:0,updated:0}} analyze={vi.fn()} />);
- expect(screen.getByRole("status")).toHaveTextContent("No changes saved");
+ expect(screen.getByRole("status")).toHaveTextContent("No changes found");
expect(screen.getByRole("status")).toHaveTextContent("Sep 16");
fireEvent.click(screen.getByRole("button",{name:/Show agent activity/}));
expect(screen.getByRole("region",{name:"Agent activity"})).toHaveTextContent("Data reviewed through");
expect(screen.queryByText(/Waiting for the next agent/)).not.toBeInTheDocument();
});
+
+it("keeps quiet receipts compact without hiding failure, resume, or stop controls", () => {
+ const analyze = vi.fn(), stop = vi.fn();
+ const props = { quiet: true, active: false, analyze, stop, checkedThrough: "2026-09-16T21:08:00Z", updatedAt: "2026-09-17T17:55:00Z", changes: { created: 0, updated: 0 } };
+ const view = render(<WorkflowRunProgress {...props} />);
+ expect(screen.getByRole("status")).toHaveTextContent("Reviewed through");
+ fireEvent.click(screen.getByRole("button", { name: /Show agent activity/ }));
+ expect(screen.getByRole("region", { name: "Agent activity" })).toHaveTextContent("No changes found");
+ fireEvent.keyDown(document, { key: "Escape" });
+ expect(screen.queryByRole("region", { name: "Agent activity" })).not.toBeInTheDocument();
+ view.rerender(<WorkflowRunProgress {...props} job={{ id: "failed", status: "failed" }} />);
+ expect(screen.getByRole("status")).toHaveTextContent("Update failed");
+ view.rerender(<WorkflowRunProgress {...props} job={{ id: "incomplete", status: "incomplete" }} />);
+ expect(screen.getByRole("status")).toHaveTextContent("Update incomplete");
+ fireEvent.click(screen.getByRole("button", { name: "Resume update" }));
+ expect(analyze).toHaveBeenCalledOnce();
+ view.rerender(<WorkflowRunProgress {...props} active job={{ id: "active", status: "processing" }} />);
+ fireEvent.click(screen.getByRole("button", { name: "Stop" }));
+ expect(stop).toHaveBeenCalledOnce();
+});
diff --git a/packages/workflows-ui/src/workflow-run-progress.tsx b/packages/workflows-ui/src/workflow-run-progress.tsx
index f2b7f9ef0..73cf56006 100644
--- a/packages/workflows-ui/src/workflow-run-progress.tsx
+++ b/packages/workflows-ui/src/workflow-run-progress.tsx
@@ -1,14 +1,15 @@
// screenpipe — AI that knows everything you've seen, said, or heard
// https://screenpipe.com
"use client";
-import { useEffect, useRef, useState } from "react";
+import { useEffect, useRef, useState, type ReactNode } from "react";
import { Check, ChevronDown, Circle, Loader2, RefreshCw, Square, AlertCircle } from "lucide-react";
import type { WorkflowAnalysisJob, WorkflowRunActivity, WorkflowsPlatform } from "./platform";
import styles from "./workflows-app.module.css";
import { useGT } from "gt-react";
-export function WorkflowRunProgress({ job, active, subscribe, stop, analyze, updatedAt, checkedThrough, changes, disabledReason }: {
+export function WorkflowRunProgress({ job, active, subscribe, stop, analyze, updatedAt, checkedThrough, changes, disabledReason, quiet = false, actions }: {
+ quiet?: boolean; actions?: ReactNode;
disabledReason?: string;
job?: WorkflowAnalysisJob | null; active: boolean;
subscribe?: WorkflowsPlatform["subscribeAnalysisActivity"];
@@ -52,15 +53,18 @@ export function WorkflowRunProgress({ job, active, subscribe, stop, analyze, upd
changes = job?.result?.changes ?? changes;
checkedThrough = job?.result?.checkedThrough ?? checkedThrough;
const reviewed = checkedThrough && Number.isFinite(Date.parse(checkedThrough)) ? new Date(checkedThrough).toLocaleString([], { month: "short", day: "numeric", hour: "numeric", minute: "2-digit" }) : undefined;
- const result = changes ? changes.created === 0 && changes.updated === 0 ? "No changes saved" : `${changes.created} new · ${changes.updated} updated` : "Workflows updated";
+ const result = changes ? changes.created === 0 && changes.updated === 0 ? "No changes found" : `${changes.created} new · ${changes.updated} updated` : "Workflows updated";
const label = active ? current?.label ?? (job?.message || (job?.status === "queued" ? "Waiting for agent" : "Agent working"))
: job?.status === "incomplete" ? "Update incomplete" : job?.status === "failed" ? "Update failed" : job?.status === "complete" ? result
: updatedAt ? result : "";
- return <div className={styles.refreshControls}>
+ const receipt = quiet && !active && reviewed && job?.status !== "failed" && job?.status !== "incomplete"
+ ? ui("Reviewed through {date}", { date: reviewed }) : label;
+ const actionLabel = active && stop ? ui("Stop") : job?.status === "incomplete" ? ui("Resume update") : ui("Update now");
+ return <div className={quiet ? styles.quietRefreshControls : styles.refreshControls}>
{(active || items.length > 0 || job || updatedAt) ? <div ref={root} className={styles.runProgress}>
<button ref={toggle} type="button" className={styles.runToggle} aria-expanded={open} aria-label={ui("{value1}. Show agent activity", { value1: label })} onClick={() => setOpen(!open)}>
{active ? <Loader2 size={14} className={styles.runSpinner} /> : job?.status === "failed" ? <AlertCircle size={14} /> : job?.status === "incomplete" ? <Circle size={14} /> : <Check size={14} />}
- <span role="status">{label}{!active && reviewed && <small style={{ display: "block" }}>Through {reviewed}</small>}</span>
+ <span role="status">{receipt}{!quiet && !active && reviewed && <small style={{ display: "block" }}>Through {reviewed}</small>}</span>
{active && Number.isFinite(seconds) && <time>{Math.floor(seconds / 60)}:{String(seconds % 60).padStart(2, "0")}</time>}
<ChevronDown size={12} style={{ transform: open ? "rotate(180deg)" : undefined }} />
</button>
@@ -74,7 +78,10 @@ export function WorkflowRunProgress({ job, active, subscribe, stop, analyze, upd
<footer>{active ? ui("Your saved workflows stay available.") : (job?.status === "failed" || job?.status === "incomplete") ? job.message : result}</footer>
</section>}
</div> : <span role="status">{label}</span>}
- {active && stop ? <button className={styles.secondaryButton} onClick={stop}><Square size={11} />Stop</button>
- : <button className={styles.secondaryButton} onClick={analyze} disabled={active || !!disabledReason} title={disabledReason}><RefreshCw size={14} />{job?.status === "incomplete" ? ui("Resume update") : ui("Update now")}</button>}
+ <div className={quiet ? styles.quietHeaderActions : styles.runActions}>
+ {actions}
+ {active && stop ? <button className={quiet ? styles.quietIconButton : styles.secondaryButton} onClick={stop} aria-label={actionLabel} title={actionLabel}><Square size={16} />{!quiet && actionLabel}</button>
+ : <button className={quiet ? styles.quietIconButton : styles.secondaryButton} onClick={analyze} disabled={active || !!disabledReason} aria-label={actionLabel} title={disabledReason || actionLabel}><RefreshCw size={16} />{!quiet && actionLabel}</button>}
+ </div>
</div>;
}
diff --git a/packages/workflows-ui/src/workflows-app.module.css b/packages/workflows-ui/src/workflows-app.module.css
index b139aff03..6ac43d521 100644
--- a/packages/workflows-ui/src/workflows-app.module.css
+++ b/packages/workflows-ui/src/workflows-app.module.css
@@ -1056,3 +1056,25 @@
.runActivity { animation: surfaceReveal 150ms ease-out; }
}
@keyframes surfaceReveal { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
+
+/* Quiet catalog header: one title group, icon actions, then the review receipt. */
+.quietCatalogHeader { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 20px; margin-bottom: 24px; }
+.catalogHeading { grid-column: 1; grid-row: 1; min-width: 0; }
+.catalogHeading h1 { margin: 0; line-height: 1.2; }
+.catalogCount { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
+.catalogCount .clearButton { min-height: 24px; padding: 0; font-size: 12px; text-decoration: underline; }
+.quietRefreshControls { display: contents; }
+.quietHeaderActions { display: flex; align-items: center; gap: 6px; grid-column: 2; grid-row: 1; }
+.runActions { display: flex; align-items: center; gap: 6px; }
+.quietIconButton { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
+.quietIconButton:hover, .quietIconButton[aria-expanded="true"] { background: var(--soft); color: var(--ink); }
+.quietIconButton:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
+.quietIconButton:disabled { opacity: .4; cursor: default; }
+.filterCount { position: absolute; top: -1px; right: -2px; min-width: 15px; padding: 1px 3px; border-radius: 4px; background: var(--ink); color: var(--panel); font-size: 10px; }
+.quietRefreshControls .runProgress { grid-column: 1 / -1; grid-row: 2; justify-self: start; max-width: 100%; }
+.quietRefreshControls > [role="status"]:empty { display: none; }
+.quietRefreshControls .runToggle { max-width: 100%; min-height: 28px; padding: 0; text-align: left; font-size: 12px; }
+.quietRefreshControls .runToggle > span { color: var(--muted); white-space: normal; }
+.quietRefreshControls .runActivity { left: 0; right: auto; }
+@media (max-width: 640px) { .quietCatalogHeader { gap: 10px 12px; } .quietCatalogHeader h1 { font-size: 25px; } }
+@media (pointer: coarse) { .quietIconButton { width: 44px; height: 44px; } .quietRefreshControls .runToggle { min-height: 44px; } }
diff --git a/packages/workflows-ui/src/workflows-app.tsx b/packages/workflows-ui/src/workflows-app.tsx
index cfa6e8a57..f6a673479 100644
--- a/packages/workflows-ui/src/workflows-app.tsx
+++ b/packages/workflows-ui/src/workflows-app.tsx
@@ -63,7 +63,7 @@ import {
X,
Workflow,
} from "lucide-react";
-import { useCallback, useEffect, useMemo, useRef, useState } from "react";
+import { useCallback, useEffect, useMemo, useRef, useState, useId } from "react";
import { type AppView, isPrimaryAppView } from "./navigation";
import {
activeFilterCount,
@@ -718,6 +718,7 @@ function OverviewView({
function WorkflowsView({ workflows, knownWorkflowCount, activityPeriod, filters, setFilters, openWorkflow, analyze, analyzing, error, stop, updatedAt, checkedThrough, changes, job, subscribe, analysisUnavailableReason }: { analysisUnavailableReason?: string; workflows: WorkflowMap[]; knownWorkflowCount: number; activityPeriod: WorkflowActivityPeriod; filters: WorkflowFilters; setFilters: (filters: WorkflowFilters) => void; openWorkflow: (index: number) => void; analyze: () => void; analyzing: boolean; error: string; stop?: () => void; updatedAt?: string; checkedThrough?: string; changes?: { created: number; updated: number }; job?: WorkflowAnalysisJob | null; subscribe?: WorkflowsPlatform["subscribeAnalysisActivity"] }) {
const ui = useGT();
+ const filtersId = useId();
const [filtersOpen, setFiltersOpen] = useState(false);
const visible = useMemo(() => filterWorkflows(workflows, filters), [filters, workflows]);
const availableApps = useMemo(() => [...new Set(workflows.flatMap((workflow) => workflow.apps))].sort((a, b) => a.localeCompare(b)), [workflows]);
@@ -729,15 +730,19 @@ function WorkflowsView({ workflows, knownWorkflowCount, activityPeriod, filters,
return (
<>
- <div className={`${styles.pageHeader} ${styles.catalogHeader}`}><div><h1>Your workflows</h1></div><WorkflowRunProgress disabledReason={analysisUnavailableReason} job={job} active={analyzing} subscribe={subscribe} stop={stop} analyze={analyze} updatedAt={updatedAt} checkedThrough={checkedThrough} changes={changes} /></div>
+ <div className={`${styles.catalogHeader} ${styles.quietCatalogHeader}`}>
+ <div className={styles.catalogHeading}>
+ <h1>Your workflows</h1>
+ <div className={styles.catalogCount}>
+ <span>{filterCount || filters.query ? ui("{visible} of {total} shown", { visible: visible.length, total: workflows.length }) : ui("{count, plural, one {# workflow} other {# workflows}}", { count: workflows.length })} · {activityPeriod === 0 ? ui("All known") : activityPeriodLabel(activityPeriod)}</span>
+ {(filterCount > 0 || filters.query) && <button className={styles.clearButton} onClick={() => setFilters(defaultWorkflowFilters)}>{ui("Clear filters")}</button>}
+ </div>
+ </div>
+ <WorkflowRunProgress quiet actions={workflows.length > 0 && <button type="button" className={styles.quietIconButton} aria-label={filterCount ? ui("Filters ({count})", { count: filterCount }) : ui("Filters")} title={ui("Filters")} aria-expanded={filtersOpen} aria-controls={filtersId} onClick={() => setFiltersOpen(open => !open)}><SlidersHorizontal size={16} />{filterCount > 0 && <span className={styles.filterCount}>{filterCount}</span>}</button>} disabledReason={analysisUnavailableReason} job={job} active={analyzing} subscribe={subscribe} stop={stop} analyze={analyze} updatedAt={updatedAt} checkedThrough={checkedThrough} changes={changes} />
+ </div>
{error && <p role="alert" className={styles.depthNotice}>{error}</p>}
{!knownWorkflowCount ? <EmptyWorkMap analyzing={analyzing} analyze={analyze} /> : !workflows.length ? <section className={styles.emptyState}><Clock3 size={23} /><h2>No known workflows were active in this period</h2><p>Your {knownWorkflowCount} known workflows are still in the catalog. Choose “All known” to see them.</p></section> : <>
- <section className={styles.filterBar} aria-label={ui("Workflow filters")}>
- <div><strong>{visible.length} of {workflows.length} shown</strong><span>{filters.query ? ui("Matching “{value1}”", { value1: filters.query }) : activityPeriodLabel(activityPeriod)}</span></div>
- {(filterCount > 0 || filters.query) && <button className={styles.clearButton} onClick={() => setFilters(defaultWorkflowFilters)}><X size={12} />Clear</button>}
- <button className={filtersOpen || filterCount ? styles.filterButtonActive : styles.filterButton} onClick={() => setFiltersOpen((open) => !open)}><SlidersHorizontal size={14} />Filters{filterCount ? ` (${filterCount})` : ""}<ChevronDown size={13} /></button>
- </section>
- {filtersOpen && <section className={styles.filterPanel}>
+ {filtersOpen && <section id={filtersId} aria-label={ui("Workflow filters")} className={styles.filterPanel}>
<label><span>Evidence quality</span><select value={filters.quality} onChange={(event) => updateFilter("quality", event.target.value as WorkflowFilters["quality"])}><option value="all">Any support level</option><option value="good">Good or stronger</option><option value="strong">Strong only</option></select></label>
<label><span>Time per run</span><select value={filters.duration} onChange={(event) => updateFilter("duration", event.target.value as WorkflowFilters["duration"])}><option value="all">Any duration</option><option value="short">15 minutes or less</option><option value="medium">16–45 minutes</option><option value="long">More than 45 minutes</option></select></label>
<label><span>Friction type</span><select value={filters.friction} onChange={(event) => updateFilter("friction", event.target.value as WorkflowFilters["friction"])}><option value="all">Any friction</option><option value="waiting">Waiting</option><option value="switching">Switching</option><option value="rework">Rework</option><option value="handoff">Handoff</option><option value="unclear">Unclear</option></select></label>
@@ -774,9 +779,12 @@ function CatalogPlaceholder({ detail = false }: { detail?: boolean }) {
const ui = useGT();
const bar = (width: string, height = 10) => <span className={styles.skeletonBar} style={{ width, height }} />;
return <section aria-busy="true" aria-label={ui("Loading workflows")}>
- <div className={`${styles.pageHeader} ${styles.catalogHeader}`}><h1>{detail ? ui("Workflow") : ui("Your workflows")}</h1><span role="status" className={styles.catalogLoadStatus}>{ui("Loading saved workflows…")}</span></div>
+ {detail ? <div className={`${styles.pageHeader} ${styles.catalogHeader}`}><h1>{ui("Workflow")}</h1><span role="status" className={styles.catalogLoadStatus}>{ui("Loading saved workflows…")}</span></div> : <div className={`${styles.catalogHeader} ${styles.quietCatalogHeader}`}>
+ <div className={styles.catalogHeading}><h1>{ui("Your workflows")}</h1><div className={styles.catalogCount} aria-hidden="true">{bar("150px", 12)}</div></div>
+ <div className={styles.quietHeaderActions} aria-hidden="true">{bar("36px", 36)}{bar("36px", 36)}</div>
+ <div className={styles.quietRefreshControls}><span role="status" className={`${styles.runProgress} ${styles.catalogLoadStatus}`}>{ui("Loading saved workflows…")}</span></div>
+ </div>}
<div aria-hidden="true">
- {!detail && <div className={styles.filterBar}><div>{bar("100px")}{bar("140px", 8)}</div>{bar("85px", 28)}</div>}
<div className={detail ? styles.skeletonDetail : styles.workflowGrid}>
{Array.from({ length: detail ? 3 : 4 }, (_, i) => <div key={i} className={`${styles.workflowCard} ${styles.skeletonCard}`}>
<div className={styles.skeletonTitle}>{bar("78%", 20)}</div>