Skip to content

See all the elections #6266

@carolromero

Description

@carolromero

ref: S-US.08 (NEW)

As a visitor when I go to an Elections component I want to see all the elections. I want to also filter by the different moments of a all the Elections:

  1. Finished: If the election has already passed
  2. Upcoming: If the election has not started
  3. Active: If the election has started
    As we already implement some mechanisms pretty similar on Decidim, we should implement that on these cases, specially for having consistency and having better usability. See examples on Meetings.

One thing that we're going to try that isn't developed on other spaces / components is to redirect when there's only one Election, as it doesn't make sense to have filtering/sorting/searching when there's only one element.

imatge

Acceptance criteria

  • As a visitor I can search by name on Elections
  • As a visitor I can sort by Recent on Elections
  • As a visitor I can sort by Older on Elections
  • As a visitor I can control how many results per page I can see on Elections
  • As a visitor I can filter by Ongoing elections
  • As a visitor I can filter by Finished elections
  • As a visitor I can filter by Upcoming elections
  • As a visitor I can filter see all the elections
  • Given that I'm a visitor
    When there's only one Election
    Then I get redirected to that Election.
  • Given that I'm a visitor
    When there are not upcoming nor active elections
    Then I see an alert of "Currently, there are no scheduled elections, but here you can find all the past elections listed." (like on Meetings).

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions