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

Census Reutilization #241

Open
5 tasks
emmdim opened this issue Oct 5, 2022 · 0 comments
Open
5 tasks

Census Reutilization #241

emmdim opened this issue Oct 5, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@emmdim
Copy link
Member

emmdim commented Oct 5, 2022

Description

As an organization admin, I want to be able to reuse the previous census on the voting process page.

Context

Inside the voting process flow add a component to save the current CSV census and name it. Also, have a dropdown menu with the saved previous census files names.

Store in the local storage the: URI of IPFS and the filename.

Action Points

  • Add a new “Store census” component in the voting flow (the user will be able to choose the census name)
  • Create a new Obejct list attribute in the IndexedDB Entity Accounts (dexie local storage) to store censuses that will contain the following info:
{ 
[censusName:string] : {    //censuName received from the ui
     "censusOrigin": ProcessCensusOrigin // received from GW
     "censusRoot": string  (hex  0x....) // received from GW
    "censusURI": string (i.e. "ipfs://....") // received from GW
   }
]
  • Create Dexie wrappers for census in use-db-accounts.tsx hook (getAccountCensuses, setAccountCensuses)
  • Add a new “Load previous census” component in the voting flow
  • The census file should be stored in the localStorage only if the voting process is created.
@emmdim emmdim added the enhancement New feature or request label Oct 5, 2022
@bearni95 bearni95 mentioned this issue Oct 5, 2022
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant