docs for memories
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2026-06-29 15:00:34 +01:00
parent 701d39982f
commit 421c96c814
14 changed files with 956 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
"use client";
import { useQuery } from "@tanstack/react-query";
import { keepPreviousData, useQuery } from "@tanstack/react-query";
import { useState } from "react";
import { AppShell } from "@/components/layout/app-shell";
import { CharacterCard } from "@/components/features/character-card";
@@ -10,6 +10,7 @@ import { QuestGiverSidebar, ReadingWidget } from "@/components/features/sidebar-
import { DaySwitcher } from "@/components/features/day-switcher";
import { CatchUpCard } from "@/components/features/catch-up-card";
import { QuickLogPanel } from "@/components/features/quick-log-panel";
import { ResourceLinkCapture } from "@/components/features/resource-link-capture";
import { formatDisplayDate, todayString } from "@/lib/dates-client";
async function fetchDashboard(date?: string) {
@@ -25,6 +26,9 @@ export default function HomePage() {
const { data, isLoading, error } = useQuery({
queryKey: ["dashboard", activeDate],
queryFn: () => fetchDashboard(activeDate),
placeholderData: keepPreviousData,
staleTime: 30_000,
refetchOnWindowFocus: false,
});
if (isLoading) {
@@ -100,6 +104,7 @@ export default function HomePage() {
/>
)}
<QuickLogPanel date={date} />
<ResourceLinkCapture date={date} />
<DailyReflection
date={date}
initial={data.reflection}