From c63cddc6dd81388b26deac40f870ea2a8a475808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 10 May 2026 03:34:09 +0200 Subject: [PATCH] style(insights): prettier sweep on C1 + C2 wire-up files Co-Authored-By: Claude Opus 4.7 (1M context) --- e2e/insights-advisor-card.spec.ts | 6 +++--- src/app/page.tsx | 5 +---- src/components/insights/use-insights-advisor.ts | 8 ++++++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/e2e/insights-advisor-card.spec.ts b/e2e/insights-advisor-card.spec.ts index 232aeb788..a5791530c 100644 --- a/e2e/insights-advisor-card.spec.ts +++ b/e2e/insights-advisor-card.spec.ts @@ -217,9 +217,9 @@ test.describe("insights advisor card on /insights (C1)", () => { // Hero + advisor card both render. The hero is from B1b; the // advisor card is the C1 deliverable. - await expect( - page.locator('[data-slot="insights-page-hero"]'), - ).toBeVisible({ timeout: 10_000 }); + await expect(page.locator('[data-slot="insights-page-hero"]')).toBeVisible({ + timeout: 10_000, + }); // The recommendation card surface from B5c — `data-slot` markers // are pinned in tests, look for the rec text the mock provided. diff --git a/src/app/page.tsx b/src/app/page.tsx index a9ce6e27b..c13f76704 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -964,10 +964,7 @@ export default function DashboardPage() { order: widgetOrder("mood"), count: moodSummary?.count ?? 0, node: ( - + ), }); } diff --git a/src/components/insights/use-insights-advisor.ts b/src/components/insights/use-insights-advisor.ts index f98d6eaa7..716958be8 100644 --- a/src/components/insights/use-insights-advisor.ts +++ b/src/components/insights/use-insights-advisor.ts @@ -63,7 +63,9 @@ export interface UseInsightsAdvisorResult { * Read-only consumer for the advisor payload. Use this on surfaces that * just want to render the cached insight (e.g. dashboard preview). */ -export function useInsightsAdvisorQuery(enabled: boolean): UseInsightsAdvisorResult { +export function useInsightsAdvisorQuery( + enabled: boolean, +): UseInsightsAdvisorResult { const queryClient = useQueryClient(); const query = useQuery({ queryKey: queryKeys.insightsAdvisor(), @@ -80,7 +82,9 @@ export function useInsightsAdvisorQuery(enabled: boolean): UseInsightsAdvisorRes if (next) { queryClient.setQueryData(queryKeys.insightsAdvisor(), next); } else { - queryClient.invalidateQueries({ queryKey: queryKeys.insightsAdvisor() }); + queryClient.invalidateQueries({ + queryKey: queryKeys.insightsAdvisor(), + }); } // Per-status caches are evicted server-side on regenerate; refresh // their query subtree so the per-section text below the advisor card