Commit Graph

356 Commits (c2ed84984b1ca46a2fb160a7a129e5032f87f1bf)

Author SHA1 Message Date
RobertJoonas 6b22806e1f
Allow admin access to locked dashboards (#1710)
* added super-admin access to locked dashboards

* fixed formatting
5 years ago
dependabot[bot] f2eb9abfc7
Bump nanoid from 3.1.30 to 3.3.0 in /assets (#1676)
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.3.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.3.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years ago
dependabot[bot] 1a0fde8005
Bump hosted-git-info from 2.8.8 to 2.8.9 in /assets (#1677)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

---
updated-dependencies:
- dependency-name: hosted-git-info
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years ago
dependabot[bot] 212e224543
Bump follow-redirects from 1.14.5 to 1.14.8 in /assets (#1673)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.5 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.5...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 years ago
Uku Taht 97ce263c84 Add fallback if InteractionObserver is unavailable 5 years ago
Uku Taht 9d792f5b8c Do not unobserve if there is no observer
Fixes #639
5 years ago
Uku Taht ac5c8c7688
Replace plus icon with search icon for filter (#1635)
* Change `Country` to `Location` in the Add filter dropdown

This filter allows to select region and city too

* Rename country filter group to Location

* Use search icon for filters

Co-authored-by: RobertJoonas <56999674+RobertJoonas@users.noreply.github.com>
5 years ago
Uku Taht e70fa293f2
Pr/1609 extended (#1634)
* Change `Country` to `Location` in the Add filter dropdown

This filter allows to select region and city too

* Rename country filter group to Location

Co-authored-by: RobertJoonas <56999674+RobertJoonas@users.noreply.github.com>
5 years ago
Uku Taht 880ea45cd9 Remove cities feature flag 5 years ago
Uku Taht 8fccb4c353 Fix listReport making too many requests 5 years ago
Uku Taht d1177dfab3 Add filters for utm_term and utm_content 5 years ago
Ru Singh d5377987d9
Allow site toggle to work with minimal info for guests (#1510)
* chore(docker): improve repeat contributions workflow

* This change adds two new commands to gracefully stop and remove the Postgres and Clickhouse docker containers. To do so, it also gives them a recognizable name.

* Additionally, the Postgres container is updated to use a named volume for its data. This lower friction for repeat contributions where one would otherwise sign up and activate their accounts again and again each time.

* fix(ui): site switcher should toggle, instead of just opening

* feat/wip: public site toggle dropdown

* fix(ux): toggling the site switcher & closing from anywhere

* Do not react to key presses for guest users

* Cleanup duplicate code

* Fix logic left in for local testing

* Add a changelog entry for guest dropdown toggle
5 years ago
Uku Taht 994d9a19b7 Fix UTM modals 5 years ago
Uku Taht 2d32227621 Add dark style for UTM dropdown 5 years ago
Uku Taht f34c90e26c Show UTM term and content 5 years ago
Uku Taht 0c8de55c44 Add UTM to button text 5 years ago
Uku Taht 91f670c85a Remove UTM for button text 5 years ago
Uku Taht 7ab3de9708 Rename 'UTM params' to 'Campaigns' 5 years ago
Uku Taht 48ad7485c8
PR 1393 continued (#1542)
* Add `utm_content` and `utm_term`.
Support `utm_content` and `utm_term` as requested in #515.

* Add dropdown for UTM options

* Remove utm_content and term from filter modal for now

Co-authored-by: Blender Defender <defenderblender@gmail.com>
5 years ago
Uku Taht 383bba947e Restore map tab when removing region filter 5 years ago
Uku Taht 6365c6956b Use react Hooks for ListReport 5 years ago
Uku Taht 32f5a8d296 Walk back up the hierarchy in locations 5 years ago
Uku Taht dcf31502c2 Show regions when filtering by country etc 5 years ago
Uku Taht 1dba113e2f
[Draft] Improve location translations (#1526)
* WIP

* Use location library for search suggestions

* Remove unused code

* Remove Countries completely

* Fix tests
5 years ago
Uku Taht 178c8076d5 Fix country filter when clicking on map 5 years ago
Uku Taht 442e401ede Use new location library 5 years ago
Uku Taht 7d37208d52
Allow custom styles to be passed to embedded iframe (#1522)
* Allow custom styles to be passed to embedded iframe

* Changelog
5 years ago
Uku Taht 05a89ab130 Fix links in pages reports
Closes #1515
5 years ago
Ru Singh 88a4e13f9a
Site switcher toggle functionality (#1500)
* chore(docker): improve repeat contributions workflow

* This change adds two new commands to gracefully stop and remove the Postgres and Clickhouse docker containers. To do so, it also gives them a recognizable name.

* Additionally, the Postgres container is updated to use a named volume for its data. This lower friction for repeat contributions where one would otherwise sign up and activate their accounts again and again each time.

* fix(ui): site switcher should toggle, instead of just opening

* fix(ux): toggling the site switcher & closing from anywhere
5 years ago
Uku Taht 4c4895edb3 Add spacing around percentages
Fixes #1513
5 years ago
Uku Taht 47fac2350f
Use generic ListReport for pages (#1505) 5 years ago
Uku Taht 4d0bc61ffd Remove Twitter stuff 5 years ago
Uku Taht effe56b3e4 Use new iso_codes package 5 years ago
Uku Taht b5c662f5e5 Update deps 5 years ago
Uku Taht 4ce5f32205 Update deps 5 years ago
Uku Taht fce370401f Fix locations map 5 years ago
Ru Singh 7da138e99e
UI fix for multi-line pill text underline issues (#1499)
* chore(docker): improve repeat contributions workflow

* This change adds two new commands to gracefully stop and remove the Postgres and Clickhouse docker containers. To do so, it also gives them a recognizable name.

* Additionally, the Postgres container is updated to use a named volume for its data. This lower friction for repeat contributions where one would otherwise sign up and activate their accounts again and again each time.

* fix(ui): pill text to use text decoration instead of border

Support is pretty good including Safari 12+ without a prefix.

* docs(changelog): entry for pill text fix
5 years ago
Uku Taht d55055f91b Fix sitePath 5 years ago
Uku Taht 6633d72418 Remove theme context from the react codebase 5 years ago
Uku Taht b695732521 Improve scroll behaviour on the dashboard 5 years ago
Uku Taht 5f6553c8d8 Remove DDG 5 years ago
Uku Taht 73a2dc00ea Fix issue with filters 5 years ago
Uku Taht 2bdfec1cc0
JS refactor: use generic ListReport for country report (#1487)
* Use ListReport for countries

* Fix countries tests

* Replace Browsers with ListReport

* Use Listreport for OS and screen size
5 years ago
Uku Taht 01c5a6cb5a Use phoenix javascript from NPM 5 years ago
Uku Taht 06733c4a22 Add remote config 5 years ago
Uku Taht fdac5e2be6 Add bundlemon 5 years ago
Uku Taht 05bf43c1be
City level location data (#1449)
* Merge branch 'plausible_master'

* Add City level details

* Add City level details

* Use ISO codes instead of geoname_id for subdivisions

* Add easier way to configure geolocation database

* Add workflow for dev branch

* Correct clickhouse migration

* Translate subdivision names

* Translate city names

* WIP

* Region and country filters

* Fix region filter

* Remove region_name when removing region filter

* Add modals for regions and cities

* Remove dead code

* WIP

* Revert "WIP"

This reverts commit 3202bf2fe9.

* Feature flag to hide cities when deployed

* Add changelog entry

* Remove unused code

* Remove unused variables

* Fix test

Co-authored-by: AymanTerra <aymanterra@yahoo.com>
5 years ago
Uku Taht d3311898c5 Show message when grace period is over 5 years ago
Matt Colligan 3380685d40
Fix custom property total conversions value not displayed & Export custom properties (#1456)
* Fix custom property total conversions value not displayed

The custom property conversion metrics are not consistent with the other
metrics resulting in the total conversions not being displayed in the
dashboard. This fixes that.

* Export custom props of current goal when filtering dashboard for goal

This makes the CSV export also output a `prop_breakdown.csv` file which,
for the currently filtered goal, contains the conversion data for each
of its configured properties.

* Add test for goal-filtered CSV export
5 years ago
Matt Colligan 29e37c8342 More improvements for CSV export (#1446)
* Round time_on_page metric returned by 'pages' API

This rounds the `time_on_page` metric returned as part of the `pages`
API to the nearest second. While this shows no apparent change in the
web UI, it removes the decimal from the exported data in `pages.csv`.

* Tidy up export tests

* Round time_on_page in db query

* Add goal to CSV export tests

* Display CSV export spinner until download is ready

The mechanism used to make the page aware that the download is ready is:

- Client code sets a cookie and requests download.
- Server code handles download and removes cookie when complete.
- Client code polls every 1s to check the cookies, removing spinner when
  the export cookie is removed.
5 years ago