GeneralMagicio / GeneralMagicio/pairwise-rf6
Update ballot flow
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
As a badgeholder and as a guest voter, I want to be able to update my ballot on the official voting app UI.
### Design
https://www.figma.com/design/tP7Arb2C8aDB05wCVxVVSB/Pairwise-RF6--%3E-Voting-App?node-id=1175-36554&t=YULRHcxIjN0cH8Gc-4
### Acceptance Criteria
- [x] Making sure the user is signed in with Agora SIWE and has the token, the user did it when connecting to the app in the first place, but if it's missing now by any chance, we have to ask for sign-in again.
- [x] making sure the category that has been assigned to the user (decoded from Agora JWT token) has `voted` status. if not showing the `Connot update ballot` with [this copy in the design](https://www.figma.com/design/tP7Arb2C8aDB05wCVxVVSB/Pairwise-RF6--%3E-Voting-App?node-id=1175-36670&t=YULRHcxIjN0cH8Gc-4)
- [x] making sure the update was successful in the Agora Voting App when we show the success modal.
- [x] In the success modal, by clicking on `Send feedback` we will open a Google form link. #22 - Here is the link: https://docs.google.com/forms/d/1n3Dwq2WoPTX8vtsGT_GQ2FsyQ6TIUabXJgYsYzVUK4o/edit
- [x] If the user encounters a problem by updating the ballot, we show the `update ballot error` modal and report an issue will open a new tab to create a new issue [with this template. ](https://github.com/GeneralMagicio/pairwise-rf6/issues/new?assignees=MoeNick&labels=P0&projects=&template=report-error-on-updating-ballot.md&title=%5BError+updating+ballot%5D+)
- [x] Loading modal should be shown when submitting.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.