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

Submissions - configuration to filter by default #303

Open
eljeffeg opened this issue Jan 15, 2025 · 6 comments
Open

Submissions - configuration to filter by default #303

eljeffeg opened this issue Jan 15, 2025 · 6 comments
Assignees
Labels
assess We still haven't decided if this will be worked on or not base enhancement New feature or request ui-frontend

Comments

@eljeffeg
Copy link

Is your feature request related to a problem? Please describe.
Most of my users will want to see their submissions, not all submissions. By default, the submissions goes to all submissions. It would be nice to have it default to the user's filter.

Describe the solution you'd like
A default configuration option by the admin (if the default is not filtered), a user defined configuration would be a plus, but not required. When the user clicks submissions, it goes to their submissions. Plus would be if the show my submissions icon was a toggle that stated show all submissions when it was filtered.

Describe alternatives you've considered
None

@eljeffeg eljeffeg added assess We still haven't decided if this will be worked on or not enhancement New feature or request labels Jan 15, 2025
@cccs-rs
Copy link
Contributor

cccs-rs commented Jan 16, 2025

We could introduce a preference in the user_settings that users can configure individually to filter to their submissions automatically when going to the Submissions page (the default setting should maintain the status quo).

Optionally, we can change the button to toggle between showing all submissions or only those belonging to the current user (this would involve alternating the tooltip and iconography to make this toggling obvious for the button)

@cccs-rs
Copy link
Contributor

cccs-rs commented Jan 16, 2025

Optionally, we can change the button to toggle between showing all submissions or only those belonging to the current user (this would involve alternating the tooltip and iconography to make this toggling obvious for the button)

We could provide this toggling function to the other buttons as well (show completed, show malicious) for filtering as it would appear you could combine filters together by clicking them all.

@cccs-nr
Copy link
Contributor

cccs-nr commented Jan 16, 2025

Sounds good !

We could add another Interface option for users to have their submissions shown by default on the Submissions page. The "Show my submissions" button could be a toggle where the tooltip would change between show my submissions and show all submissions.

@cccs-nr
Copy link
Contributor

cccs-nr commented Jan 20, 2025

Counter proposal:

Would you be interested in having a "continue where I left off" feature where I would save the latest query in the browser's local storage and load that every time you open the Submission page ? That would save me from adding all the interface configuration.

The default query would still be the same as now and users will have to click the Show my submission button (which I can make it into a toggle).

@eljeffeg
Copy link
Author

eljeffeg commented Jan 21, 2025

I'm a little concerned that the filter / icons may not be obvious and that the behavior might not be expected to retain filters. What about a ui: filter_on_user: true configuration option that adds ?filters=params.submitter%3A"user" to the left-hand menu Submissions button /submissions url? And the toggle feature..

@cccs-nr
Copy link
Contributor

cccs-nr commented Jan 21, 2025

Ok, there's currently a patch in progress for the configuration. I'll wait for that one to be completed and then I'll add the new configuration option for the submission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assess We still haven't decided if this will be worked on or not base enhancement New feature or request ui-frontend
Projects
None yet
Development

No branches or pull requests

3 participants