Skip to content

feat(backend): generate PDF inheritance audit reports (#825)#867

Open
DammyAji wants to merge 1 commit into
Fracverse:masterfrom
DammyAji:feat/generate-inheritance-pdf-audit-report
Open

feat(backend): generate PDF inheritance audit reports (#825)#867
DammyAji wants to merge 1 commit into
Fracverse:masterfrom
DammyAji:feat/generate-inheritance-pdf-audit-report

Conversation

@DammyAji

Copy link
Copy Markdown
  • Add printpdf = 0.7 dependency for pure-Rust PDF generation
  • Add ping_logs migration (plan_id, pinged_at, accrued_yield_snapshot)
  • Add src/pdf.rs module with PlanReportData / generate() using built-in fonts
  • Add GET /api/plans/:id/report handler protected by JWT middleware
  • PDF includes owner, token, amount, status, yield, beneficiaries with allocation percentages, and full ping activity log with yield snapshots
  • PDF generation runs in tokio::task::spawn_blocking (never blocks Axum runtime)
  • Returns application/pdf with Content-Disposition: attachment

Closes #825

- Add printpdf = 0.7 dependency for pure-Rust PDF generation
- Add ping_logs migration (plan_id, pinged_at, accrued_yield_snapshot)
- Add src/pdf.rs module with PlanReportData / generate() using built-in fonts
- Add GET /api/plans/:id/report handler protected by JWT middleware
- PDF includes owner, token, amount, status, yield, beneficiaries with
  allocation percentages, and full ping activity log with yield snapshots
- PDF generation runs in tokio::task::spawn_blocking (never blocks Axum runtime)
- Returns application/pdf with Content-Disposition: attachment

Closes Fracverse#825
@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@DammyAji Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ONEONUORA

Copy link
Copy Markdown
Contributor

@DammyAji
Run cargo fmt --all -- --check

and Clippy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Backend] Feature: Generate PDF Inheritance Audit Reports

2 participants