Commit 6eeb2e0
Fix Libre 403 errors and add structured logging improvements
Critical Fixes:
- Fix Libre 403 errors by fetching correct patient ID from connections endpoint
- Add 403 error handling in sync-libre to auto-flag needs_reauth
- Add structured logging for WHOOP token refresh success (was console.log)
Testing Infrastructure:
- Add comprehensive Edge Function test suite (Deno tests)
- Add unit tests for WHOOP/Fitbit transformers and clients
- Add schema contract tests for database operations
- Add orchestrator tests for sync-all-devices
- Add pre-deploy test script and CI/CD runner
Documentation:
- Add Edge Function testing guide (TESTING.md)
- Add phase completion summaries (transformers, tests, contracts)
- Add Jest performance optimization guide
- Update CI/CD documentation with test instructions
Mobile:
- Add ConnectedDeviceCard needs_reauth UI tests
- Optimize Jest setup with mockdate for performance
Web:
- Re-enable SSR in react-router.config.ts after cache clear
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent fbf3146 commit 6eeb2e0
File tree
31 files changed
+7854
-31
lines changed- .claude
- ci-cd
- docs
- mobile
- src/components/FitnessTracker/__tests__
- supabase/functions
- sync-all-devices
- sync-libre
- sync-whoop
- web
31 files changed
+7854
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
125 | 137 | | |
126 | 138 | | |
127 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
184 | 206 | | |
185 | 207 | | |
186 | 208 | | |
| |||
249 | 271 | | |
250 | 272 | | |
251 | 273 | | |
| 274 | + | |
252 | 275 | | |
253 | 276 | | |
254 | 277 | | |
| |||
359 | 382 | | |
360 | 383 | | |
361 | 384 | | |
362 | | - | |
363 | | - | |
| 385 | + | |
| 386 | + | |
364 | 387 | | |
365 | 388 | | |
366 | | - | |
| 389 | + | |
| 390 | + | |
367 | 391 | | |
368 | 392 | | |
369 | 393 | | |
| |||
390 | 414 | | |
391 | 415 | | |
392 | 416 | | |
393 | | - | |
394 | | - | |
| 417 | + | |
| 418 | + | |
395 | 419 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | | - | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
308 | | - | |
309 | | - | |
310 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
311 | 313 | | |
312 | 314 | | |
313 | 315 | | |
| |||
337 | 339 | | |
338 | 340 | | |
339 | 341 | | |
340 | | - | |
| 342 | + | |
341 | 343 | | |
342 | 344 | | |
343 | | - | |
344 | | - | |
| 345 | + | |
| 346 | + | |
345 | 347 | | |
346 | 348 | | |
347 | 349 | | |
| |||
0 commit comments