kodadot / nft-gallery

Generative Art Marketplace
https://kodadot.xyz
MIT License
605 stars 347 forks source link

feat: Mass Minting in drop page #9711

Closed hassnian closed 3 months ago

hassnian commented 3 months ago

PR Type

Context

Needs QA check

CleanShot 2024-03-04 at 13 26 32@2x

Needs Design check

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

Screenshot πŸ“Έ

daiagi commented 3 months ago

https://dev.to/alexanderop/mastering-vue-3-composables-a-comprehensive-style-guide-46p9

yangwao commented 3 months ago

I've fixed that deploys should work against other branches, so prury can test tho

image

netlify[bot] commented 3 months ago

Deploy Preview for koda-canary ready!

Name Link
Latest commit 681e53aed4c8c4d1cdc111897fd95b18171cef11
Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/65f2e13afa46af00083e8290
Deploy Preview https://deploy-preview-9711--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.

yangwao commented 3 months ago

Netlify can't build tho

1:18:40 PM: [error] Nuxt Build Error: [vite:load-fallback] Could not load /opt/build/repo/composables/drop/massmint/useDropMassmintState (imported by components/collection/drop/modal/PaidMint.vue?vue&type=script&setup=true&lang.ts): ENOENT: no such file or directory, open "/opt/build/repo/composables/drop/massmint/useDropMassmintState" 1:18:40 PM:  ELIFECYCLE  Command failed with exit code 1. (https://ntl.fyi/exit-code-1)

hassnian commented 3 months ago

Netlify can't build tho

1:18:40 PM: [error] Nuxt Build Error: [vite:load-fallback] Could not load /opt/build/repo/composables/drop/massmint/useDropMassmintState (imported by components/collection/drop/modal/PaidMint.vue?vue&type=script&setup=true&lang.ts): ENOENT: no such file or directory, open "/opt/build/repo/composables/drop/massmint/useDropMassmintState" 1:18:40 PM:  ELIFECYCLE  Command failed with exit code 1. (https://ntl.fyi/exit-code-1)

deployed https://deploy-preview-9711--koda-canary.netlify.app/

yangwao commented 3 months ago

deployed deploy-preview-9711--koda-canary.netlify.app

yup testing

image image

seems list maybe it's not done yet as I see it's draft PR

image

mints took >1 minute to render when I visited, but probably not scope of this pr

exezbcz commented 3 months ago

minted 3

the same happened (in the mass list there were no items)

after coming back to the drop page

image
yangwao commented 3 months ago

Minor Allowlist bug I have eligible on left, button on right not eligible

image

yangwao commented 3 months ago

okay, trying to battle test it before it goes out, sweet work @hassnian !

image

yangwao commented 3 months ago

Probably add sharing on Farcaster but probably coming once merged I guess as it's on main already

image

yangwao commented 3 months ago

Got hung up on slow rendering arts (as I expected), minor for now https://deploy-preview-9711--koda-canary.netlify.app/ahp/drops/sailwings

Can be done follow up

Details ![image](https://github.com/kodadot/nft-gallery/assets/5887929/16477b76-3fb4-48c7-a3e3-221b04ed52e7) ![image](https://github.com/kodadot/nft-gallery/assets/5887929/deaba104-c712-4c29-99cc-89569645ab90)
prury commented 3 months ago

that preheating error that we were talking about is happening when you cancel the massminting and try again hassnian, i see now

also if i cancel the massmint dialog and try to massmint again the button will not work, but probably a problem coming from refactor, will check

yangwao commented 3 months ago

but probably a problem coming from refactor, will check

thought that refactor should actually solve this?

prury commented 3 months ago

waiting for:

image

yangwao commented 3 months ago

fix(PaidGenerative.vue): empty listing cart

numbering is missing but I guess it's because of something else? image

yangwao commented 3 months ago

waiting for:

mints took >1 minute to render when I visited

yup, but probably outside scope of this one

prury commented 3 months ago

fix(PaidGenerative.vue): empty listing cart

numbering is missing but I guess it's because of something else? ![image](https://private-user-images.githubusercontent.com/

yup, its something else

prury commented 3 months ago

but probably a problem coming from refactor, will check

thought that refactor should actually solve this?

i'm still checking for bugs on the open PR from daiagi, button state got refactored recently there

hassnian commented 3 months ago

@kodadot/internal-dev

https://fxart-beta.kodadot.workers.dev/drops/meadow

returning minted 0

{
    "id": "genmeadow",
    "chain": "ahk",
    "collection": "379",
    "disabled": 0,
    "image": "ipfs://bafkreic7ii2fvo3fhe557pyozhzitkfnhgmxovaebnf3shqmjiva42erb4",
    "name": "MEADOW",
    "banner": "ipfs://bafkreic7ii2fvo3fhe557pyozhzitkfnhgmxovaebnf3shqmjiva42erb4",
    "alias": "meadow",
    "content": "ipfs://bafybeicdv7iu5racra3vsvg2k2uvp2jxvb534h67f6lqdwidhmvzg2tjou",
    "type": "paid",
    "max": null,
    "minted": 0,
    "meta": "20000000000",
    "price": "5000000000",
    "holder_of": null,
    "location": null,
    "start_at": null
}
yangwao commented 3 months ago

Hey @kodadot/internal-dev, is there any critical review from you? Otherwise, I want to have it in tomorrow's release as it was tested with a few people. It looks solid to me.

We can always do post-refactor, yet we want it out, which I believe helps us on the revenue side.

Then drops-refactor can be merged to main

preschian commented 3 months ago

fxart-beta.kodadot.workers.dev/drops/meadow

returning minted 0

related https://github.com/kodadot/private-workers/issues/80

you can use this instead at the moment (afaik until now we still use this) fxart-beta.kodadot.workers.dev/drops/meadow/status

Hey @kodadot/internal-dev, is there any critical review from you?

For now, I'm still unwell today, unable to review, I believe in @prury πŸ™πŸ» Same for this PR https://github.com/kodadot/nft-gallery/pull/9709

I will check tomorrow after it merged πŸ™πŸ»πŸ™πŸ»πŸ™πŸ»

yangwao commented 3 months ago

I'm still unwell today

oh, get well!

yangwao commented 3 months ago

@hassnian let's fix merge conflicts, hopefully nothing much critical, I'm happy to test it afterwards

image

yangwao commented 3 months ago

Once this PR is merged, let's make PR to merge drops-refactor to main

prury commented 3 months ago

noticed that time estimation on listing its not correct, but can be fixed later it resets after some time, like it was estimating the time for each of nfts to be listed

prury commented 3 months ago

mobile needs some small work:

image

prury commented 3 months ago

not being able to type in the amount is on purpose? image

prury commented 3 months ago

i would not merge this PR until the following is solved: 🚫

https://github.com/kodadot/nft-gallery/assets/36627808/5066698b-7562-459d-888d-6273204ac629 only the ones on the right got minted: ![image](https://github.com/kodadot/nft-gallery/assets/36627808/f76391e7-a2de-4ff1-b341-13ce58f3ed84) what happens when two users click barely at the same time: https://github.com/kodadot/nft-gallery/assets/36627808/5c404e22-1ef1-47cd-8633-b861f56219b5
exezbcz commented 3 months ago

mobile needs some small work:

image

we can stack the two if it does not fit

daiagi commented 3 months ago

@hassnian forgot to push maybe?

i don't see your latest changes

hassnian commented 3 months ago

@hassnian forgot to push maybe?

i don't see your latest changes

was planning re-request a review once I was done with all the comments

daiagi commented 3 months ago

was planning re-request a review once I was done with all the comments

you're right. apologies

yangwao commented 3 months ago

Gonna test, if it would be okayish, we are merging and then to the main branch, so @prury have like last 2-3 hours for final checks if something is missing

yangwao commented 3 months ago

works! found something minor, but I guess 409 should not be issue in this case? I've clicked once and then clicked elsewhere so probably that's why.

image | image

yangwao commented 3 months ago

@hassnian let us know when you are good to go, I see you are adjusting something

hassnian commented 3 months ago

@hassnian let us know when you are good to go, I see you are adjusting something

will do

yangwao commented 3 months ago

Mobile does job well too

image

hassnian commented 3 months ago

all @daiagi comments have been solved, should be ok now , checking @prury comments

yangwao commented 3 months ago

How come conflicts surfaced? There was none last 30 minutes. Coming from?

daiagi commented 3 months ago

How come conflicts surfaced? There was none last 30 minutes. Coming from?

yes, because i pulled main into drops-refactor

daiagi commented 3 months ago

@yangwao revert?

merge this into drop-reafctor and then reconcile with main?

it's gonna be a bomb shell

yangwao commented 3 months ago

it's gonna be a bomb shell

I don't think so as if you pulled main -> drops-refactor, this PR shows conflicts between drops-refactor <-> drops-refactor-mass-mint, hope I'm not wrong.

Even I'm aware of

image

yangwao commented 3 months ago

@hassnian still up? very last one batch of merge conflicts. Then I will fly over to test it to make sure it's working.

hassnian commented 3 months ago

@hassnian still up? very last one batch of merge conflicts. Then I will fly over to test it to make sure it's working.

checking

daiagi commented 3 months ago

@hassnian look like some code never got pushed

i got some comments you say fixed but doesn't appear fixed to me

yangwao commented 3 months ago

i got some comments you say fixed but doesn't appear fixed to me

if it's not critical can we resolve in follow up, when this would be merged against main πŸ™ so far mass mint has worked in primary case for me and others. There was some edge cases I've seen

daiagi commented 3 months ago

if it's not critical can we resolve in follow up, when this would be merged against main πŸ™

your wish is my command

yangwao commented 3 months ago

your wish is my command

image

daiagi commented 3 months ago

@yangwao i didn't get the dune reference / joke

guess i need to watch Dune2

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud