-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
buy flow #6596
buy flow #6596
Conversation
✅ Deploy Preview for koda-canary ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
AI-Generated Summary: This pull request introduces changes to enhance the user experience in regards to the process of connecting the wallet and making a purchase in an e-commerce application. More specifically, the changes consist of opening the "confirm purchase" modal once the wallet connection is successfully established. The patch adjusts several Vue.js components, notably the ConnectWalletModal.vue, and useConnectWallet.ts, ShoppingCartModal.vue, the GalleryItemBuy.vue and the ItemsGridImage.vue. It modifies the behavior of the wallet connection event, triggering additional actions upon successful connection, such as closing the modal or proceeding to complete purchase. This helps in streamlining and improving the buying process for users. |
@exezbcz unrelated to this PR. it happens on kodadot.xyz as well |
apply same change, or merge it on your PR |
what is this witchcraft? how is scoped on neoButton style cause this? |
components/gallery/GalleryItemAction/GalleryItemActionType/GalleryItemBuy.vue
Outdated
Show resolved
Hide resolved
yes
that's because you didn't close the modal when it was buggy, and the app state is persistent
I'll make another PR for that. don't want to mix it here |
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.
It would be better if we could reuse this part by a composable.
if (!isLogIn.value) {
openConnectWalletModal(instance, {
onConnect: callback,
closeAfterConnect: true,
})
} else {
callback()
}
Code Climate has analyzed commit 1846c70 and detected 0 issues on this pull request. View more on Code Climate. |
Thanks @Jarsen136 |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
they all work, thanks for the guidance |
pay 50 usd |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type
Needs QA check
Testing
3 relevant places:
shopping cart, Gallery Item page, and explore
clicking buy in these places while not connected should
clicking buy while wallet is connected => just open confirmation modal
@exezbcz
showing the loader spinner on the button and keeping the button visible while the wallet modal is open turned out quite challenging and is not included in this PR.
Context
Did your issue had any of the "$" label on it?
Screenshot 📸
Copilot Summary
🤖 Generated by Copilot at e3c875b
This pull request enhances the user experience of buying items from the gallery by adding a custom
connect
event to theConnectWalletModal.vue
component and using it to open theCompletePurchaseModal.vue
component after connecting the wallet. It also refactors theopenConnectWalletModal
function in theuseConnectWallet.ts
file to accept an optional object with a callback function and a flag to control the modal closing behavior. It updates theShoppingCartModal.vue
andGalleryItemBuy.vue
components to use the modified function and pass the appropriate parameters.🤖 Generated by Copilot at e3c875b