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

Added Sort Performers by Last O At / Last Played At / Play Count and Added Filter Performers by Play Count. Changes to display O Count rather than O-Counter for better consistency. Grammar fixes for 'Interactive Speed' and 'pHash'. #4649

Merged

Conversation

randemgame
Copy link
Contributor

This pull request adds the option to sort (and filter) the performer page by recent activity, which can provide interesting and more dynamic arrangements compared to the static values such as height. I first added options to sort them by Last O At and Last Played At, to compliment the same set of options now available in scenes.

While I could filter the 'Last O At' performers with an 'O Count Greater than Zero' to better sort the results by ascending/descending, it was not possible to do the same with the 'Last Played At' performers, so I felt it necessary to include the option to filter performers by Play Count as well.

The only thing still missing from these additions, taking advantage of the full parity between the new Play/O date data, was the option to sort Performers by Play Count so I've added that as well. As users build up more of a long-term view/o-history the benefits of these additional sorts and filters should become clear.

The O-Counter text has been changed to 'O Count', as it makes for far more legibility and coherence if it matches the other sort and filter options it is placed alongside, like Gallery Count, Image Count, Play Count, Scene Count, Tag Count, File Count and Performer Count. I kept the O-Counter hover text for the literal O-Counter button but have changed it first in the sort/filter then where I could additionally find it, in two list tables and the merge scene dialogue.

Finally, I had to fix a couple of things that now looked out of place in the beautiful cleaner sort list - using Title Case capitalization for 'Interactive speed' to match the other sort/filter text and using the correct mid-word capitalization for pHash.

Added 2 New Sorts 'Last O At' and 'Last Played At' for Performers
Was not sure whether to label this 'views' as the code does, or 'plays' but chose the latter as it gives parity across the scenes and performers filters.
Reutilised the prior selectPerformerLastOAtSQL code that was used to filter by play count to additionally provide useful sorting options.
To better match other sort and filter options like Gallery Count, Image Count, Play Count, Scene Count, Tag Count, File Count, Performer Count and Play Count, we should really use O Count rather than O-Counter for increased legibility and coherence.
Every other filter/sort option is using Title Case other than 'Interactive speed' which stands out as incorrect. Also, fixing the correct mid-word capitalization on phash to pHash.
Formatted source code and Ran all tests
@WithoutPants WithoutPants added feature Pull requests that add a new feature improvement Something needed tweaking. labels Mar 4, 2024
@WithoutPants WithoutPants added this to the Version 0.26.0 milestone Mar 4, 2024
@WithoutPants WithoutPants merged commit 3d0a8f6 into stashapp:develop Mar 13, 2024
2 checks passed
halkeye pushed a commit to halkeye/stash that referenced this pull request Sep 1, 2024
…Added Filter Performers by Play Count. Changes to display O Count rather than O-Counter for better consistency. Grammar fixes for 'Interactive Speed' and 'pHash'. (stashapp#4649)

* Sort Performers by Last O / View

Added 2 New Sorts 'Last O At' and 'Last Played At' for Performers

* Filter Performers by Play Count

Was not sure whether to label this 'views' as the code does, or 'plays' but chose the latter as it gives parity across the scenes and performers filters.

* Sort Performers by Play Count

Reutilised the prior selectPerformerLastOAtSQL code that was used to filter by play count to additionally provide useful sorting options.

* Replaced O-Counter with O Count

To better match other sort and filter options like Gallery Count, Image Count, Play Count, Scene Count, Tag Count, File Count, Performer Count and Play Count, we should really use O Count rather than O-Counter for increased legibility and coherence.

* Title Case on 'Interactive speed' and correct capitalization for 'phash'

Every other filter/sort option is using Title Case other than 'Interactive speed' which stands out as incorrect. Also, fixing the correct mid-word capitalization on phash to pHash.

* Formatting

Formatted source code and Ran all tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Pull requests that add a new feature improvement Something needed tweaking.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants