feat: implement pdf report generation - #1023
Merged
ONEONUORA merged 2 commits intoJul 31, 2026
Merged
Conversation
|
@Stanley-Owoh 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! 🚀 |
Contributor
|
@Stanley-Owoh |
Contributor
|
@Stanley-Owoh |
Stanley-Owoh
force-pushed
the
implement-pdf-report-generation-941
branch
from
July 30, 2026 22:08
4791e20 to
9fa1bf0
Compare
Stanley-Owoh
force-pushed
the
implement-pdf-report-generation-941
branch
from
July 30, 2026 22:18
8559de7 to
824f226
Compare
Contributor
Author
|
@ONEONUORA Good day maintainer, please review my pr, All checks has passed. Thank you |
ONEONUORA
approved these changes
Jul 31, 2026
ONEONUORA
left a comment
Contributor
There was a problem hiding this comment.
Great job @Stanley-Owoh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the PDF report generation logic for
GET /api/plans/{id}/report. The report now includes dedicated Assets, Yield Details, and Beneficiaries sections with real-time projected yield computation.Changes
backend/src/pdf.rsprojected_accrued_yieldfield toPlanReportDatatoken_addressandamountfrom Plan Details into the new Assets sectionbackend/src/api.rscompute_projected_accrued_yield(&plan)call before building the PDF data to calculate real-time accrued yield since the last pingprojected_accrued_yieldintoPlanReportDataTesting
cargo checkpasses with no warningstokio::task::spawn_blockingas beforeCloses #941