Commit Graph

1927 Commits (fda03e38225fef0647dbcc2c3b803963ea89d516)
 

Author SHA1 Message Date
Uku Taht fda03e3822 Escape pipe character in filter modal 4 years ago
Uku Taht c50793b4bd Remove hint from filter modal 4 years ago
Uku Taht 2bad1ea32b Dark mode fixes 4 years ago
Uku Taht b688e29211 Rename `allowWildcard` -> `freeChoice` 4 years ago
Uku Taht 6642a4c14e Clean up some rebase mistakes 4 years ago
Uku Taht a725be0371 Remove TODO comment 4 years ago
Uku Taht 9095a468c0 Rename 'Save filter' -> Apply filter 4 years ago
Uku Taht 6d5fc3998c Allow free choice inputs in combobox 4 years ago
Uku Taht 4ed62cb0e3 Implement keybindings for combobox 4 years ago
Uku Taht 2e0852cd03 Add support for wildcards in Combobox 4 years ago
Uku Taht 669a3559f8 Styling updates for combobox 4 years ago
Uku Taht 4cac26f634 Align open/close behaviour with react-select 4 years ago
Uku Taht 338fcdece1 Fix location filters outside filter modal 4 years ago
Uku Taht 12e7ac869e WIP 4 years ago
Uku Taht fdd1ab65d3 Show highlighted option in combobox 4 years ago
Uku Taht 219f662fe2 Don't use browser / os in version label 4 years ago
Uku Taht df95b61eca Support multple filter clauses in combobox 4 years ago
Uku Taht 181de8225e Implement Combobox from scratch with no libs 4 years ago
Uku Taht 89c3e38197 Extract util module for React filters 4 years ago
Uku Taht 4fc211f993 Support `matches_member` and `not_matches_member` filters 4 years ago
Uku Taht 9701904523 Support `not_member` filter type 4 years ago
Uku Taht 4b93cba06d Support for `member` filter in `aggregate_time_on_page` 4 years ago
Uku Taht 0559d96c05 Parse `member` filter type 4 years ago
Uku Taht 255d20bee7 Wrap Plausible.Stats.Filters with unit tests 4 years ago
Uku Taht a154a4214b
Support multiple filters - backend (#2749)
* Wrap Plausible.Stats.Filters with unit tests

* Parse `member` filter type

* Support escaped | in member filter

* Support for `member` filter in `aggregate_time_on_page`

* Add support for `member` filter type on goals

* Disable Credo warning

* Support `not_member` filter type

* Disable credo for `query_sessions`

* Support `matches_member` and `not_matches_member` filters

* Disable Credo for `Filters.filter_value/2`

* Support `matches_member` and `not_matches_member` for goal filter

* Support for contains_member and friends

* Updates for new chto driver

* make top_stats_test.exs:203 pass (#2779)

---------

Co-authored-by: ruslandoga <rusl@n-do.ga>
4 years ago
Adam 6d79ca5093
Switch to new clickhouse adapter (ch/chto) (#2733)
* another clickhouse adapter

* don't restore stats_removal.ex

* fix events main-graph error (#2746)

* update ch, chto

* update chto again (#2759)

* Stop treating page filter as an entry_page filter (#2752)

* remove dead code

* stop treating page filter as entry page filter in breakdown queries

* stop treating page filter as entry page filter in aggregate queries

* stop treating page filter as entry page filter in timeseries queries

* mix format

* update changelog

* break code down to smaller functions to keep credo happy

* remove unused functions

* make CSV export return only conversions with goal filter (#2760)

* make CSV export return only conversions with goal filter

* update changelog

* update elixir version in mix.exs (#2742)

* revert admin.ex changes (#2776)

---------

Co-authored-by: ruslandoga <67764432+ruslandoga@users.noreply.github.com>
Co-authored-by: ruslandoga <rusl@n-do.ga>
Co-authored-by: RobertJoonas <56999674+RobertJoonas@users.noreply.github.com>
4 years ago
Adam 736e6e385c
Capture no_cache sentry messages together (#2772) 4 years ago
ruslandoga c245e3f824
update elixir version in mix.exs (#2742) 4 years ago
RobertJoonas 4175a7abae
make CSV export return only conversions with goal filter (#2760)
* make CSV export return only conversions with goal filter

* update changelog
4 years ago
RobertJoonas d0895efbdd
Stop treating page filter as an entry_page filter (#2752)
* remove dead code

* stop treating page filter as entry page filter in breakdown queries

* stop treating page filter as entry page filter in aggregate queries

* stop treating page filter as entry page filter in timeseries queries

* mix format

* update changelog

* break code down to smaller functions to keep credo happy

* remove unused functions
4 years ago
Adam 4654a50365
Revert "Fail CI when tests are logging (#2748)" (#2758)
This reverts commit 05d14774be.
4 years ago
Marko Saric 2204d67260
Add a note that a subscription is not transferred alongside a site (#2750)
* Add a note that a subscription is not transfered alongside a site

* Update transfer_ownership_form.html.eex

* Format membership/transfer_ownership_form.html.eex

---------

Co-authored-by: Vinicius Brasil <vini@hey.com>
4 years ago
Vini Brasil 49e4c2fb64
Improve comparisons navigation (#2736)
This pull request enhances the navigation for comparisons by implementing the following changes:

* Hides the comparison input behind the period picker, making the top bar less busy.
* Adds a key binding for the comparison input (assigned to x) alongside arrow navigation.
* Persists the selected comparison mode in Local Storage by domain, resulting in its persistence between refreshes.
4 years ago
Marko Saric b17710a706
Removing the notes about the 48 hour deletion delay (#2735)
* Update site.ex

* Update settings_danger_zone.html.eex
4 years ago
Uku Taht 8c8cf23bf0
Embedded dashboard fixes (#2744)
* Add padding to embedded dashboards

* Changelog entry

* Do not check origin in iframe-resizer
4 years ago
Adam 05d14774be
Fail CI when tests are logging (#2748)
A re-iteration of a miserable attempt from #2694

Hi @dgvncsz0f, how you've been ;D
4 years ago
RobertJoonas a490016f6e
fix test to make build green (#2747) 4 years ago
Adam 59a76dedf1
Revert "Fail the CI if tests emit log errors/warnings (#2694)" (#2745)
* Revert "Fail the CI if tests emit log errors/warnings (#2694)"

This reverts commit ef894b0546.

* Mute a test
4 years ago
Adam 3417b2dd0e
Disallow site creation with insufficient input (#2741) 4 years ago
RobertJoonas ad3edbfb9a
Bug fix - show `views_per_visit` when stats include imported data (#2738)
* show views_per_visit with imported data

* use optional chaining instead
4 years ago
RobertJoonas 4eca1aef70
fix a bug in percent change calculation (#2731) 4 years ago
Adam 4b21b4e6d0
Remove Firewall plug; redundant at infra level (#2730)
* Remove Firewall plug; redundant at infra level

* Update changelog
4 years ago
Vini Brasil 8b0f0cabc2
Implement "Year over Year" comparison mode (#2704)
This pull request adds support for multiple comparison modes, changes the comparison checkbox to a combobox, and implements the year over year comparison mode. The feature is still behind a feature flag.

Co-authored-by: Uku Taht <uku.taht@gmail.com>
4 years ago
RobertJoonas 874d664521
Add the new `Views per Visit` metric to dashboard Top Stats and CSV export (#2728)
* globally rename 'pages_per_visit' to 'views_per_visit'

* change the order of top stats

* rename 'Visits' to 'Total visits' in the UI

* add views_per_visit to UI

* put the new metric under a feature flag

* add new metric to CSV export under feature flag

* mix format

* use only one feature flag
4 years ago
RobertJoonas 0d6c72d50f
Add new `Pages / Visit` metric to Stats API Aggregate and Timeseries (#2714)
* refactor metric validation

* link to the correct docs section

* add the new metric to aggregate API

* explicitly remove __internal_visits

The overall metric selection is well defined by
`Plausible.Stats.Timeseries.empty_row/2`. The only metric that needs
to be removed from the timeseries response is __internal_visits.

This commit also moves the `remove_internal_visits_metric` function to a
new Util module to be used by both breakdown and timeseries.

* add the new metric to timeseries API

* mix format

* add moduledoc to keep credo happy

* convert pages_per_visit to string straight away

* do rounding in db query

* query # of visits with sum(sign) instead

* stop converting pages_per_visit to string
4 years ago
Uku Taht 43bf7dd09f
Use user-agent instead of screen_width to get device type (#2711)
* Use user-agent instead of screen_width to get device type

Co-authored-by: eriknakata <erik.nakata5@gmail.com>

* Fix credo

* Log on unhandled UAInspector device type

* Make 'browser' the default tab in devices report

* Remove device tooltip

* Remove screen_width from ingestion completely

* Remove browserstack harness, run playwright directly

* Select meta key based on OS platform

* Run CI tests in parallel

* Improve device match readability

* Add changelog

---------

Co-authored-by: eriknakata <erik.nakata5@gmail.com>
4 years ago
Uku Taht f26ca7da9f
Update native stats start date when transferring (#2719) 4 years ago
Adam 8f86036e57
Keep track of native stats start timestamp when retrieving data (#2715)
* Stats boundary/PoC?

* Delete stats removal

* Drop events check on site creation

* Update seeds script

* Use native_stats_start_at

* Don't rely on native stats pointer in imported stats queries

* Reset site

* Export reset/1

* Remove unnecessary inserted_at settings

* Update seeds

* Remove unnecessary inserted_at setting
4 years ago
Adam 05e7f93da2
Add a migration for native_stats_start_at (#2716) 4 years ago
Adam de0f68a647
Pin merged deps after #2693 (#2710) 4 years ago