IntersectMBO / govtool

🔩 GovTool and utilities monorepo.
https://preview.gov.tools
Apache License 2.0
10 stars 7 forks source link

Repack the voting components into Voting pillar #984

Open MSzalowski opened 4 months ago

MSzalowski commented 4 months ago

Description

In order to achieve the separation of concerns and to allow multiple teams to work across the sub-packages of the GovTool ecosystem. Repack all the voting components into voting pillar.

What

Repack the voting module (components & logic) into the voting pillar.

How

  1. Investigate and group components and modules responsible for Voting.
  2. Under the govtool monorepo create pillar voting (package named - govtool-voting)
  3. Migrate voting components into the pillar. a) During the migration - get rid of the shared logic (if possible) and replace it with the props. b) During the migration - get rid of the local state (if possible) in order to support SSR
  4. Handle compiling of ts code to support commonjs modules (using TSUP or just tsc at the beginning).
  5. Every component wallet logic should be extracted from the components itself and should be controlled by the wrapper wallet provider.
MSzalowski commented 2 months ago

To be done in a new scope