shoc-frontend-new/src/api
Codex Review Integration fdd97c24f9 Merge branch 'dev' into feat/sh-298-sentry
Three conflicts, all where dev refactored code this branch had instrumented:

- api.ts — dev extracted the session-expiry helper into
  lib/auth/expire-session. Took dev's import, dropped the now-duplicate local
  copy, kept the tracing import.
- work-order-board-documents-api.ts — dev replaced the ky upload with
  uploadFormWithProgress, an XHR path that exists because ky's
  onUploadProgress streams the body and browsers refuse that over HTTP/1.1.
  Kept dev's helper and wrapped it in traceHttpOperation so the upload stays
  instrumented; neither change is lost.
- work-orders-api.test.ts — kept both mock surfaces, since the merged
  work-orders-api calls apiRequestRaw while other code uses the ky instance.

getMediaContent arrived from dev calling `api.get` directly, which this file
no longer imports; routed it through apiRequestRaw like its siblings, which
also brings it under tracing.
2026-09-10 14:44:12 -03:00
..
api-error.ts feat(work-orders): integrate board list, search and field patch API 2026-07-27 10:19:34 -03:00
api-paths.ts feat(work-orders): add media content API path 2026-09-08 11:30:04 -03:00
api.ts Merge branch 'dev' into feat/sh-298-sentry 2026-09-10 14:44:12 -03:00
handle-api-response.ts refactor(work-orders): pass board-api governance maintainability gate 2026-07-28 09:56:27 -03:00
paginated-response-fields.ts fix(work-orders): paginate board and search without loading the full dataset (SH-165) 2026-08-24 18:38:32 -03:00
upload-form-with-progress.ts fix(work-orders): restore completion media uploads over HTTP/1.1 2026-09-07 15:19:39 -03:00