From 090b7d83dd9aa548cd2117e6fbcacd1559697767 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Tue, 12 May 2026 14:43:27 -0400 Subject: [PATCH] feat(frontend): API client for profile observations + closeout flag Co-Authored-By: Claude Opus 4.7 (1M context) --- frontend/src/api/client.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/api/client.ts b/frontend/src/api/client.ts index f6e0819..980cc66 100644 --- a/frontend/src/api/client.ts +++ b/frontend/src/api/client.ts @@ -317,6 +317,7 @@ export interface JournalConfig { day_rollover_hour: number; morning_end_hour?: number; midday_end_hour?: number; + closeout_enabled?: boolean; // Ambient-context fields (carried forward from the briefing config schema) locations?: { home?: JournalLocation; work?: JournalLocation }; temp_unit?: 'C' | 'F'; @@ -696,3 +697,11 @@ export const updateProfile = (data: Partial) => export const consolidateProfile = () => apiPost<{ status: string; learned_summary: string }>('/api/profile/consolidate', {}) export const clearProfileObservations = () => apiDelete('/api/profile/observations') + +export interface ProfileObservationEntry { + date: string + bullets: string +} + +export const listProfileObservations = () => + apiGet<{ observations: ProfileObservationEntry[] }>('/api/profile/observations')