Commit Graph

185 Commits

Author SHA1 Message Date
Uku Taht
e873d790e5
Self hosted improvements (#603)
* Introduce SELFHOST config. Enable cron by default for self hosters

* Fix cron, disable custom domain for selfhost

* Add github links

* Add notice about google search console on self hosted

* Enfore BASE_URL

* Set all selfhost users' trial expiry to 100 years from now

* Fix admin user creation
2021-01-15 10:12:00 +02:00
Uku Taht
4fb78265a8 Add disabled hover state for buttons 2021-01-08 11:21:53 +02:00
Mackenzie
27b60894bb
disable date navigation arrows when date is invalid for site (#483)
* Prevent choosing a date before site was added in datepicker

Fixes #446

* change date navigation arrows to real buttons and disable them when date is invalid for site

* simplify. ditch LinkButton and just use button. make lint a little happier

* put back dark mode for date nav buttons

* enforce line length limit

* fix a11y lint errors

* correct event/e
2021-01-07 15:24:59 +02:00
Uku Taht
229c51def4
In app release notes (#554)
* Remove warning

* Add in-app release notes

* Update changelog url
2021-01-07 15:22:51 +02:00
Vignesh Joglekar
bbb6bae4a2
Adds fallback for countries missing in DataMap (#533) 2020-12-30 10:38:18 +02:00
Vignesh Joglekar
8174f1d135
Mobile/Filter Overflow UX Improvements (#503)
* Initial Implementation

Still needs clear all functionality, various styles and spacing, and overall cleanup

* Second pass

Most of the styling issues are still present, but collapsing/expanding logic should be complete

* Third pass

* Refactors, comments, cleans up filters code

* Flatpickr color+placement changes

* Last(?) pass on UI

* Actually fixes sticky dates without breaking navigation

* Changelog

* Puts this back where it goes

* Updates based on @ukutaht's comments

- Removes Screenclass hook in favor of simple viewport size storage
- Uses class-based component
- Removes recheck variable in favor of tri-state wrapped
- General formatting & code cleanup
2020-12-29 11:00:41 +02:00
Mackenzie
e95ff80c3d
Add eslint, stylelint, prettier, and pre-commit (#484)
- When you try to commit, Pre-commit will run checks for all three, if
  installed, _only_ on staged files, and prevent committing if the linters are
  unhappy.
- Several eslint rules that generate a lot of errors are disabled for now.
  That's to allow a more gradual transition, so you won't change 1 line and be
  told to fix 100 other lines (but maybe like 20 because there are still a lot
  of rules enabled).
- Prettier is set to require pragma. That's also to allow a more gradual
  transition. As each file is tidied up, run Prettier on it, and it'll add a
  special comment that tells it that it's now responsible for keeping that one
  tidy.
2020-12-23 10:45:53 +02:00
Vignesh Joglekar
e2599ffcc1
Changes "This Month" view to Month-to-date for current month (#491)
* Initial MTD

* Adds FE support

* Removes broken Day to Time, debug statements

* Changelog

* Cleans up conditional
2020-12-23 10:42:22 +02:00
Vignesh Joglekar
b64f9de51a
Adds sticky header row (site selection, date, filters) (#472)
* Adds New Dark Mode Assets

* Moves triangle for dropdown to a reasonable position

* Majority .eex dark implementation

* Fixes Logo Positioning

* Adds theme flag to user schema, uses it

* Uses correct variables for theme applicator script

* Minor missed theme changes/fallbacks

* Individual Component Support + Theme Context

* Sources Tab Support

This was a pain to test D:

* Partial Stats Sections Support

* More of stats modules supported

* Modal +table support

* Improves some Flatpickr in light theme, supports dark theme

* Fixes missed settings tab colors

* Finishes Devices module support

* Fixes bar graph colors

* Better colorizes maps module

* Undoes colorized bars

(they looked bad, on second thought)

* Fixes loading indicator

* Finishes conversions module

* Adds changelog entry

The PR number could be wrong, will double check

* Fixes missed header color

* Fixes naming of migration and removes static alter

* Does migration correctly

As I said, my Elixir is pretty weak heh

* Adds support for spike notifications setting

* Improves contrast and visibility for email settings

* Add initial implementation for sticky header

* Minor mobile formatting improvements

* Finishes (probably) pinned header feature

* Adds changelog entry for pinned header

* Updates PR number in sticky header changelog entry

* Wraps up code cleanup + feature

* Merge conflicts are hard, apparently

* Removes extraneous tailwind variants

* Fixes mentioned issues

* Removes option to unsticky
* py-3
* Tailwind in CSS
2020-12-22 15:39:14 +02:00
Vignesh Joglekar
1174801255
Fixes couple of Flatpickr related issues (#495)
* Navigates to day when same day is chosen in flatpickr

* Ensures that erroneous from and to params are removed when re-navigating

* Changelog
2020-12-21 15:26:37 +02:00
Vincent Dörig
df9767dbdc
fix: low contrast text in dark mode (#490) 2020-12-21 15:00:04 +02:00
Vignesh Joglekar
d3f7c94ebe
Adds "Load More" functionality to pages modal (#480)
* Initial Feature Commit

* Changelog
2020-12-17 11:35:27 +02:00
Vignesh Joglekar
425975efec
Adds dark mode to entire dashboard (#467)
* Adds New Dark Mode Assets

* Moves triangle for dropdown to a reasonable position

* Majority .eex dark implementation

* Fixes Logo Positioning

* Adds theme flag to user schema, uses it

* Uses correct variables for theme applicator script

* Minor missed theme changes/fallbacks

* Individual Component Support + Theme Context

* Sources Tab Support

This was a pain to test D:

* Partial Stats Sections Support

* More of stats modules supported

* Modal +table support

* Improves some Flatpickr in light theme, supports dark theme

* Fixes missed settings tab colors

* Finishes Devices module support

* Fixes bar graph colors

* Better colorizes maps module

* Undoes colorized bars

(they looked bad, on second thought)

* Fixes loading indicator

* Finishes conversions module

* Adds changelog entry

The PR number could be wrong, will double check

* Fixes missed header color

* Fixes naming of migration and removes static alter

* Does migration correctly

As I said, my Elixir is pretty weak heh

* Adds support for spike notifications setting

* Improves contrast and visibility for email settings

* Resolves @ukutaht's comments on #467

* Fixes missing dark style

* Found one more missed dark element (shared links)

* Formatting fixes
2020-12-16 11:57:28 +02:00
Mackenzie
a50fd555cf
Prevent choosing a date before site was added in datepicker (#477)
Fixes #446
2020-12-16 11:52:47 +02:00
Mackenzie
3524d13c70
Fix overly-sticky date in query parameters (#470)
The date param was sticking around even when not specified
resulting in Last Month -> This Month still having last month's
date.

Fixes #439
2020-12-15 12:29:12 +02:00
dependabot[bot]
f030699d70
Bump ini from 1.3.5 to 1.3.7 in /assets
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-11 19:41:54 +00:00
Uku Taht
719b67ed22 Add nodejs to .tool-versions 2020-12-07 15:56:20 +02:00
Uku Taht
00d39c5c13 Halt when redirecting to settings 2020-11-26 16:01:14 +02:00
Uku Taht
8d240a5025 Add terser-webpack-plugin to deps 2020-11-26 10:37:36 +02:00
Uku Taht
54aaeb2ae0 Use uppercase M for million 2020-11-23 11:08:16 +02:00
Uku Taht
1ec4dca33f
Merge pull request #412 from plausible/settings-design
Settings design
2020-11-20 12:56:35 +02:00
Uku Taht
a530aef73e Add orange color back in 2020-11-20 11:23:20 +02:00
Uku Taht
eca27283c1 Update TailwindCSS to 2.0 2020-11-19 14:34:37 +02:00
Uku Taht
ebf40b475b Update JS deps 2020-11-19 14:34:37 +02:00
Uku Taht
b0bd564b56 Create unified template for settings 2020-11-19 14:34:37 +02:00
Uku Taht
d046773328 WIP 2020-11-19 14:34:37 +02:00
birjolaxew
b9ac695d97 Fix usages of Link that failed to specify pathname
This would break things like opening the link in a new tab, or previewing the href in the browser
2020-11-13 01:53:03 +01:00
birjolaxew
f95f310eb7 Fix QueryLink not linking to the correct URL format
This caused the href view in browsers to show the incorrect URL, and also broke stuff like opening the link in a new tab
2020-11-13 01:49:27 +01:00
birjolaxew
7f1f3a00ec Remove queryWithPeriod from DatePicker
It has been made redundant after the implementation of QueryLink
2020-11-13 01:44:38 +01:00
birjolaxew
9719c83364 Prioritize order of props when using QueryLink for readability 2020-11-13 01:37:59 +01:00
birjolaxew
2f6d58a8e5 Rename QueryLink's 'data' prop to 'to'
This fits the existing naming convention from Link better
2020-11-13 01:35:09 +01:00
birjolaxew
b4f530f492 Connect QueryLink to React Router using withRouter
This means history no longer has to be passed as property
2020-11-13 01:33:01 +01:00
birjolaxew
ccc89ab4b1 Implement QueryLink to make it easier to transition from Link 2020-11-13 01:26:53 +01:00
birjolaxew
a05f3eb6d6 Remove stray semicolons to conform with existing code style 2020-11-11 11:58:05 +01:00
birjolaxew
21b88b996d Update Countries to use new navigation function 2020-11-11 11:38:49 +01:00
birjolaxew
53ac7d3bc7 Update Filters to use new navigation function 2020-11-11 11:38:36 +01:00
birjolaxew
3524a89fb3 Update VisitorGraph to use new navigation function 2020-11-11 11:31:42 +01:00
birjolaxew
8e9349e1d8 Update DatePicker to use new navigation function 2020-11-11 11:30:29 +01:00
birjolaxew
0a565025d2 Implement function for updating current page query
This centralizes updating the search parameters
It's needed in order to implement proper history handling
Previously navigating to a new period filter would not revert if going back in history
The new function will update history entry to include the period if a new period is navigated to
This way going back in history will correctly revert the period filter
2020-11-11 11:23:42 +01:00
Uku Taht
d0d7b823f8
Browser and OS version (#397)
* Collect browser and OS version

* Display browser version

* Show operating system versions

* Device categorization

* Treat headless chrome like a bot

* Ignore events from automated browsers

* Only take major and minor of the version

* Add tests

* Add CHANGELOG entry

* Add changelog entry for bots

* Store empty value as browser when unknown
2020-11-10 15:18:59 +02:00
Uku Taht
8020e93052 Linkify custom props 2020-11-04 13:35:05 +02:00
Uku Taht
b816d92020 Show conversion rates in conversions report 2020-10-30 11:26:16 +02:00
Uku Taht
0b6e645b44
Rename metadata -> properties (#390) 2020-10-30 10:49:41 +02:00
Chad Whitacre
73375b8289
Add weekday to the visitor graph (#386)
* Add weekdays to the visitor graph

Abbreviate both weekday and month in order to keep horizontal spacing
roughly the same as it's been.

Closes #175.

* Add note to CHANGELOG
2020-10-29 15:43:58 +02:00
Uku Taht
ff515c641d
Improve event metadata (#385)
* Change from dropdown to tabs for metadata breakdown

* Add meta filter to base_query

* Refactor: use base_query_w_sessions in top_referrers_for_goal

* Do not allow individual metadata filter

* Fix conversions report when combining 3 filters: goal, metadata, country

* Remember selected metadata key

* Compress conversions component
2020-10-29 15:33:37 +02:00
Uku Taht
40900c7653
Ability to add event metadata (#381)
* Ability to add event metadata

* Close Dropdown on outside click

* Show (none) value in metadata breakdown

* Allow filtering for metadata key/val pairs

* Use correct clickhouse_ecto

* Better naming for meta filter

* Add tests

* Add changelog entry

* Remove change made for testing
2020-10-28 11:09:04 +02:00
Uku Taht
c533562eaa
Show correct stats when filtered for goal (#374)
* Show proper stats when filtered for goal

* Add changelog entry
2020-10-20 11:24:20 +03:00
Uku Taht
63a236508d Improve colour range of countries map 2020-10-19 13:46:08 +03:00
Uku Taht
8e9459ba99
Ignore arrow keys when modifier keys are pressed (#371) 2020-10-19 10:56:03 +03:00
Uku Taht
e228fd1f85
Additional filters (#358)
* Filter by screen size

* Filter by browsers

* Add filter for Operating system

* Add changelog entry

* Add filter for countries

* Add tests for filters
2020-10-13 12:03:42 +03:00