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(chat): restore one-click home actions (#6322)

Louis Beaumontd24b5dab4ad2
diff --git a/apps/screenpipe-app-tauri/components/chat/summary-cards.test.tsx b/apps/screenpipe-app-tauri/components/chat/summary-cards.test.tsx
index 928a2e14c..a642eb92d 100644
--- a/apps/screenpipe-app-tauri/components/chat/summary-cards.test.tsx
+++ b/apps/screenpipe-app-tauri/components/chat/summary-cards.test.tsx
@@ -18,17 +18,6 @@ describe("SummaryCards", () => {
vi.clearAllMocks();
});
-/**
- * The built-in extras beyond the two featured cards now sit behind a `more`
- * disclosure, so an empty chat opens with one obvious action instead of eight.
- * These assertions are about ordering and dispatch, which are unchanged — they
- * just have to open the shelf first, the way a user would.
- */
-function revealBuiltInShelf(): void {
- const more = screen.queryByTestId("summary-cards-more");
- if (more) fireEvent.click(more);
-}
-
it("prioritizes cards from the saved onboarding goal", () => {
render(
<SummaryCards
@@ -41,8 +30,6 @@ function revealBuiltInShelf(): void {
/>,
);
- revealBuiltInShelf();
-
const cards = screen.getAllByTestId(/^summary-card-/);
expect(cards.slice(0, 4).map((card) => card.dataset.testid)).toEqual([
"summary-card-time-breakdown",
@@ -76,8 +63,6 @@ function revealBuiltInShelf(): void {
<SummaryCards {...props} userGoalCategory="meeting_follow_through" />,
);
- revealBuiltInShelf();
-
const cards = screen.getAllByTestId(/^summary-card-/);
expect(cards.slice(0, 4).map((card) => card.dataset.testid)).toEqual([
"summary-card-missed-todos",
@@ -87,7 +72,7 @@ function revealBuiltInShelf(): void {
]);
});
- it("opens with one obvious action and keeps the built-in extras behind more", () => {
+ it("keeps every built-in action directly available", () => {
render(
<SummaryCards
onSendMessage={vi.fn()}
@@ -99,19 +84,12 @@ function revealBuiltInShelf(): void {
/>,
);
- // Only the hero and its one alternative. Eight simultaneous targets on an
- // empty chat is the clutter this disclosure exists to remove.
- expect(screen.getAllByTestId(/^summary-card-/)).toHaveLength(2);
- expect(screen.queryByText("Meeting Prep")).not.toBeInTheDocument();
-
- fireEvent.click(screen.getByTestId("summary-cards-more"));
-
- expect(screen.getAllByTestId(/^summary-card-/).length).toBeGreaterThan(2);
+ expect(screen.getAllByTestId(/^summary-card-/)).toHaveLength(4);
expect(screen.getByText("Meeting Prep")).toBeInTheDocument();
expect(screen.queryByTestId("summary-cards-more")).not.toBeInTheDocument();
});
- it("never hides the user's own saved templates behind the disclosure", () => {
+ it("keeps the user's saved templates alongside the built-in actions", () => {
render(
<SummaryCards
onSendMessage={vi.fn()}
@@ -129,7 +107,6 @@ function revealBuiltInShelf(): void {
/>,
);
- // Progressive disclosure hides our defaults, never the user's own work.
expect(screen.getByText("Client recap")).toBeInTheDocument();
expect(screen.getByText("+ custom")).toBeInTheDocument();
});
@@ -146,8 +123,6 @@ function revealBuiltInShelf(): void {
/>,
);
- revealBuiltInShelf();
-
const cards = [
["automate-my-work", "⚡ Automate My Work"],
["day-recap", "📋 Day Recap"],
diff --git a/apps/screenpipe-app-tauri/components/chat/summary-cards.tsx b/apps/screenpipe-app-tauri/components/chat/summary-cards.tsx
index 21b165126..2c468fb34 100644
--- a/apps/screenpipe-app-tauri/components/chat/summary-cards.tsx
+++ b/apps/screenpipe-app-tauri/components/chat/summary-cards.tsx
@@ -108,9 +108,6 @@ export function SummaryCards({
}: SummaryCardsProps) {
const [showAll, setShowAll] = useState(false);
const [showBuilder, setShowBuilder] = useState(false);
- // Progressive disclosure (DESIGN.md core value): the quick-action shelf is
- // opt-in so a new chat presents one obvious action, not eight.
- const [showMore, setShowMore] = useState(false);
const [editingTemplate, setEditingTemplate] = useState<CustomTemplate | null>(null);
// Curated home grid — kept deliberately small to reduce cognitive load.
// Order matters. Definitions come from the app bundle (FALLBACK_TEMPLATES)
@@ -242,7 +239,7 @@ export function SummaryCards({
column's edges (brick fill) instead of leaving a ragged right edge. */}
<div className="w-full max-w-lg mb-4 flex flex-wrap items-center gap-1">
{/* Template-backed chips (Time Breakdown, Missed To-Dos) */}
- {showMore && featured.slice(2).map((pipe) => (
+ {featured.slice(2).map((pipe) => (
<button
key={pipe.name}
data-testid={`summary-card-${pipe.name}`}
@@ -253,7 +250,7 @@ export function SummaryCards({
</button>
))}
{/* Quick summary chips */}
- {showMore && [
+ {[
{ label: "Meeting Prep", prompt: "Summarize context I'll need for upcoming meetings" },
{ label: "Blockers", prompt: "What problems, errors, or blockers did I encounter?" },
].map((qt) => (
@@ -276,19 +273,6 @@ export function SummaryCards({
{qt.label}
</button>
))}
- {!showMore && (
- <button
- type="button"
- data-testid="summary-cards-more"
- onClick={() => {
- posthog.capture("home_card_clicked", { kind: "more_disclosure" });
- setShowMore(true);
- }}
- className="grow px-2 py-0.5 text-[11px] font-mono tracking-wide bg-muted/20 hover:bg-foreground hover:text-background border border-border/30 hover:border-foreground text-muted-foreground/70 transition-all duration-150 cursor-pointer"
- >
- more
- </button>
- )}
{/* User's saved templates — chips slightly fainter than built-ins with
a pin glyph marking them as user-owned. Full text and management
(edit/delete) live in the edit dialog. */}