export PDF after verifying token#150
Conversation
|
@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. |
|
hey @daviddprtma i fixed my assigned issue #41 but the PR assignee workflow is 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 👌 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
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👌. |
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