feature: PDF export options dialog (root place, depth, layout, theme grouping) #30
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!30
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/pdf-export-options"
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?
Closes #29
What
PdfExportOptionsDialogopened by every PDF export button (version, current state, spec extract) before the job is created: start place (indented place-tree picker; locked on the spec's place for an extract), max depth (empty = unlimited), tree / by-place layout, group by theme. Mentions the always-included table of contents, and warns when the project resolves to a custom PDF template.api/exports.ts:PdfExportOptionssent withcreatePdfExportJob/createCurrentStatePdfExportJob/createSpecPdfExportJob(the latter always sendsroot_place: null);PdfExportJobgains the four fields;previewPdfTemplatetakeslayout/groupByTheme.export,places,themes,toc, anchors/links) and can preview each layout/grouping.Depends on
thierryade/backend#42 for the options to have any effect. Merging this one first is harmless (DRF ignores the unknown fields), but backend first is the natural order.
Tests
91/91 Vitest (5 new: options sent from the dialog, negative depth refused, cancel exports nothing, custom-template warning, locked place + depth on a spec extract; existing export tests now go through the dialog).
pnpm build(vue-tsc) clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01CrK5Cbdm97HrbhC9wPMLyu
📊 Rapports Argus pour cette PR