analytics/test/plausible_web/controllers
Karl-Aksel Puulmann 1cb7982cd9
Filtering by multiple custom properties (#3719)
* WIP: PropFilterRow

* Get multi-behavior working

* Render multiple prop filters in one

* Modal reads from query string correctly

* Backend support for multiple custom property filters

* Add backend tests for multiple custom property filters

* Disable already selected options in property keys

We can't allow choosing the same property multiple times without changing the request
params, which we decided against

* Allow choosing any property under Behaviors > Custom props even if custom prop filter applied

This was a limitation (I believe) introduced by using ARRAY JOINs to query custom properties

* CHANGELOG.md

* Solve credo warning about too deep nesting

* Update assets/js/dashboard/stats/modals/prop-filter-modal.js

Co-authored-by: RobertJoonas <56999674+RobertJoonas@users.noreply.github.com>

* Refactor internal function for clarity

* Add another step -> Add another

* Solve 500 error

* Separate boxes per property filter

* Retain other filters in props table

* removeFilter behavior for props

* matches_member support for custom props

* filter_suggestions for prop keys should account for prop filter

* find over filter

* refactor appliedFilters

* FILTER_TYPES => FILTER_OPERATIONS

* Make add another link not wrap the whole page

* Unique keys

---------

Co-authored-by: RobertJoonas <56999674+RobertJoonas@users.noreply.github.com>
2024-02-12 09:03:57 +02:00
..
api Filtering by multiple custom properties (#3719) 2024-02-12 09:03:57 +02:00
auth_controller Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
CSVs Add Browser/Version breakdown to CSV (#3599) 2023-12-12 14:39:08 +01:00
site Clean up legacy trials code + displaying limits (#3620) 2023-12-13 10:47:50 +00:00
admin_auth_controller_test.exs Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
admin_controller_test.exs New admin route for displaying usage (#3577) 2023-12-06 10:07:07 +00:00
auth_controller_sync_test.exs Always enable e-mail verification on full build (#3666) 2024-01-04 10:14:25 +01:00
auth_controller_test.exs Rate limit e-mail changes (#3667) 2024-01-04 14:34:57 +01:00
avatar_controller_test.exs Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
billing_controller_test.exs Make hello@plausible.io clickable (#3746) 2024-02-01 09:43:21 +01:00
error_report_controller_test.exs Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
invitation_controller_test.exs Move limit enforcement to accepting site ownership transfer (#3612) 2023-12-20 14:56:49 +00:00
page_controller_test.exs Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00
site_controller_test.exs Extract Universal Analytics import logic (#3700) 2024-01-23 10:24:08 +01:00
stats_controller_test.exs Add custom_props.csv back to CSV export for Growth plans (#3656) 2024-01-02 12:31:08 +00:00
unsubscribe_controller_test.exs Remove custom domains support + update build options (#3559) 2023-11-29 11:04:54 +01:00