diff --git a/.veritas-kanban/telemetry/events-2026-01-28.ndjson b/.veritas-kanban/telemetry/events-2026-01-28.ndjson index 78860660..3d47088d 100644 --- a/.veritas-kanban/telemetry/events-2026-01-28.ndjson +++ b/.veritas-kanban/telemetry/events-2026-01-28.ndjson @@ -594,3 +594,4 @@ {"type":"task.status_changed","taskId":"task_20260128_lePtYQ","project":"veritas-kanban","status":"done","previousStatus":"in-progress","id":"evt_3Iyqk4tXewur","timestamp":"2026-01-28T11:03:09.268Z"} {"type":"task.status_changed","taskId":"task_20260128_80Bww2","project":"veritas-kanban","status":"done","previousStatus":"in-progress","id":"evt_lhxfDcirN7Nm","timestamp":"2026-01-28T11:03:10.942Z"} {"type":"task.status_changed","taskId":"task_20260128_bIPwKK","project":"veritas-kanban","status":"done","previousStatus":"in-progress","id":"evt_qF5oHf8YG7Ha","timestamp":"2026-01-28T11:07:35.701Z"} +{"type":"task.status_changed","taskId":"task_20260128_UMDZyh","project":"veritas-kanban","status":"done","previousStatus":"in-progress","id":"evt_DHjWHkRDV-eW","timestamp":"2026-01-28T12:09:08.261Z"} diff --git a/server/.veritas-kanban/activity.json b/server/.veritas-kanban/activity.json index f0f5f6b8..698b6353 100644 --- a/server/.veritas-kanban/activity.json +++ b/server/.veritas-kanban/activity.json @@ -1,4 +1,26 @@ [ + { + "id": "activity_1769602148289_c072zwzck", + "type": "comment_added", + "taskId": "task_20260128_UMDZyh", + "taskTitle": "RF-11: Consolidate Frontend API Layer", + "details": { + "author": "Veritas", + "preview": "Extended api.ts to cover all endpoints. Updated 6 ..." + }, + "timestamp": "2026-01-28T12:09:08.289Z" + }, + { + "id": "activity_1769602148262_qy2on8vrt", + "type": "status_changed", + "taskId": "task_20260128_UMDZyh", + "taskTitle": "RF-11: Consolidate Frontend API Layer", + "details": { + "from": "in-progress", + "status": "done" + }, + "timestamp": "2026-01-28T12:09:08.262Z" + }, { "id": "activity_1769598455726_9m6dfmawo", "type": "comment_added", diff --git a/shared/src/utils/api-client.ts b/shared/src/utils/api-client.ts index d501428b..e71faf01 100644 --- a/shared/src/utils/api-client.ts +++ b/shared/src/utils/api-client.ts @@ -35,8 +35,9 @@ export function createApiClient(baseUrl = DEFAULT_BASE) { /** * Default API client using environment variable or localhost + * Uses typeof check to avoid ReferenceError in browser environments */ -export const API_BASE = process.env.VK_API_URL || DEFAULT_BASE; +export const API_BASE = (typeof process !== 'undefined' && process.env?.VK_API_URL) || DEFAULT_BASE; export const api = createApiClient(API_BASE); /** diff --git a/web/src/main.tsx b/web/src/main.tsx index 5aa97dd7..e562a1e6 100644 --- a/web/src/main.tsx +++ b/web/src/main.tsx @@ -7,7 +7,7 @@ import './globals.css'; const queryClient = new QueryClient({ defaultOptions: { queries: { - staleTime: 1000 * 60, // 1 minute + staleTime: 1000 * 60, refetchOnWindowFocus: true, }, },