~bigbes/lethe

ref: 54353ce8b74807ef9fd757854f41de7caf502058 lethe/web/src/api/adapters.test.ts -rw-r--r-- 7.5 KiB
12df3f43 — Eugene Blikh a month ago
web: adapter — add Session.sessionId, SavedSearch DTO; fix composite-id call sites
e048bdf7 — Eugene Blikh a month ago
web: stats route with backend-driven chart primitives
e075b986 — Eugene Blikh a month ago
web: projects index route with real /projects data
b100feee — Eugene Blikh a month ago
web: home route with real session list, filters, keyboard cursor

- api/client.ts: apiFetch with AuthError/APIError, 401 and problem+json handling
- api/adapters.ts: SessionDTO→Session adapter with composite id and epoch conversion
- api/adapters.test.ts: 6 TDD tests covering all specified edge cases
- features/home/useSessions.ts: TanStack Query hook with since/tool/host params
- features/home/FilterChips.tsx: chip-bar with popovers, Esc/outside-click dismiss
- features/home/SessionsTable.tsx: grid table with cursor row highlight, formatStarted/formatTok
- features/home/useHomeCursor.ts: cursor hook with move/activate/jumpTo
- routes/index.tsx: Home route wired to real data, URL-driven filters, keyboard cursor
- routes/__root.tsx: cursorRef + KeyboardCursorContext for route-local cursor registration
- routes/session.$tool.$host.$id.tsx: stub for Phase 6
- styles/home.css: .home-table/.home-thead/.home-row/.home-row.cursor grid rules
- primitives/ToolDot.tsx: widened tool prop to string (Tool type is open-ended)