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

List active ballots for voter #8

Open
7 tasks
dpausp opened this issue Jun 23, 2023 · 2 comments
Open
7 tasks

List active ballots for voter #8

dpausp opened this issue Jun 23, 2023 · 2 comments
Labels

Comments

@dpausp
Copy link
Member

dpausp commented Jun 23, 2023

As a voter, I want to see on the index page all ballots which I can currently vote on and for how long this will be possible.

The voter has to have one of the roles required by the ballot and the ballot must be active.
Ballots are active when the current time is between start and end time of a ballot and the ballot has not been cancelled.

--
The voter sees a ballot in this list, if:

  • the ballot is active
    • current time between start and end time of ballot
      • adapt ballots query
    • not cancelled
      • create new table column "canceled_at" (type DateTime) and adapt test db
  • the voter has one of the roles required by the ballot
    • class EkklesiaAuthData.roles -- see ekklesia-portal
@dpausp dpausp added the UX label Jun 23, 2023
@sunkup
Copy link

sunkup commented Jul 7, 2023

I think we should not show the ballots on the index page, but rather some general / relevant information and the login button. So we show the index page to users which are not logged in / have logged out. After logging in, the user can be redirected to "/ballots" automatically, but the "index" and "ballots" pages should be available in the menu.

@dpausp
Copy link
Member Author

dpausp commented Jul 10, 2023

Sounds good, let's do that :)

@sunkup sunkup removed their assignment Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants