nft-gallery icon indicating copy to clipboard operation
nft-gallery copied to clipboard

feat: Control return to confirm action

Open Jarsen136 opened this issue 9 months ago • 6 comments

Thank you for your contribution to the Koda - Generative Art Marketplace.

👇 __ Let's make a quick check before the contribution.

PR Type

  • [x] Feature

Needs Design check

  • @exezbcz please review

Needs QA check

  • @kodadot/qa-guild please review

Context

  • [x] Closes #10213

Did your issue had any of the "$" label on it?

Screenshot 📸

  • [ ] My fix has changed something on UI; a screenshot is best to understand changes for others.

Jarsen136 avatar May 15 '24 13:05 Jarsen136

Deploy Preview for koda-canary ready!

Name Link
Latest commit 23f5674fc2a32728673456e560d194518f6829cf
Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/664a84534d38270008df12a6
Deploy Preview https://deploy-preview-10306--koda-canary.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar May 15 '24 13:05 netlify[bot]

bug or a feature :)

probably we should only allow that shortcut if the transaction has not started CleanShot.2024-05-16.at.17.18.47.mp4

can useMagicKeys combinations give you a cleaner solution?

thank you very much for checking it @hassnian

prury avatar May 16 '24 17:05 prury

bug or a feature :)

probably we should only allow that shortcut if the transaction has not started

can useMagicKeys combinations give you a cleaner solution?

Thank you! I have updated it.

Jarsen136 avatar May 16 '24 21:05 Jarsen136

What should be the correct behavior? working only for confirmation buttons on modals or also for trying again when a transaction is cancelled/fails?

Transfer: doesn't work on confirmation button prob because it uses a different modal Teleport bridge: works on try again Drop: works on modal and on try again Create NFT/Collection: won't proceed to signing if you hit it once, i think it's a focus issue, doesn't work on try again Buy Now: works for signing but doesn't for try again Listing: works for signing but doesn't for try again

prury avatar May 17 '24 12:05 prury

Code Climate has analyzed commit 23f5674f and detected 0 issues on this pull request.

View more on Code Climate.

codeclimate[bot] avatar May 19 '24 22:05 codeclimate[bot]

What should be the correct behavior? working only for confirmation buttons on modals or also for trying again when a transaction is cancelled/fails?

I prefer it only works for confirmation buttons on modal.

Transfer: doesn't work on confirmation button prob because it uses a different modal

Yup, it's a separate modal. However, I have also made the transfer confirm modal work with the shortcut. Now it should work as the others.

Teleport bridge: works on try again Drop: works on modal and on try again Create NFT/Collection: won't proceed to signing if you hit it once, i think it's a focus issue, doesn't work on try again Buy Now: works for signing but doesn't for try again Listing: works for signing but doesn't for try again

Only applying to the confirm button should be enough. I can't manage to go to the page with "try again" button after I cancel the transaction request. It keeps loading all the time. I would leave it to another follow-up issue if anyone else could reproduce it and fix it.

Kapture 2024-05-20 at 01 03 48

Jarsen136 avatar May 19 '24 23:05 Jarsen136

modal animation is gone

this pr

https://github.com/kodadot/nft-gallery/assets/44554284/ae5ba16f-7caf-46b3-92eb-530a476c1787

canary

https://github.com/kodadot/nft-gallery/assets/44554284/19daf17d-7c40-4b31-9da0-648cef8340de

hassnian avatar May 20 '24 12:05 hassnian