diff --git a/components/SettingsPanel.tsx b/components/SettingsPanel.tsx index 5f90213..f6e366f 100644 --- a/components/SettingsPanel.tsx +++ b/components/SettingsPanel.tsx @@ -16,6 +16,7 @@ export default function SettingsPanel() { const [dreamTask, setDreamTask] = useState(''); const [dreaming, setDreaming] = useState(false); const [dreamStarted, setDreamStarted] = useState(false); + const [captures, setCaptures] = useState<{name: string}[]>([]); function formatDreamerTime(raw: string): string { if (!raw || raw === 'never' || raw === '—') return raw; @@ -36,6 +37,7 @@ export default function SettingsPanel() { if (!settingsOpen) return; api.getStatus().then(setStatus).catch(console.error); api.getDreamerStatus().then(setDreamerStatus).catch(console.error); + fetch('/api/captures').then(r => r.json()).then(d => setCaptures(d.captures || [])).catch(() => {}); api.getMemory().then(d => setMemory(d.content)).catch(console.error); }, [settingsOpen]); @@ -221,6 +223,28 @@ export default function SettingsPanel() { + {/* Captures */} + + {captures.length === 0 ? ( + No captures yet + ) : ( + + {captures.slice(0, 8).map((c, i) => ( + + + + {c.name} + + + ))} + + )} + + {/* Dreamer */}
No captures yet