Generate and download a spec-scoped PDF extract from the issue-links section #26

Closed
opened 2026-10-31 21:17:35 +00:00 by Gilles · 0 comments
Owner

Frontend for thierryade/backend#30 (third and last slice of the Forgejo issue-link feature).

On SpecDetailPanel, once a spec has at least one linked issue, a "Générer l'extrait PDF" button appears under the issue-links list -- creates a spec-scoped PdfExportJob (POST /api/pdf-export-jobs/ {spec}), polls every 2s while pending/running (same pattern as ProjectVersionsView's own version/current-state exports), then offers "Télécharger l'extrait PDF" once done or a retry on failure. No extra UI needed for the "posted on the linked issue" part -- that's entirely server-side (apps.specs.tasks.sync_confirmation_comment).

Test plan

  • pnpm run test:unit -- 87/87 passing (2 new)
  • vue-tsc -b -- clean
  • vite build -- clean
Frontend for thierryade/backend#30 (third and last slice of the Forgejo issue-link feature). On `SpecDetailPanel`, once a spec has at least one linked issue, a "Générer l'extrait PDF" button appears under the issue-links list -- creates a spec-scoped `PdfExportJob` (`POST /api/pdf-export-jobs/ {spec}`), polls every 2s while pending/running (same pattern as `ProjectVersionsView`'s own version/current-state exports), then offers "Télécharger l'extrait PDF" once done or a retry on failure. No extra UI needed for the "posted on the linked issue" part -- that's entirely server-side (apps.specs.tasks.sync_confirmation_comment). ## Test plan - [x] `pnpm run test:unit` -- 87/87 passing (2 new) - [x] `vue-tsc -b` -- clean - [x] `vite build` -- clean
Sign in to join this conversation.
No description provided.