BillTracker/client/pages
null 9b805e60b2 refactor(ts): convert the API client to TypeScript (TS9)
client/api.js -> api.ts. Types the fetch infrastructure: generic _fetch<T>
and get/post/put/patch/del<T> helpers, an ApiError interface (status/code/
details/data), a QueryParams type for the query-string builder, and File-typed
upload helpers. Endpoint response shapes are typed incrementally — most methods
default to Promise<unknown>; the ones consumed by typed .ts files get real
shapes (quickPay -> PaymentRecord, togglePaid -> TogglePaidResult, settings ->
settings map).

Typing togglePaid's result surfaced a latent narrowing bug in usePaymentActions:
the un-pay Undo closure read result.paymentId (number|undefined) inside a
deferred async callback where TS re-widens the if-narrowed value — fixed by
capturing the id in a const before the closure.

The 16 files importing '@/api.js' with an explicit extension were normalized to
'@/api' so Vite/TS resolve the .ts.

Verified: typecheck 0, lint 0 errors (47 warns), build green, 48 client tests,
and 17/17 e2e probe (every page renders, all API paths respond) — the central
fetch-module rename is runtime-safe.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-03 22:09:04 -05:00
..
AboutPage.jsx chore(cleanup): remove legacy/public HTML files, retire /legacy route, update docs and About page 2026-06-11 23:50:27 -05:00
AdminPage.jsx fix(admin): admin/profile routes and services 2026-06-07 21:18:02 -05:00
AnalyticsPage.jsx refactor(analytics): migrate AnalyticsPage to React Query (R5.1) 2026-07-03 20:04:14 -05:00
BankTransactionsPage.jsx refactor(bank): migrate BankTransactionsPage ledger to React Query (R5.7) 2026-07-03 20:25:47 -05:00
BillsPage.jsx refactor(bills): migrate BillsPage to React Query (R5.2) 2026-07-03 20:08:28 -05:00
CalendarPage.jsx refactor(tracker): consolidate isPaidStatus + rowOutstanding + toast gap (T5) 2026-07-03 18:36:30 -05:00
CategoriesPage.jsx refactor(ts): convert the API client to TypeScript (TS9) 2026-07-03 22:09:04 -05:00
DataPage.jsx feat(data): "Erase my data" danger zone (Batch 5) 2026-07-03 15:21:07 -05:00
HealthPage.jsx fix(client): resolve all 13 exhaustive-deps warnings (R2b) 2026-07-03 19:47:14 -05:00
LoginPage.jsx feat: TOTP 2FA for login & profile setup flow 2026-06-04 04:10:14 -05:00
NotFoundPage.jsx feat: merge pipeline workflow into bill-tracker (batch v0.36.0) 2026-06-03 20:28:37 -05:00
PayoffPage.jsx refactor(client): single source of truth for money formatting (IMP-CODE-01) 2026-07-03 12:46:22 -05:00
PrivacyPage.jsx v0.28.0 2026-05-15 22:45:38 -05:00
ProfilePage.jsx fix(client): resolve all 13 exhaustive-deps warnings (R2b) 2026-07-03 19:47:14 -05:00
ReleaseNotesPage.jsx v0.28.0 2026-05-15 22:45:38 -05:00
RoadmapPage.jsx feat: framer-motion page transitions and UI polish 2026-06-07 15:14:09 -05:00
SettingsPage.jsx feat(settings): auto-save preferences with live save status (batch 0.39.0) 2026-06-12 02:08:42 -05:00
SnowballPage.jsx refactor(snowball): migrate SnowballPage to React Query (R5.5) 2026-07-03 20:18:14 -05:00
SpendingPage.jsx refactor(spending): migrate SpendingPage to React Query (R5.6) 2026-07-03 20:22:13 -05:00
StatusPage.jsx fix(client): fix ESLint errors — real latent bugs (R2a) 2026-07-03 19:42:52 -05:00
SubscriptionCatalogPage.jsx feat: dedicated subscription catalog page, evidence badges, price display in recommendations 2026-06-06 20:44:54 -05:00
SubscriptionsPage.jsx refactor(subscriptions): migrate SubscriptionsPage to React Query (R5.3) 2026-07-03 20:12:02 -05:00
SummaryPage.jsx refactor(ts): convert the API client to TypeScript (TS9) 2026-07-03 22:09:04 -05:00
TrackerPage.jsx refactor(ts): convert the API client to TypeScript (TS9) 2026-07-03 22:09:04 -05:00