Skip to content
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

feat: confirmation modal for mint #7241

Merged
merged 50 commits into from
Oct 10, 2023

Conversation

xiiiAtCn
Copy link
Contributor

@xiiiAtCn xiiiAtCn commented Sep 11, 2023

PR Type

  • Bugfix
  • Feature
  • Refactoring

Context

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

Community participation

Screenshot 📸

Copilot Summary

🤖 Generated by Copilot at ff3ebfe

This pull request adds confirmation modals for minting collections and tokens in the create section of the NFT gallery. It also adds new components and translation keys to display the minting information and fees. The files affected are CreateCollection.vue, CreateToken.vue, en.json, ConfirmMintItem.vue, MintConfirmModal.vue, and PriceItem.vue.

🤖 Generated by Copilot at ff3ebfe

Sing, O Muse, of the crafty code that the heroes wrought
To mint the shining tokens of their skill and art,
With ConfirmMintItem.vue and MintConfirmModal.vue they brought
The fee and image of each NFT to the user's heart.

@kodabot
Copy link
Collaborator

kodabot commented Sep 11, 2023

SUCCESS @xiiiAtCn PR for issue #7169 which is assigned to you. Please wait for review and don't hesitate to grab another issue in the meantime!

@netlify
Copy link

netlify bot commented Sep 11, 2023

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit aa62e8a
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/6523e6d20ad3860008bc4784
😎 Deploy Preview https://deploy-preview-7241--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.

@reviewpad
Copy link
Contributor

reviewpad bot commented Sep 11, 2023

AI-Generated Summary: This pull request introduces a significant number of changes centered around the creation of new Vue components and the modification of existing ones. These new components ConfirmMintItem.vue, CreateCollection.vue, MintConfirmModal.vue, PriceItem.vue are related to minting process improvements, and handling the modal layout of certain user actions. Changes made in CreateToken.vue and locales/en.json provide additional functionalities and translations for different operations related to minting. Additionally, the patch shows the creation of multiple Vue templates with associated scripts and styles. The changes made in CreateCollection.vue and CreateToken.vue integrate the new components into the process of creating a collection and token respectively. The important modification made is enabling the confirmation of mint in the components. The MintConfirmModal.vue and PriceItem.vue components get updated with new functionalities and UI improvements. The update includes adding information about currency used in respective components, adding clickable chevrons for better UI/UX, handling the display of fees on the basis of certain conditions, and adding information icons for explaining certain functionalities.

@reviewpad reviewpad bot added the large Pull request is large label Sep 11, 2023
@exezbcz
Copy link
Member

exezbcz commented Sep 15, 2023

hello, will leave the majority of the review for devs. Few bits from me:

  • make the whole text with the dropdown clickable, plus the cursor pointer
image
  • tooltip should popup when you hover over the text as well - making the area bigger
image

@xiiiAtCn
Copy link
Contributor Author

  • make the whole text with the dropdown clickable, plus the cursor pointer
  • tooltip should popup when you hover over the text as well - making the area bigger

okay. Work almost done.
Understanding these fees cost much time for a newbie

@exezbcz
Copy link
Member

exezbcz commented Sep 15, 2023

  • make the whole text with the dropdown clickable, plus the cursor pointer
  • tooltip should popup when you hover over the text as well - making the area bigger

okay. Work almost done.
Understanding these fees cost much time for a newbie

Yeah but at least he finally knows what is he paying and what is required

@xiiiAtCn
Copy link
Contributor Author

Yeah but at least he finally knows what is he paying and what is required

Can't agree more. Cause I'm the one😃

@xiiiAtCn xiiiAtCn marked this pull request as ready for review September 18, 2023 10:24
@yangwao
Copy link
Member

yangwao commented Oct 9, 2023

Thank you for your work @xiiiAtCn, sending at least some fair payout
pay 50 usd

Seems @xiiiAtCn is MIA
Can you @preschian please take over, resolve conflicts and merge it?
Thanks

@yangwao
Copy link
Member

yangwao commented Oct 9, 2023

😍 Perfect, I’ve sent the payout
💵 $50 @ 3.86 USD/DOT ~ 12.953 $DOT
🧗 12jXHf7yYF4wTRjDPbwFB24V1nVRPRkuU2S8Ke5ZWTfvyBGW
🔗 0x384530c0fa22e20ea256fae4c39ea437711a58b88233a9fb107a52eb4eb8f3ad

🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues

@yangwao yangwao added the paid pull-request has been paid label Oct 9, 2023
*
* The following components have been removed:
* - components/bsx/Create/CreateToken.vue
* - components/rmrk/Create/CreateToken.vue
* - components/stmn/Create/CreateToken.vue
* feat(CreateNft.vue): add support for process.env.PORT environment variable
* chore(CreateNft.vue): remove unused import in CreateNft.vue
* feat(CreateNft.vue): add logic for creating and listing NFTs
* feat(CreateNft.vue): add logic for getting NFT ID
…t above MintConfirmModal component

* chore(CreateNft.vue): rearrange code to move Loader component above MintConfirmModal component
* refactor(CommonTokenMoney.vue): Remove unused imports and variables
… and displayUnit

* fix(Money.vue): fix formatting of finalValue in round function
…and PriceItem.vue to the Confirm directory

* fix(confirm): fix import paths in CreateCollection.vue and CreateNft.vue
* feat(confirm): add toggleConfirm function to toggle the confirmation modal
* feat(confirm): update createNft function to toggle the confirmation modal
@codeclimate
Copy link

codeclimate bot commented Oct 9, 2023

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

View more on Code Climate.

@preschian preschian requested review from prury and exezbcz October 9, 2023 11:50
@prury prury removed the S-changes-requested-🤞 PR is almost good to go, just some fine tunning label Oct 9, 2023
@prury
Copy link
Member

prury commented Oct 9, 2023

On KusamaHub it says that i don't have enough to mint, even though i have:
image

same for Kusama, i believe its related to mint settings, since deactivating koda mint costs lets me proceed with the transaction

@prury prury added the S-changes-requested-🤞 PR is almost good to go, just some fine tunning label Oct 9, 2023
@preschian preschian changed the base branch from main to nuxt October 10, 2023 04:16
@netlify
Copy link

netlify bot commented Oct 10, 2023

Deploy Preview for nuxt-kodadot ready!

Name Link
🔨 Latest commit 5531657
🔍 Latest deploy log https://app.netlify.com/sites/nuxt-kodadot/deploys/65251fafdab2f7000891d599
😎 Deploy Preview https://deploy-preview-7241--nuxt-kodadot.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.

@preschian
Copy link
Member

On KusamaHub it says that i don't have enough to mint, even though i have:
same for Kusama, i believe its related to mint settings, since deactivating koda mint costs lets me proceed with the transaction

updated

@exezbcz
Copy link
Member

exezbcz commented Oct 10, 2023

Should it not be "on" Kusama hub?

image

otherwise works for me! thanks for completing

* fix(en.json): update "notEnoughFund" message to include the platform name
* fix(en.json): fix typo in "existing" key
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@yangwao yangwao merged commit 8dda3f9 into kodadot:nuxt Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
large Pull request is large paid pull-request has been paid S-changes-requested-🤞 PR is almost good to go, just some fine tunning waiting-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Confirmation modal for minting and small things
9 participants