nextcloud / nextcloud/polls

UI Proposal for participants: Sort/Group Participants by selected option

Open
#4,135 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

new
Dominant language
JavaScript
Stars
284
Forks
91
Avg merge
4d 3h
Merged PRs (30d)
50

Description

⚠️ This issue respects the following points: ⚠️
Describe the goal you'd like to achieve

As a poll participant, I want to easily get an overview about who has voted for what, because helps to select the accepted option (in case of a par, one participant might be more important) or to contact other people that voted for the same option.

Describe possible solutions

Sort/Group Participants by selected option

In the table view, when I want to see all participants that voted for Option A, the only way to do that is to scroll through the complete list and check manually. Depending on the order in which the participants voted, only the first and last user could have voted for option A, all others for option B, making it necessary to scroll to the very bottom.
I propose that clicking on the Option text "A" sorts the participants like this:

  1. current user
  2. users that voted for option A, in the order of participation
  3. users that voted "maybe" for option A, in the order of participation
  4. users that did not vote for option A, in the order of participation

second click sorts "reversed", i.e. 2-4. are reversed. Third click resets to default sorting. A small triangle up/down icon can indicate the sorting.

Additional context

This functionality has already been implemented for poll owners in #3988 - many thanks for this again!
This issue here asks for the feature to be made also available to poll participants.

Split from #3322 as follow-up for more fine-grained tracking.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the participant table and the owner implementation referenced in #3988. Verify how participant voting states are represented, then implement the requested option-column sorting and confirm that repeated clicks cycle through ascending, descending, and default order while keeping the current user first.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.