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

Follicule filtering for wordcount/numeric elements #8

Open
abreal-badger opened this issue Oct 9, 2021 · 2 comments
Open

Follicule filtering for wordcount/numeric elements #8

abreal-badger opened this issue Oct 9, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@abreal-badger
Copy link
Owner

Ao3 pages contain a variety of numeric elements related to a work: wordcount, kudos, hits, bookmarks, as well as more complex numeric thingies like the date a work was updated.

In the filter UI, these elements are generally filtered on a 'from/to' range, letting the user filter by lower and upper bounds.

From a follicule standpoint, filtering could be implemented via less-than/greater-than buttons for numeric elements that feed into this from/to interface.

@abreal-badger abreal-badger added the enhancement New feature or request label Oct 9, 2021
@abreal-badger abreal-badger self-assigned this Oct 9, 2021
@abreal-badger
Copy link
Owner Author

The hidden search operators reference mentions that range-based syntax works for 'words, hits, kudos, comments, and bookmarks', with the following options:

words:1000 (works with exactly 1000 words)
words>1000 (works with more than 1000 words)
words<1000 (works with less than 1000 words)
words:1000-5000 (works between 1000 and 5000 words)

Since we're only working with one value per follicule, between doesn't make sense to implement; this suggests a < | = | > three-button UI, indicating 'works with less than N words', 'works with exactly N words', and 'works with more than N words'.

General implementation notes:

element, class 'stats' contains all numeric elements as
elements, with classnames as 'words', 'hits', 'kudos', 'comments', and 'bookmarks'.

@abreal-badger
Copy link
Owner Author

Addn: use title attributes on buttons to give contextual information like 'works with less than N words' - if I had to look that up, so is the end user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant