fix: surface PDF export job creation failures instead of failing silently #23
No reviewers
Labels
No labels
breaking
bug
ci
dependencies
documentation
feature
security
skip-changelog
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thierryade/frontend!23
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/pdf-export-silent-failure"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
exportPdf/exportCurrentState(ProjectVersionsView.vue) calledcreatePdfExportJob/createCurrentStatePdfExportJobwith no try/catch -- a rejected POST (permission denied, validation error, server error...) became an unhandled promise rejection: the button stayed inert, no status chip, no PDF link, no error. This matches exactly what was reported.exportErrorref, caught in both functions, shown as a banner next to the template hint -- same convention already used byload()'serrorref anddoValidate'svalidateErrors.Test plan
pnpm vitest run-- 80/80 passing.pnpm build-- clean.Closes #22.
🤖 Generated with Claude Code
https://claude.ai/code/session_013EeueXTWCT4Y6EbeideZcm
📊 Rapports Argus pour cette PR