-
Notifications
You must be signed in to change notification settings - Fork 621
[TOOL-4175] Dashboard: Add buy listing button in listing drawer in marketplace #6757
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
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6757 +/- ##
==========================================
- Coverage 55.19% 55.17% -0.02%
==========================================
Files 896 896
Lines 56921 56921
Branches 3944 3942 -2
==========================================
- Hits 31416 31407 -9
- Misses 25409 25418 +9
Partials 96 96
🚀 New features to boost your workflow:
|
Merge activity
|
…rketplace (#6757) <!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the `ListingDrawer` component by integrating the `BuyDirectListingButton`, allowing users to buy listings directly from the dashboard. ### Detailed summary - Updated documentation for `BuyDirectListingButton` in `index.tsx`. - Imported `BuyDirectListingButton` in `listing-drawer.tsx`. - Removed a TODO comment regarding the Buy button. - Added the `BuyDirectListingButton` with props for listing purchase, including error and success handling. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
2bab097 to
9e27bb5
Compare
…rketplace (#6757) <!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces the `BuyDirectListingButton` component into the `ListingDrawer` component, enhancing the marketplace functionality by allowing users to buy listings directly. It also updates documentation and adds error handling for the transaction process. ### Detailed summary - Updated documentation for the `BuyDirectListingButton` to specify `BuyDirectListingButtonProps`. - Imported `BuyDirectListingButton` in `listing-drawer.tsx`. - Implemented the `BuyDirectListingButton` in the `ListingDrawer` component. - Added error and success toast notifications for transaction outcomes. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
9e27bb5 to
24319f4
Compare

PR-Codex overview
This PR introduces the
BuyDirectListingButtoncomponent to theListingDrawer, enabling users to buy listings directly. It updates the documentation and integrates error handling and success notifications usingtoast.Detailed summary
BuyDirectListingButtonto specify its props.BuyDirectListingButtoninlisting-drawer.tsx.BuyDirectListingButtonto render when the listing is active and not owned by the user.toast.