From acd2fea9a958361e7add50c1c8c8956a8c5c1814 Mon Sep 17 00:00:00 2001 From: MaheshtheDev <38828053+MaheshtheDev@users.noreply.github.com> Date: Fri, 3 Jul 2026 04:12:38 +0000 Subject: [PATCH] feat(web): hide getting-started once setup done, swap setup tile (#1190) Hide the Getting Started checklist when all 3 onboarding steps complete, letting Recent memories go full-width. Swap the Setup 3/3 stat tile to a live Last updated timestamp once setup is done. --- **Session Details** - Session: [View Session](https://supermemory.us1.vorflux.com/agent-sessions/afbb6d10-e42e-4b40-aac9-90aba9532ec7) - Requested by: Unknown - Address comments on this PR. Add `(aside)` to your comment to have me ignore it. --- .../components/brain-home/brain-home-view.tsx | 53 ++++++++++++++++--- 1 file changed, 46 insertions(+), 7 deletions(-) diff --git a/apps/web/components/brain-home/brain-home-view.tsx b/apps/web/components/brain-home/brain-home-view.tsx index 7cce0e27..3be036fc 100644 --- a/apps/web/components/brain-home/brain-home-view.tsx +++ b/apps/web/components/brain-home/brain-home-view.tsx @@ -23,6 +23,7 @@ type RecentDoc = { id?: string title?: string | null createdAt?: string | Date | null + updatedAt?: string | Date | null } function useBrainOverview() { @@ -52,6 +53,27 @@ function useBrainOverview() { enabled, }) + const lastUpdated = useQuery({ + queryKey: ["brain-last-updated", org?.id], + queryFn: async () => { + const res = await $fetch("@post/documents/documents", { + body: { + page: 1, + limit: 1, + sort: "updatedAt", + order: "desc", + containerTags: [], + }, + disableValidation: true, + }) + if (res.error) return null + const docs = (res.data as { documents?: RecentDoc[] })?.documents + return docs?.[0]?.updatedAt ?? null + }, + staleTime: 60_000, + enabled, + }) + const connectors = useQuery({ queryKey: ["brain-home", "connectors"], queryFn: async () => { @@ -112,6 +134,7 @@ function useBrainOverview() { return { loading: docs.isPending, recentDocs: docs.data?.documents ?? [], + lastUpdatedAt: lastUpdated.data ?? null, memoriesCount, connectedCount, membersCount: org?.members?.length ?? 0, @@ -127,6 +150,7 @@ export function BrainHomeView() { const stepsDone = [o.hasSource, o.hasAgent, o.hasMemory].filter( Boolean, ).length + const showGettingStarted = !o.loading && stepsDone < 3 return (