radio4000 / components

web-components to build the r4 interfaces, uses the sdk
https://components.radio4000.com/
1 stars 0 forks source link

Improve filters and search #96

Closed oskarrough closed 1 year ago

oskarrough commented 1 year ago

The supabase filter UI allows the user set virtually any query we can think of it. It takes a bit of clicking, but it works. Updating the UI, also queries the db and re-renders the list. So far so good.

There are a few areas we can improve.

When you want to modify the filter outside of the supabase-filter-ui component

How do you set limit = 5? Update the URL? With a link, with a button? It has to be able to merge with the current query, so it doesn't remove any existing filters etc.

I could imagine an api like this.setFilter({...}) which does whatever is needed to the url and component state and feeds it to the r4-supabase-query.

Text search

The results aren't always what you expect. Something with the exact query syntax we need to dig in to. You also can't start a search with # for some reason.

Tag search

I see two ways to go about this

a) rely on text search b) make a proper query for the tag, with a dedicated UI for it. This would again have to know how to update that part of the filter in r4-supabase-filter thing.

oskarrough commented 1 year ago

Following up on this..

Filter by time range

Would also be cool to make it easy to select two dates.

oskarrough commented 1 year ago

Seems OK now