feature: PDF export UI -- project versions + template editor #14
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!14
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/pdf-export"
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?
Adds the frontend half of async PDF export (see backend#19 / backend!20):
/:org/:project/versionsroute, linked from the existing "Par raffinage"/"Par emplacement" tabs): validates a newProjectVersion, triggers aPdfExportJobper version, polls it every 2s while pending/running, links to the download once done, and surfaces the backend's own human-readable validation errors.AdminProjectsTab/AdminThemesTab), pre-filled from the backend's built-in default template, a "repartir du modele par defaut" action, and a synchronous preview rendered against a fixed sample context.No chip-based variable insertion (unlike poulpinou-vue's mail editor): the export context is a recursive place tree, not a flat set of key-value variables, so a documented reference plus the default template as a worked example fits better than fake chip insertion.
Test plan
pnpm run test:unit-- 66/66 passing (9 new, covering the versions page, the template editor's CRUD/scoping/permissions/preview, and the validate_version error path)vue-tsc -bcleanpnpm run buildcleanCloses #13
🤖 Generated with Claude Code
https://claude.ai/code/session_013EeueXTWCT4Y6EbeideZcm
📊 Rapports Argus pour cette PR