You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failures are invisible. The hook throws a generic Error('Failed to export USFM'); the UI surfaces nothing actionable, and the
API doesn't consistently log the failure to App Insights.
Decision (Kasey, 2026-06-18)
improve the user experience to let them know that an error occurred … it should
log to Azure like other things.
Scope
fluent-web: add credentials: 'include'; surface a retryable error state in ExportProjectDialog.
fluent-api: log sync-export failures via the standard logger → App Insights
with project-unit context; stop returning raw error.message/details to the
client (align with the { message } envelope — breaking change, coordinate
with fluent-web).
⚠️Release coupling: the fluent-web credentials fix must land no later than #189's auth change.
Refs
Follow-up from the security/export audit (#194, PR #189).
Detail: docs/proposals/security-and-export-hardening/02-export-error-ux-and-logging.md.
Problem
The synchronous USFM export the editor uses (
fluent-webuseExportUsfm→POST /project-units/{id}/usfm) has two gaps:fluent-webomits credentials.useExportUsfm.tsis the only API call inthe app missing
credentials: 'include'. It works today only because theendpoint is unauthenticated — once fix(auth): require authentication on bibles and USFM routes #189's auth merges, this request 401s and
the editor export breaks. Must ship with (or before) fix(auth): require authentication on bibles and USFM routes #189's deploy.
Error('Failed to export USFM'); the UI surfaces nothing actionable, and theAPI doesn't consistently log the failure to App Insights.
Decision (Kasey, 2026-06-18)
Scope
credentials: 'include'; surface a retryable error state inExportProjectDialog.with project-unit context; stop returning raw
error.message/detailsto theclient (align with the
{ message }envelope — breaking change, coordinatewith fluent-web).
#189's auth change.
Refs
Follow-up from the security/export audit (#194, PR #189).
Detail:
docs/proposals/security-and-export-hardening/02-export-error-ux-and-logging.md.