openpanel icon indicating copy to clipboard operation
openpanel copied to clipboard

Add operators in filters

Open Than-DE opened this issue 1 year ago • 1 comments

Hi,

A feature that would really elevate the analytics capabilities of openpanel would be operators for property filters.

CleanShot 2024-06-07 at 16 11 36@2x

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.

Than-DE avatar Jun 07 '24 08:06 Than-DE

We have a few operators but have not added them for the overview yet.

Great suggestion!

lindesvard avatar Jun 08 '24 10:06 lindesvard

https://github.com/user-attachments/assets/ce835d22-d802-4ccc-8f74-e8689fc4dba7

Sorry for the long wait. This coming tomorrow 🫶

lindesvard avatar Sep 04 '24 22:09 lindesvard

Insane. Looks great.

Than-DE avatar Sep 04 '24 23:09 Than-DE

Fixed and deployed

lindesvard avatar Sep 05 '24 14:09 lindesvard