Skip to content

export PDF after verifying token#150

Merged
daviddprtma merged 3 commits into
daviddprtma:mainfrom
Aditya8369:export-pdf
Jun 22, 2026
Merged

export PDF after verifying token#150
daviddprtma merged 3 commits into
daviddprtma:mainfrom
Aditya8369:export-pdf

Conversation

@Aditya8369

Copy link
Copy Markdown
Contributor

Summary of Completed Work
Created PDF Export Utility: Created

pdfExport.ts
which uses jsPDF to construct a beautifully styled Certificate of Authenticity. It includes:
Metadata blocks (Token ID, Serial Number, Status, Verification Timestamp).
Product Details (Name, Product Type, Quantity, Harvest Location, Harvest Date).
A color-coded visual gauge for the AI Trust Score.
A vertical timeline detailing the supply chain trail of events.
An embedded verification QR code retrieved from the page canvas.
Added Button to Page: Added an outline style "Export PDF" button to the header of the "Verification Details" card in

BatchVerify.tsx

Wrote Automated Unit Tests: Created

pdfExport.test.ts
to verify the document generation with mock data under English/French configurations.
Verified and Ran Checks: Verified that all tests passed successfully using pnpm test and that the build has no compilation issues via npx tsc --noEmit.

closes #41

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

@Aditya8369 is attempting to deploy a commit to the daviddprtma's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Aditya8369

Copy link
Copy Markdown
Contributor Author

hey @daviddprtma i fixed my assigned issue #41 but the PR assignee workflow is failing
you have assigned me #41 still its failing

@daviddprtma daviddprtma moved this from Todo to In Progress in AgroDex SSoC'26 Project Jun 22, 2026
@daviddprtma

Copy link
Copy Markdown
Owner

hey @daviddprtma i fixed my assigned issue #41 but the PR assignee workflow is failing you have assigned me #41 still its failing

don't worry for that becoz it need manually approved by me and you just ignore that. and now you're verified for this pr 👌

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agro-dex Ready Ready Preview, Comment Jun 22, 2026 12:46pm
agro-dex-1u85 Ready Ready Preview, Comment Jun 22, 2026 12:46pm

@daviddprtma daviddprtma merged commit 1d3ff82 into daviddprtma:main Jun 22, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in AgroDex SSoC'26 Project Jun 22, 2026
@daviddprtma

Copy link
Copy Markdown
Owner

what a great jon. thank you for contribute in AgroDex🎉. I hope you're successful in another project that you handle right now. all the best for you. as a veteran user, I give you a chance to open an issue in 3 issues left with the max total of contributors can contribute in here is 5 issues. if you find any errors / bugs, feel free to open your own issue / looking for another issue that I made before😍. don't forget to star this repo if you haven't do it yet👌.

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

Projects

Development

Successfully merging this pull request may close these issues.

✨: Add export PDF after verifying token

2 participants