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

Enhancement: Add Candidate Prompt or Warning for Election Creation to Prevent Immediate Election Start Without Candidates #73

Open
zain171m opened this issue Oct 17, 2024 · 6 comments

Comments

@zain171m
Copy link

Context:

When creating an election in Agora Blockchain web app, the user is asked to set a start and end date/time but not to add candidates initially. If the user sets the start time to the current time, the election begins immediately, preventing further addition of candidates.

Problem:

I set the election start time to the current time, thinking I could add candidates later. The election started automatically, and I couldn't add any candidates.

Proposed Enhancement:

  • Option 1: Allow users to add candidates during election creation before starting the election.
  • Option 2: Add a warning message if the start time is set to the current time, informing users to add candidates beforehand.

Expected Outcome:

This change would improve the user experience by preventing accidental election starts without candidates.

Suggested Labels:

  • enhancement
  • UX
  • help wanted

Screenshots:

Current Election Creation UI:
image

@shreyam7713
Copy link

Hi @zain171m , I would like to work on this issue. Could you please Assign me this issue.

@Shri1927
Copy link

Hi @zain171m , Can you please assign me this issue

@SachinSaiTej
Copy link

SachinSaiTej commented Oct 30, 2024

Hi @Ronnieraj37, I would like to work on this issue. Could you please assign me this issue.

@Ronnieraj37
Copy link
Contributor

Ronnieraj37 commented Oct 30, 2024

Hey @zain171m Pl add in more details on how you would implement Option 1. Will this include doing it from the blockchain contracts side as well? @shreyam7713 @Shri1927 @SachinSaiTej Please give your reviews as well.

@SachinSaiTej
Copy link

i think we should add a condition to check the number of candidates to be alteast 2 before starting the election. Voting for a single item/member doesnot make any sense as the result will always be unanimous and same.

@zain171m
Copy link
Author

@Ronnieraj37 There could be multiple ways to tackle this issue. We can pass candidates as parameters at the time we create election.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants