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.
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.