vocdoni / developer-portal

Documentation about the Vocdoni API, SDK and more
GNU Affero General Public License v3.0
1 stars 3 forks source link

Document multichoice elections #136

Closed selankon closed 2 weeks ago

selankon commented 1 month ago

This are different from the approval ones, and are typed and supported on the sdk and the ui components, but not documented anywhere on the developer portal:

https://developer.vocdoni.io/sdk/integration-details/voting-types

selankon commented 1 month ago

After talk with @elboletaire we agreed on how the voting package have to be interpreted:

image

For this image the resulting voting package is:

[3, 2, 0, 4]: option 3 selected, option 2 selectied, option 0 selected and option 4 selected.

On this case, option 4th is an abstain. Is not shown here but the election accepts abstention that are options added on the election that are not represented on the Ui design

elboletaire commented 1 month ago

It's quite obvious the vote envelope is not always showing the options properly sorted, kindly reminder to sort them when making the new results component :)

selankon commented 1 month ago

When documenting this, take a look to this comment also https://github.com/vocdoni/explorer/issues/91#issuecomment-2272944148 to check if is interesting to add this info somehwere on the dev portal.

Provably won't be needed (the vote packages are well documented on each election type)

elboletaire commented 2 weeks ago

Superseeded by #140