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

Voting wizard multiple choice UX #2790

Open
grctest opened this issue Jan 25, 2025 · 0 comments
Open

Voting wizard multiple choice UX #2790

grctest opened this issue Jan 25, 2025 · 0 comments
Assignees
Milestone

Comments

@grctest
Copy link
Contributor

grctest commented Jan 25, 2025

Feature Request

Describe the Feature Request

The Gridcoin core enforces a limit of 20 poll options in a multiple-choice poll:

constexpr size_t POLL_MAX_CHOICES_SIZE = 20;

The Gridcoin wallet create poll wizard lets you add more than 20 poll options, potentially resulting in invalid polls being rejected by the network.

The feature request is to apply the poll option limit of 20 in the UI.

Describe Preferred Solution

Disabling the + button once 20 options have been added to the list of choices.

Alternatively applying a max length of 20 check within the addChoiceButton function.

Describe Alternatives

Gridcoin wiki update: Document that there's a max of 20 multiple choice questions in a poll.

Related Code

constexpr size_t POLL_MAX_CHOICES_SIZE = 20;

connect(ui->addChoiceButton, &QAbstractButton::clicked, this, [=]() {

https://github.com/gridcoin-community/Gridcoin-Research/blob/c9f3674f0abd92bbbe9c399065051db28a5f85ea/src/qt/forms/voting/pollwizarddetailspage.ui#L290C49-L290C64

Additional Context

The wizard lets you add hundreds of poll options

@jamescowens jamescowens self-assigned this Jan 28, 2025
@jamescowens jamescowens added this to the Natasha milestone Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants