mtamc / memo

Website for rating books, movies, video games, and TV shows.
0 stars 0 forks source link

Add filter option when browsing lists #4

Open dustinvtran opened 2 years ago

dustinvtran commented 2 years ago

The tables currently use bootstrap-table's Search toolbar. This is useful for filtering the list to items that match the search query. It's not precise though.

Example: Obtain all entries played in 2018. This is currently done by searching "/18" in the toolbar, as "/18" appears in "X/X/18" in date_started or date_finished. However, there are lots of false positives, for example, "4/18/10", or if you include "/18" in the Comments field.

Ideally, the filter setting can also be saved as part of the URL, e.g., https://path/to/films#2018. This is similar to MyAnimeList's tags feature: https://myanimelist.net/animelist/nil-?status=7&order=4&tag=2006.

ghost commented 2 years ago

Impossible/very difficult currently, might be possible once we move to react and/or use a different table implementation. See: https://github.com/td-memo/memo/issues/23