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

refactor: adjust hash for metadata #10148

Merged
merged 9 commits into from May 27, 2024
Merged

refactor: adjust hash for metadata #10148

merged 9 commits into from May 27, 2024

Conversation

preschian
Copy link
Member

@preschian preschian commented Apr 25, 2024

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

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

PR Type

  • Bugfix

Context

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

Copy link

netlify bot commented Apr 25, 2024

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit 4739d67
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/66548c0fb058db00083f4551
😎 Deploy Preview https://deploy-preview-10148--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.

@preschian preschian marked this pull request as ready for review April 25, 2024 19:30
@preschian preschian requested a review from a team as a code owner April 25, 2024 19:30
@preschian preschian requested review from Jarsen136, hassnian and prury and removed request for a team April 25, 2024 19:30
Copy link
Contributor

@hassnian hassnian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. PaidMint.vue missing close emit
  2. HolderOfGenerative.vue also needs to be updated like PaidGenerative.vue did

@prury prury added the S-changes-requested-🤞 PR is almost good to go, just some fine tunning label Apr 29, 2024
@prury
Copy link
Member

prury commented May 22, 2024

what about this one?

@preschian
Copy link
Member Author

Oh, sorry, I missed the notification about this. will update

…rt.ts

* refactor: rename updateMetadata to submitMetadata in useGenerativeDropMint.ts
* fix: remove hash property from object in useDropMassMint.ts
Copy link

cloudflare-pages bot commented May 23, 2024

Deploying koda-art-prod with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4739d67
Status: ✅  Deploy successful!
Preview URL: https://43a947fd.kodaart-production.pages.dev
Branch Preview URL: https://fix-reload-on-drops.kodaart-production.pages.dev

View logs

@preschian preschian changed the title fix: reload on drops refactor: adjust hash for metadata May 23, 2024
@preschian
Copy link
Member Author

  1. PaidMint.vue missing close emit
  2. HolderOfGenerative.vue also needs to be updated like PaidGenerative.vue did

Updated description: I slightly changed the PR.

  • I reverted the PaidMint.vue; it turns out I got a random reload on a random page, not just a drops page.
  • CollectionDropModalPaidMint on HolderOfGenerative.vue seems like already the same with PaidGenerative.vue

* feat(locales/en.json): change 'createNewVariation' string to 'Preview Iteration'
@Jarsen136
Copy link
Contributor

This PR removes the hash while minting the drop. It means the preview image on the drop page would not be the same as the item he minted finally. There should be something else needs to be implemented on the image preview component. Correct me if I'm wrong.

@preschian
Copy link
Member Author

preschian commented May 23, 2024

This PR removes the hash while minting the drop. It means the preview image on the drop page would not be the same as the item he minted finally. There should be something else needs to be implemented on the image preview component. Correct me if I'm wrong.

Correct 👍🏻
I think we can simplify the "Mint Drop" modal. It would reduce some of the code, and the user would not need to wait for the preview to render (especially for massmint).

I am planning to do that in a separate branch (branching from this: #10336)

@Jarsen136
Copy link
Contributor

This PR removes the hash while minting the drop. It means the preview image on the drop page would not be the same as the item he minted finally. There should be something else needs to be implemented on the image preview component. Correct me if I'm wrong.

Correct 👍🏻 I think we can simplify the "Mint Drop" modal. It would reduce some of the code, and the user would not need to wait for the preview to render (especially for massmint).

I am planning to do that in a separate branch (branching from this: #10336)

Great! Let's leave it to separate PR.

@prury
Copy link
Member

prury commented May 24, 2024

i understand that we still got to adjust the modal flow after that change, but the nft i minted using this PR has no image:

https://deploy-preview-10148--koda-canary.netlify.app/ahk/gallery/379-2405285173

Screencast.from.2024-05-24.11-02-42.webm

EDIT: never mind, problem comes from fxart

locales/en.json Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented May 27, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

codeclimate bot commented May 27, 2024

Code Climate has analyzed commit 4739d67 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2

View more on Code Climate.

@prury
Copy link
Member

prury commented May 27, 2024

i don't think its working properly @preschian

Screencast.from.2024-05-27.11-03-20.webm

its generating images without sn or proper variation:
(the one that worked is from canary)

image

@preschian
Copy link
Member Author

its generating images without sn or proper variation:
(the one that worked is from canary)

Need to wait it for a moment. Currently, the blockchain itself is unable to mint and set metadata at the same time. Currently, we solve it by updating the metadata (image preview, name, sn, animationUrl, etc.) synchronously. refer: https://github.com/kodadot/private-workers/issues/87#issuecomment-2006716343

Screenshot 2024-05-27 at 21 18 33

@prury
Copy link
Member

prury commented May 27, 2024

its generating images without sn or proper variation:
(the one that worked is from canary)

Need to wait it for a moment. Currently, the blockchain itself is unable to mint and set metadata at the same time. Currently, we solve it by updating the metadata (image preview, name, sn, animationUrl, etc.) synchronously.

oh, cool, ok!

@prury prury removed S-changes-requested-🤞 PR is almost good to go, just some fine tunning waiting-for-review labels May 27, 2024
@prury prury added this pull request to the merge queue May 27, 2024
Merged via the queue into main with commit 88704d5 May 27, 2024
19 of 20 checks passed
@prury prury deleted the fix/reload-on-drops branch May 27, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants