fix: surface API and autosave errors to the user #84

Merged
theis merged 1 commit from fix/frontend-error-surfacing into main 2026-08-23 15:06:21 +00:00
Owner
  • Add shared extractApiError helper that prefers the backend error body
    and maps network failures to a friendly message; use it across the
    project pages so worker error reasons actually reach the screen.
  • Guard the axios 401 interceptor against undefined responses so network
    errors keep their original meaning.
  • Text page: show saving/saved state, warn loudly when autosave fails,
    offer a retry button instead of failing silently to console.
  • Speech page: show the stored failure reason when opening a failed job;
    Preview page: handle blocked audio playback and report load failures;
    polling tolerates transient status-check hiccups.
- Add shared extractApiError helper that prefers the backend error body and maps network failures to a friendly message; use it across the project pages so worker error reasons actually reach the screen. - Guard the axios 401 interceptor against undefined responses so network errors keep their original meaning. - Text page: show saving/saved state, warn loudly when autosave fails, offer a retry button instead of failing silently to console. - Speech page: show the stored failure reason when opening a failed job; Preview page: handle blocked audio playback and report load failures; polling tolerates transient status-check hiccups.
fix: surface API and autosave errors to the user
All checks were successful
/ test-frontend (push) Successful in 50s
/ test-backend (push) Successful in 2m56s
22fd1d3bcc
- Add shared extractApiError helper that prefers the backend error body
  and maps network failures to a friendly message; use it across the
  project pages so worker error reasons actually reach the screen.
- Guard the axios 401 interceptor against undefined responses so network
  errors keep their original meaning.
- Text page: show saving/saved state, warn loudly when autosave fails,
  offer a retry button instead of failing silently to console.
- Speech page: show the stored failure reason when opening a failed job;
  Preview page: handle blocked audio playback and report load failures;
  polling tolerates transient status-check hiccups.
theis force-pushed fix/frontend-error-surfacing from 22fd1d3bcc
All checks were successful
/ test-frontend (push) Successful in 50s
/ test-backend (push) Successful in 2m56s
to d4c97701f6
All checks were successful
/ test-frontend (push) Successful in 38s
/ test-backend (push) Successful in 1m25s
2026-08-23 15:03:10 +00:00
Compare
theis merged commit 873bf83ca2 into main 2026-08-23 15:06:21 +00:00
theis deleted branch fix/frontend-error-surfacing 2026-08-23 15:06:21 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
theis/webspeaker!84
No description provided.