Add operators in filters
Hi,
A feature that would really elevate the analytics capabilities of openpanel would be operators for property filters.
For example, my page has a /blog route with different articles underneath. I would like to filter by all blog paths, so I would filter by "path contains 'blog'"
Some operators that come to my head right away are
- is (exists already)
- is not
- contains
- contains not
- starts with
- ends with
This is probably quite a big endeavour because some properties might need different operators. For example created_at would only really need "is" and "is not" - but could use different operators like "before" and "after".
Would love to work on this myself some time but I don't have a local environment running. Could also help with conceptualising this idea.
We have a few operators but have not added them for the overview yet.
Great suggestion!
https://github.com/user-attachments/assets/ce835d22-d802-4ccc-8f74-e8689fc4dba7
Sorry for the long wait. This coming tomorrow 🫶
Insane. Looks great.
Fixed and deployed