Skip to content

Conversation

@backportbot-libresign
Copy link

Backport of PR #5994

- Create service to manage footer templates (CRUD operations)
- Add renderPreviewPdf() method for generating PDF previews
- Support custom dimensions for preview generation
- Delegate to FooterHandler for actual PDF rendering

Signed-off-by: Vitor Mattos <[email protected]>
- Add 14 tests with 67 assertions covering all methods
- Use AppConfigOverwrite for realistic config testing
- Test edge cases: empty templates, unicode, extreme dimensions
- Use DataProvider for multiple scenarios
- Validate UUID generation, signers structure, and persistence

Signed-off-by: Vitor Mattos <[email protected]>
- GET /admin/footer-template - retrieve current template
- POST /admin/footer-template - save template and get preview
- POST /admin/footer-template/preview-pdf - preview without saving
- Support custom width/height for PDF preview
- Return DataDownloadResponse with PDF or error response

Signed-off-by: Vitor Mattos <[email protected]>
@github-project-automation github-project-automation bot moved this to 0. Needs triage in Roadmap Dec 4, 2025
@backportbot-libresign backportbot-libresign bot added this to the Next Patch (32) milestone Dec 4, 2025
@vitormattos vitormattos merged commit fc8a493 into stable32 Dec 4, 2025
62 checks passed
@vitormattos vitormattos deleted the backport/5994/stable32 branch December 4, 2025 18:44
@github-project-automation github-project-automation bot moved this from 0. Needs triage to 4. to release in Roadmap Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 4. to release

Development

Successfully merging this pull request may close these issues.

2 participants