-
Notifications
You must be signed in to change notification settings - Fork 1
Add Request to Pay / Mint button #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a Request to Pay feature for an e-bill, allowing users to initiate a mint request via a new button in the quote page. Key changes include adding the new mutation and state handling for the mint request, updating the QuoteActions component to handle the new ebillPaid flag, and displaying additional bill details in the quotes table.
Comments suppressed due to low confidence (1)
src/pages/quotes/QuotePage.tsx:494
- [nitpick] Ensure the button's label reflects the feature's intent consistently; if 'Request to Pay' is chosen over the internal 'request to mint' naming, consider documenting the naming decision for clarity.
Request to Pay {requestToMintMutation.isPending && <LoaderIcon className="stroke-1 animate-spin" />}
src/pages/quotes/QuotePage.tsx
Outdated
| }, | ||
| throwOnError: true, | ||
| }) | ||
| console.log(data) |
Copilot
AI
Jun 30, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Remove or replace the console.log statement if it is no longer needed for debugging to keep production code clean.
| console.log(data) |
src/pages/quotes/QuotePage.tsx
Outdated
| }, | ||
| onSuccess: (data) => { | ||
| toast.success("Payment request has been created.") | ||
| console.log(data) |
Copilot
AI
Jun 30, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider removing this console.log once debugging is complete to avoid cluttering production logs.
| console.log(data) |
|
You are nearing your monthly Qodo Merge usage quota. For more information, please visit here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
|
You are nearing your monthly Qodo Merge usage quota. For more information, please visit here. PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
Deploying wildcat-dashboard with
|
| Latest commit: |
7a87463
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://484fd8dc.wildcat-dashboard.pages.dev |
| Branch Preview URL: | https://stefan-requestmint.wildcat-dashboard.pages.dev |
zupzup
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
| * Request Mint | ||
| */ | ||
|
|
||
| // pub struct RequestToMintFromEBillRequest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed
| }, | ||
| onError: (error) => { | ||
| toast.error("Error while requesting to pay") | ||
| console.warn(error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a leftover? Seems a bit unnecessary, since the error can be checked in dev tools
📝 Description
Add request to pay an ebill button.
Caveats:
Notes
request_to_mint_from_ebill. Here we called it request to pay, however we can rename it to the original if its argued to be less ambiguous.📸 Screenshots/Screen record (if applicable)
✅ Checklist
Please ensure the following tasks are completed before requesting a review:
npm run lintor the equivalent linting command.