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

Drops v1.99 #9575

Open
5 of 7 tasks
vikiival opened this issue Feb 28, 2024 · 6 comments
Open
5 of 7 tasks

Drops v1.99 #9575

vikiival opened this issue Feb 28, 2024 · 6 comments
Labels
$ ~<50usd A-drop-page issues related to drop page A-refactoring Refactoring stuff, make code more readable, mitigating tech debt chief intern tasks intended for internal team p1 preventing everyone from using app

Comments

@vikiival
Copy link
Member

vikiival commented Feb 28, 2024

Context

Drop page is popular way how to use KodaDot.
It works ok, but I believe we can make it awesome.
Most bugs yet stems from the technical debt as it was done via the code-as-you-go approach.
So we have a quite a complex code and refactoring would solve 80% already created bugs.

8hczrr

This issue is a successor of - #9562

Architecture.

It works based on ticket assignment as you are @kodadot/internal-dev I highly recommend to read - https://github.com/kodadot/private-workers/issues/42 if something is unclear just let us know in the issue

Frontend

Screenshot 2024-02-28 at 09 56 58

As you can see in the image above - appart from the layout there are 4 main Islands

  1. Cyan - General - name, desc, and creator - this is loaded from the indexer
  2. Red - Generator engine - handles the content - and emits image and hash to the main component
  3. Purple - Requisites - coming from DB + from indexer - emits eligibility (boolean)
  4. Green - Mint handler - gets all data, initiate minting process - modal emitting, and correct flow

Tasks

Refactor Tasks

after #9620 is merged

@vikiival vikiival added p1 preventing everyone from using app chief A-drop-page issues related to drop page intern tasks intended for internal team A-refactoring Refactoring stuff, make code more readable, mitigating tech debt labels Feb 28, 2024
@exezbcz
Copy link
Member

exezbcz commented Mar 1, 2024

and what about this one?

is there any plan of refactoring?

@daiagi
Copy link
Contributor

daiagi commented Mar 3, 2024

is there any plan of refactoring?

yes i'm working on it

@preschian
Copy link
Member

@daiagi can we use toggle features for this? Add some key here: https://github.com/kodadot/nft-gallery/blob/main/composables/useExperiments.ts. to avoid very big diff in one PR

As you can see in the image above - appart from the layout there are 4 main Islands

  1. Cyan - General - name, desc, and creator - this is loaded from the indexer
  2. Red - Generator engine - handles the content - and emits image and hash to the main component
  3. Purple - Requisites - coming from DB + from indexer - emits eligibility (boolean)
  4. Green - Mint handler - gets all data, initiate minting process - modal emitting, and correct flow

then, we can open separate PRs based on this

@daiagi
Copy link
Contributor

daiagi commented Mar 4, 2024

hi @preschian

so my plan is to have PR's against drops-refactor branch
where we would be able to test with help of @prury until all bugs are resolved and stabilized
only then we merge into main

that's same as what we did with nuxt3 refactor

it's almost impossible not to do the initial refactor in one big step, since all drops components are very tightly coupled together and my goal is exactly to uncouple them

after this big initial step, we will continue to have smaller PR's to refactor and fix bugs the popped up

@daiagi
Copy link
Contributor

daiagi commented Mar 6, 2024

Refactor Tasks

after #9620 is merged

PR's against https://github.com/kodadot/nft-gallery/tree/drops-refactor branch

@prury
Copy link
Member

prury commented Mar 12, 2024

@yangwao yangwao pinned this issue Mar 13, 2024
@yangwao yangwao added the $ ~<50usd label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
$ ~<50usd A-drop-page issues related to drop page A-refactoring Refactoring stuff, make code more readable, mitigating tech debt chief intern tasks intended for internal team p1 preventing everyone from using app
Projects
None yet
Development

No branches or pull requests

6 participants