0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
Commit Graph

1306 Commits

Author SHA1 Message Date
Li Yi Yu
1de3dbf272
3901 Update standard events display (#4010)
* Closes #3901 add PropertyKeyInfo to select box list

* add more event properties

* update standard events on insights dropdowns with PropertyKeyInfo

* fix borked styling

* add more events to the property key info list

* update standard events with property key info for events tables

* typescript error fixes

* resolve finicky typescript null object error

* e2e updates

* update e2e

* update e2e trends filter selector

* fix events filter bug

* update break down button event name

* e2e fix

* wrap in div and style fix
2021-04-20 15:45:49 -04:00
Eric Duong
25cf1eefaa
Add link from person to insights (#4033)
* add link from person to insights

* update test
2021-04-20 14:51:29 -04:00
Paolo D'Amico
76f7c1fd54
Update password change components (#3997) 2021-04-20 10:52:02 -07:00
Buddy Williams
03dc30c4e4
#3765 Show cohort for bar chart (Insights > Trends) (#3825)
* #3765 refactored day to date_from and date_to so that the bar chart may query a date range; the end goal is to show a cohort modal for the graph;

* Removed date from modal label for bar chart since it does not apply

* Added onHover and onClick to ActionsPie charts; Added onClick to ActionsPie to see the people included in Trends > Pie

* date fix

* add time range helper

* add test

* add assertions

Co-authored-by: Eric <eeoneric@gmail.com>
2021-04-20 12:52:51 -04:00
Li Yi Yu
1e55504bc4
Add scroll to dashboard fullscreen/presentation mode (#4039)
* add overflow scroll to body only for dashboard fullscreen mode

* use auto over scroll
2021-04-20 11:51:26 -04:00
Eric Duong
5ad4246806
add sessions link to insight (#4038) 2021-04-20 09:52:17 -04:00
Yakko Majuri
40d8fb7445
Fix all buttons loading on plugin updates (#4032)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-04-20 13:10:58 +02:00
Yakko Majuri
48725ffb5c
fix stateful renders in ResizableTable (#4034) 2021-04-20 06:41:44 -04:00
Li Yi Yu
418b2b6b55
fix actions line graph count bug (#4036) 2021-04-19 17:56:04 -04:00
Paolo D'Amico
5820087b00
Release session filters (#4030)
* release filter_by_session_props

* release filter_by_session_props_link
2021-04-19 09:20:43 -04:00
Sam Winslow
6a9b7c44b6
Make new Sessions filter UI responsive (#3988) 2021-04-18 23:53:48 -07:00
Tim Glaser
72ba5429d3
Change wording to be even clearer (#4027)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-04-18 23:44:10 -07:00
Eric Duong
d615cba0b1
3638 trailing wau mau (#3929)
* add query and remove unnecessary functions

* add param function for active user querying

* remove unused import

* fix formatting

* add comment

* add test and complete clickhouse implementation

* add preilim postgres query

* implemented postgres query

* add breakdown test

* breakdown for ch

* working breakdown for clickhouse

* ui

* remove line break

* people for clickhouse

* clickhouse only

* add entity math to payload

* move test

* change dau to null

* fix type

* remove unnecessary imports

* add flags
2021-04-16 15:50:12 -04:00
Tim Glaser
6cce6a497a
Use virtual list for property select (#4020) 2021-04-16 14:09:22 -04:00
Paolo D'Amico
5ec9aefaa2
Miscellaneous improvements (#4003)
* fix person header icon

* refactor and simplify WebhookIntegration

* do not show error messages related to /billing endpoint

* fix a bunch of ts errors

* clarify anonymous users

* minor tweaks
2021-04-16 14:07:16 -04:00
Sam Winslow
e4d517b694
Autofocus filter dropdown (#3957)
* autofocus empty value debug

* make partial type

* WIP: controlled focus on select components

* clean up behavior of defaultOpen

* minor cleanup

* bugfix on updated feature flag

* address changes
2021-04-16 18:54:55 +02:00
Paolo D'Amico
917e6b7a7d
User ID convention naming (#3943)
* rename user uuid

* update frontend to use uuid

* Fix

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-04-16 16:44:54 +02:00
Paolo D'Amico
6b79a07464
Invite sign up E2E tests (#3591)
* create invite test

* using an invite

* accept invite signup logged in

* fix leaving org

* address feedback

* fix ts

* remove invite signup flaky test

* switch logout form

* fix typo

* another typo?

* nav directly

* undo change

* post-merge fixes

* cleanup & update tests

* make tests less random

* fix tests

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-04-16 16:05:02 +02:00
Karl-Aksel Puulmann
89529395a8
Avoid double-stacked <hr /> lines in trends (#4014)
Broken by https://github.com/PostHog/posthog/pull/3961
2021-04-16 16:06:18 +03:00
Kunal
ed28004359
ingestion grid copy tweaks (#4012)
* small tweaks, align copy closer w/ control for a better test

* tweak tag text

* tweak tag text

* Revert "tweak tag text"

This reverts commit fb369c74c6.

* copy tweak

Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-04-16 02:00:28 +00:00
Kunal
2838ed7b97
Ingestion grid copy tweaks (#4011)
* small tweaks, align copy closer w/ control for a better test

* tweak tag text

Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-04-16 01:18:51 +00:00
Eric Duong
0ebd7af059
Add link from cohorts to sessions (#4008)
* add link from cohorts to sessions

* remove condition
2021-04-15 17:47:04 -04:00
Eric Duong
6c3e3587db
Add actions insights link (#3996)
* add actions insights link

* use param function
2021-04-15 13:28:20 -04:00
Michael Matloka
cf28d88110
Fix optional secret plugin attachments upload UI (#3994) 2021-04-15 16:13:30 +02:00
Sam Winslow
0874d17088
hide scrollbar for ms, moz, and webkit (#3989) 2021-04-15 06:21:23 -07:00
Tim Glaser
a438815997
Revert "Refactor funnel filters & fix flexbox sizing (#3962)" (#3991)
This reverts commit 7353c5e47f.
2021-04-15 08:17:36 +00:00
Li Yi Yu
41995cccf5
Lifecycle toggle (#3961)
* test singular toggle

* allow for multitoggling and clean up code

* remove wip code

* updated styling

* retain lifecycle toggles on filter selections

* convert undefined values to string

* prettier fix

* typescript strict check fix

Co-authored-by: Li Yi Yu <li@posthog.com>
2021-04-14 20:25:26 -04:00
Sam Winslow
7353c5e47f
Refactor funnel filters & fix flexbox sizing (#3962)
* move MathSelector and MathPropertySelector.js into own file

* add buttonStyle to propertyFilters & fix flexbox

* minor: fix PropertyFilters input type

* annotate magic number '24px'
2021-04-14 17:07:15 -04:00
Sam Winslow
2eee07222f
Resizable tables in Events and Persons (#3960)
* events table

* persons table

* tweak events table sizing

* align export button right
2021-04-14 16:37:41 -04:00
Yakko Majuri
c872899d44
Highlight automatic changes to date range filters (#3670)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-04-14 10:39:42 -07:00
Paolo D'Amico
505cfddf9b
Display current billing usage for metered plans (#3973) 2021-04-14 09:39:33 -07:00
Tim Glaser
5cfbc49cc3
Add clickhouse and max users to license (#3918)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-04-14 08:45:39 -07:00
Yakko Majuri
cb175019d8
suppress antd change::: error (#3969)
* suppress antd change::: error

* Fix TS error, bump and dedupe rc-trigger
2021-04-14 14:53:56 +02:00
Michael Matloka
8dfff650e0
Fix ResizableTable always on scollbar (#3979) 2021-04-14 12:51:26 +00:00
Michael Matloka
40868c547c
Make ResizableTable generic (#3978) 2021-04-14 07:58:31 -04:00
Paolo D'Amico
0100e50cd8
Remove fixed typescript errors (#3956)
* Remove fixed typescript errors

* remove more errors

* more errors be gone

* and some more

* double digits errors
2021-04-14 10:33:27 +02:00
Marius Andra
005decbfa6
Rename redefined variables (#3975) 2021-04-14 10:00:41 +02:00
Yakko Majuri
5f61b61f02
Fix persons search (#3971)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-04-13 17:51:28 -07:00
Michael Matloka
6bea74bb50
Three small UX fixes (#3972)
* PostHog cloud → PostHog Cloud

* "/project" → "/project/settings"

* "Create action from event" z-index 9999 → 1
2021-04-13 14:56:17 +02:00
Marius Andra
3445a77aff
fix plugin error seconds (#3965) 2021-04-13 14:56:08 +02:00
Kunal
4646dd303e
Revert "update autocapture label to be more descriptive (#3925)" (#3964)
This reverts commit 4dba399346.
2021-04-13 00:08:49 +00:00
Kunal
2a03460ba5
allow default axes on line graphs (#3940)
Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-04-12 09:48:37 -07:00
Paolo D'Amico
328f483b4e
Fixes project settings not loading (#3950) 2021-04-12 15:29:40 +00:00
Michael Matloka
93ec8ce8f5
'string, parsable as datetime' (#3942) 2021-04-12 09:25:55 -04:00
Sam Winslow
8fed52dd6f
Resizable table columns in Sessions (#3927)
* add react-resizable

* fixed-width starting sizes on ResizableTable

* responsive utils for resizable table

* resizable table has gradients on scroll

* clean up resizabletable interfaces

* computes grid basis on mount, avoid overflow

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-04-10 14:52:00 -04:00
Paolo D'Amico
ce3e1fcde3
Fix feature flags default rollout (#3745) 2021-04-09 14:14:41 -07:00
Paolo D'Amico
2143e5fe7a
Less dancing in dashboards (#3824) 2021-04-09 12:03:19 -07:00
Tim Glaser
6b09a7cc6a
Always show event stats and add warnings (#3908) 2021-04-09 19:14:38 +02:00
Paolo D'Amico
2f4ced3255
Renames Active users to Unique users (#3930)
Co-authored-by: Ibrahim Ahmed <atbe@users.noreply.github.com>
2021-04-08 17:20:17 -07:00
Tim Glaser
41ae1325c7
Fix action with same name (#3909)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
Co-authored-by: Tim Glaser <tim.glaser@hiberly.com>
2021-04-08 16:54:32 -07:00
Paolo D'Amico
b1d74ebe9f
Fix navigation to insights from dashboards (#3928) 2021-04-08 15:57:12 -07:00
Paolo D'Amico
ae6b8eef90
User V2 Part II - Frontend changes (#3866) 2021-04-08 13:40:29 -07:00
Kunal
4dba399346
update autocapture label to be more descriptive (#3925) 2021-04-08 21:57:52 +02:00
Tim Glaser
4d711b9314
Fix events with spaces and only add URL for pageviews (#3902)
* Fix events with spaces and only add URL for pageviews

* fix jest
2021-04-08 11:58:36 +02:00
Michael Matloka
90ffb9962e
Fix Continent Name property description (#3900) 2021-04-08 09:53:17 +02:00
Adrien Brault
fa40811ff0
Fix property popover arrow placement on cohorts page (#3893) 2021-04-07 17:44:52 -07:00
Sam Winslow
052894292e
Resolves #3801 - Test users filters (#3854)
* fix property filter state; read from value not payload

* use fixed Col span instead of flex

* fix shadow variable

* PropertyFilters flexbox min and max widths

* explicitly reset property value input on change

* add title property to select options and recreate antd component

* tweak css

* eslint and ts fixes

* redo custom select component as modified Tag

* typing operatorvalueselect

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-04-07 13:12:06 -04:00
Michael Matloka
61feb50865
Enable plugins for everyone (#3557)
* Put Team.plugins_opt_in out of use

* Put Plugins out of BETA

* Add attention-grabbing blip for Plugins in nav

* Add end of Plugins beta banner

* Refactor MenuItem highlighting

* Update Plugins page copy

* Prettier

* Add User.flags field and use it instead of posthog.persistence

* Fix User.flags API

* Update migration

* Update Plugins.tsx

* Roll back extraneous additions

* Roll back more

* Update code ordering
2021-04-07 16:43:41 +02:00
Michael Matloka
c7ca412fc3
Support GeoLite2 City event properties in UI (#3894)
* Support GeoLite2 City event properties in UI

* Improve property value examples

* Prepend geoip_ to added event property keys

* Improve wording
2021-04-07 16:30:09 +02:00
Marius Andra
e0685688b4
Round table rows in system status (#3883)
* round table sizes in system status

* fix typing

* Use compact_number/compactNumber across the board

* Update compact_number docstring

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-04-07 15:22:58 +02:00
Paolo D'Amico
d44138c2aa
Fix shared dashboard rendering with multiline descriptions (#3885) 2021-04-06 10:30:19 -07:00
Paolo D'Amico
262e28497c
Fix cypress dependencies (#3881) 2021-04-06 09:21:21 -07:00
Kunal
d92a8447d9
adjust placeholder text for tags + descriptions (#3880)
Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-04-06 09:05:14 -07:00
Michael Matloka
04fe6bbed4
Include property key in formatLabel (#3864) 2021-04-06 11:42:29 +02:00
Tim Glaser
d3fd3164ca
Add filters to lifecycle (#3870)
* Add filters to lifecycle

* hide property filters unless there's a previously set property

Co-authored-by: eric <eeoneric@gmail.com>
2021-04-05 23:02:05 -04:00
Michael Matloka
0f8bd06ee0
Clarify "Filter Out ..." settings copy (#3847) 2021-04-05 19:08:48 -07:00
Eric Duong
5cfc7ca500
Release remove-shownas (#3851)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-04-05 15:46:15 -07:00
Kunal
6703f9b75d
set platform when footer chosen (#3875)
Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-04-05 14:05:14 -07:00
Michael Matloka
7f581d8c9b
Don't render Signup component if logged in (#3874) 2021-04-05 21:10:36 +02:00
Kunal
bb4abb7f6a
Ingestion - framework grid (#3860)
* WIP - new flow wired

* make everything square + add footer back in

* fix types

* logo cleanup + type fix

* store active tab

* delete old img

* rename files

* cleanup

* add a feat flag

* refactor

* cleanup sort

* use PH logo for default

* add flags constant

* add instrumentation

* replace style

Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-04-05 10:51:54 -07:00
Tim Glaser
fbd6844745
Improve formulas UI/input (#3620)
* Improve formulas UI/input

* Improve focus setting

* adjust styling

* fix formatting

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-04-05 13:00:29 +02:00
Paolo D'Amico
360445b6e0
Display when actions were last calculated (#3796) 2021-04-02 18:40:09 -05:00
Eric Duong
beb335a8eb
Release trend-legend (#3850)
* remove flag

* update test

* remove snapshot test

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-04-02 16:05:37 -04:00
Tim Glaser
e532223435
Fix feature flags insight link (#3865) 2021-04-02 13:07:33 -05:00
Marius Andra
3b72a3acb3
Show toast on API errors (#3561)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-04-02 12:05:16 -05:00
Paolo D'Amico
e0c079b011
Fix charts in dashboards (#3862) 2021-04-02 07:51:10 -07:00
Paolo D'Amico
1122c97aa0
Minor improvements to persons (#3834) 2021-04-01 20:05:38 -05:00
Paolo D'Amico
bfd9becd31
Fix cached trends on dashboards not loading (#3856) 2021-04-01 20:02:35 -05:00
Michael Matloka
d458e884ad
Improve clarity of main nav hotkeys (#3849) 2021-04-01 19:57:42 -05:00
Eric Duong
da6a955a94
3589 breakdown (#3782)
* initial api update

* make api work

* frontend changes

* hello

* adjust trend payload

* prelim working

* fix bugs

* use offset in filters to_dict

* use different pagination check

* use offset in filters to_dict

* test

* extend range for pg

* update test

* remove print

* update test

* match limits

* add api test

* center button

* nits

* UI adjustment

* update comment

* fix type error

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-04-01 13:54:09 -04:00
Michael Matloka
8f4ae2b8f9
Make text-muted half opacity black instead of solid light gray (#3845) 2021-04-01 19:08:45 +02:00
Phil Leggetter
e71803d776
Clarify project settings filter wording (#3839) 2021-04-01 17:00:40 +02:00
Tim Glaser
6ffdffd5be
Add descriptions of insights in menu (#3814)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-03-31 19:08:39 -07:00
Adrien Brault
827b7fda43
Fix API/HTTP instructions json syntax (#3832)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-03-31 18:31:32 -07:00
Paolo D'Amico
74cfc1db0f
Fix 2K0 (#3823)
* remove unnecessary resize event triggers

* Fix 2K0
2021-03-31 09:12:18 +00:00
Paolo D'Amico
e40079c268
Update app favicon (#3778) 2021-03-30 15:47:28 -07:00
Paolo D'Amico
2b5886e2cd
Misc instrumentation & tiny tweaks (#3769) 2021-03-30 15:25:42 -07:00
Paolo D'Amico
db71faa9a9
Allow math filter on $time property (#3821) 2021-03-30 15:20:07 -07:00
Sandeep Guptan
92e444000a
added redirection to posthogs website (#3812) 2021-03-30 14:57:27 -07:00
Karl-Aksel Puulmann
98a1c73549
dont show legend if nothing to show (#3763) 2021-03-30 13:30:10 -04:00
Paolo D'Amico
1607d063dd
Hide login link from signup if instance is not initiated (#3781) 2021-03-30 08:38:55 -07:00
Marius Andra
7ed7c4c649
Custom Data Attributes in the toolbar (#3761)
* add `important_data_attributes`

* fix undefined bug

* important data attributes in setup

* add dashes

* remove dead code

* scarier exampe

* support multiple data attributes in the toolbar

* update to simmer that supports wildcards

* rename "important_data_attributes" -> "data_attributes", store as a json array

* update ts blacklist

* another one

* use a tag select for data attributes

* remove needless string serialization

* implement text feedback

* data attribute setup style improvement

* better default handling

* fix out of sync migration
2021-03-30 10:28:57 +02:00
Paolo D'Amico
723c575b0d
Fix POSTHOG-DW (#3794) 2021-03-30 06:56:03 +00:00
Eric Duong
c40a0716ce
Insight session entities (#3582)
* Fix session tests

* fix sesisons test

* add postgres functionality

* clickhouse logic

* fix test

* fix pg test

* fix type

* add default condition

* change prompt

* make prompt better

* fix test

* add or tag

Co-authored-by: Tim Glaser <tim@glsr.nl>
2021-03-29 16:03:20 -04:00
Tim Glaser
9cbc70989a
Add warning to breakdown that we only show top 20 values (#3779)
* Add warning to breakdown that we only show top 20 values

* proposal

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-03-29 16:39:59 +02:00
Sandeep Guptan
713b4dcb34
Fix forgot password link on self-hosted (#3777) 2021-03-28 13:35:30 -06:00
Paolo D'Amico
da61c55666
Description & tagging on dashboards (#3756) 2021-03-26 17:38:13 -07:00
Michael Matloka
9b25908d7f
Fix TestAccountFiltersConfig description (#3754) 2021-03-26 14:11:20 +01:00
Yakko Majuri
a71ef7485e
Make events search more prominent (#3587)
* Make events search bar more prominent

* updates
2021-03-26 12:11:13 +02:00
Paolo D'Amico
54976251f8
Hotkeys UI Improvement (#3757) 2021-03-25 19:33:52 -07:00
Eric Duong
3f56d53b62
Null check for persons in PersonHeader (#3750) 2021-03-25 12:07:22 -07:00
Paolo D'Amico
82a0e7c2fb
Fix #3747 (#3748) 2021-03-25 11:05:02 -07:00
Paolo D'Amico
f4a87efa2b
Global hotkey navigation (#3740) 2021-03-25 11:04:33 -07:00
Karl-Aksel Puulmann
a5be4f2c33
Add 'cohorts' tab to Person page (#3744)
* Add a cohort tab to Person page

Closes #3743

* Add E2E test navigating from cohort -> person -> back
2021-03-25 17:24:36 +02:00
Paolo D'Amico
89b71a9959
New login & signup (React) (#3701) 2021-03-25 07:40:20 -07:00
Karl-Aksel Puulmann
cdbd82a0a7
Add some data-attr for plugins (#3742)
The next step for plugins should be getting more adoption, including on
cloud. This PR adds some much-needed instrumentation.
2021-03-25 11:26:40 +02:00
Kunal
20f982f7ac
reduce width so button isn't covered (#3734)
* reduce width so button isn't covered

* accidental checkin

Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-03-23 17:05:26 -07:00
Michael Matloka
68a5d68f15
Clarify test accounts → internal users (#3733)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-03-23 15:40:50 -07:00
Paolo D'Amico
6cc09eaef7
Support custom identifier for person name (#3581) 2021-03-23 15:40:37 -07:00
Paolo D'Amico
136a021d1a
Feature Flags Revamp (UX & Code) (#3675) 2021-03-23 14:34:48 -07:00
Michael Matloka
f97d40207b
Explain premium feature in upgrade modal (#3619)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-03-23 14:16:54 -07:00
Eric Duong
75fb02933c
use utc on dates without hours for consistency (#3731) 2021-03-23 14:14:28 -07:00
Paolo D'Amico
8a35701505
Fix unmounted logic bug on shared dashboards (#3712) 2021-03-23 13:23:57 -07:00
Paolo D'Amico
a8838701aa
Timezone handling UX (#3698)
Co-authored-by: Tim Glaser <tim@glsr.nl>
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-03-23 12:54:33 -07:00
Karl-Aksel Puulmann
d8d6ecd7ab
Add "test account filters" filter to trends (#3729)
This was added to one feature flag path but not the other, missing on
cloud.
2021-03-23 12:15:28 +01:00
Paolo D'Amico
1147372799
Fix hotkeys in textarea (#3713)
* ignore hotkeys in textarea inputs

* autofocus text area when adding annotation

* fix ts issue
2021-03-22 16:55:09 +01:00
Marius Andra
6dcb18f593
Async event action mapping to 5 min, add warning (#3717)
* Set ACTION_EVENT_MAPPING_INTERVAL_SECONDS to 300, move to settings

* Add async warning

* Use smarter get_from_env

* Async event action mapping warning when creating a webhook

* Async event action mapping warning when editing an action

* remove top async warning

* Use common reworded notice component for async mapping

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-03-22 15:38:46 +01:00
Michael Matloka
9af478354d
Fix linting-breaking import (#3718) 2021-03-22 15:27:28 +01:00
Paolo D'Amico
0b755d20bf
Dashboard empty & error states + mobile support (#3666)
* dashboard not found page

* empty dashboard graphics

* move to components (responsive)

* finish empty state component

* update rocket component

* remove unused styles

* fix mobile dashboards

* small fix

* fix cypress
2021-03-22 14:22:00 +01:00
Paolo D'Amico
8c961e2766
bring back individual refresh (#3708) 2021-03-19 10:36:18 -07:00
Michael Matloka
828e0fd5c2
Solidify plugins on Cloud rollout (#3706)
* Better handle extra info buttons during plugin reordering

* Fix UI bug in first time plugin enabling

* Give very new Cloud org config access to plugins

* Add migration
2021-03-19 14:25:09 +01:00
Kunal
3c178620a9
add beta tag to trends, center title (#3704)
Co-authored-by: kunal
2021-03-18 21:41:22 -07:00
Michael Matloka
169c3ba1e4
Better plugin globalization UX (#3702)
* Disallow global plugin uninstallation in the backend

* Rework plugin globalization UX
2021-03-18 23:31:08 +01:00
Yakko Majuri
ed70ddfc0f
Lower the bar to report bugs in plugins (#3699)
* Lower the bar to report bugs in plugins

* remove lingering space

* Fix PluginImage sizing

* Improve ordering tooltip clarity

* Use new ExtraPluginButtons component for About and Feedback

* Reduce large PluginImage size

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-03-18 21:47:09 +01:00
Tim Glaser
f7dfc7f7e2
Introduce Dayjs (#3490)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-03-18 10:49:45 -07:00
Michael Matloka
e16d479e81
Plugins page tiny fixes (#3694)
* Fix SubtitleProps.buttons type

* Improve "Mark as global" styling

* Show globally managed plugins last in the installed disabled list

* Update InstalledTab.tsx

* Add Edit order tooltip
2021-03-18 15:08:02 +01:00
Paolo D'Amico
3df295351c
Shared dashboards fix (#3672)
* fix logic unmounted error

* fix dashboards loading with shareToken

* remove unnecessary connect

* hide unused controls on shared dashboards
2021-03-18 12:55:40 +01:00
Eric Duong
9b652fe092
3682 Various annotation fixes (#3689)
* various annotation fixes

* fix typescript
2021-03-17 15:06:21 -07:00
Eric Duong
341bd600d9
funnel trend fix white screen and remove description (#3686)
* fix white screen and remove description

* move prompt
2021-03-17 16:07:07 -04:00
Paolo D'Amico
7c6bd06af3
Automatically enable debug mode for posthog-js on SELF_CAPTURE (#3613) 2021-03-17 12:32:20 -07:00
Michael Matloka
3c0737f0fd
Plugins access control (#3486)
* Add Organization.PluginsAccess

* Rename PluginsAccess to PluginsAccessLevel

* Use Organization.plugins_access_level in can_…_plugins_via_api

* Add migration for Organization.plugins_access_level

* Remove unused PLUGINS_CLOUD_WHITELISTED_ORG_IDS

* Update access.py

* Add OrganizationPluginsAccessLevel TS enum

* Fix merge

* Disable LocalPlugin UI on Cloud

* Move away from PluginAccess interface

* Extend PluginsAccessLevel range

* Refactor PluginsAccessLevel for brevity

* Remove PluginAccess interface completely

* Add plugins managed globally

* Update migration

* Show managing org name in "Managed" plugin tag

* Smoothen some rough edges

* Smoothen more edges

* Restore correct MULTI_TENANCY default

* All the edges

* Fix most existing tests

* Remove PLUGINS_*_VIA_API env var support

* Update pluginsNeedingUpdates

* Remove can_*_plugins_via_api from instance status page

* Add tests and polish permissioning

* Update migration

* Fix typing

* Make plugin drawer UI less intrusive

* Update migration

* Fix Uninstall button condition

* Use unified _preflight status endpoint instead of the custom plugins one

* Fix plugin update label condition

* Fix "Check for updates" button condition

* Explain PluginsAccessLevel choices with comments

* Hide global plugin installation option on self-hosted

* Don't actions.loadRepository() as install org

* Improve permissioning with tests

* Satisfy mypy

* Add plugins access level to admin and fix org admin

* Check plugins access level more

* Rename endWithPeriod

* Refactor FE access control checks to accessControl.ts

* Deduplicate permissioning

* Add exception message

* Align backend and frontend plugins access level helpers

* Add plugins access level helper tests

* Fix ChartFilter
2021-03-17 15:01:55 +01:00
Marius Andra
f2cebf2b3f
Notice in toolbar if could not get a unique selector for the element (#3635)
* Show notice if could not get a unique selector for the element

* Remove redundant value fallback

* Clarify tip

* Prettier

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-03-16 01:35:26 +01:00
Sandeep Guptan
a3f50f65cd
fixed y axis color issue (#3653) 2021-03-16 00:44:16 +01:00
Paolo D'Amico
e5a0cd518e
Dashboard hotkeys (#3623)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-03-15 16:10:14 -07:00
Tim Glaser
17c90ad3df
Default event property usage to false (#3655)
* Default event property usage to false

* fix type errors and wording
2021-03-15 19:43:39 +01:00
Paolo D'Amico
b27dace009
Dashboard Improvements I (#3608) 2021-03-15 11:41:48 -07:00
Tim Glaser
3b2ceee89e
Fix organization settings (#3643)
* Fix organization settings

* add test

* fix
2021-03-14 17:12:56 +01:00
Kunal
4210717922
Fix Funnel rendering on dashboards (#3641)
* use the same logic within a component instance

* cleanup value unpack

Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-03-12 23:15:12 +01:00
Marius Andra
8c98e4f61d
Toolbar Date Filter, remove react-hot-loader, fix dashboard date filter URL (#3586)
* dropdown and datepicker z-index

* remove dead code

* pass getPopupContainer to range picker

* make DateFilter's custom time range work in a shadow root

* close after selecting

* show date filter instead of date range

* skip updating url on date filter change in toolbar

* actually filter the dates

* fix flickering (always show map)

* refactor date filter component

* upgrade to webpack 5 and @posthog/react-rrweb-player module

* disconnect dashboardLogic from dateFilterLogic (remove broken url changes, etc)

* add bundle tracker

* remove react-hot-loader

* Revert "add bundle tracker"

This reverts commit e59bcfa8

* remove bundle tracker

* remove updatePath

* fix code quality complaints

* revert @cypress/webpack-preprocessor version

* try different cypress webpack plugin

* add crypto-browserify

* add crypto-browserify

* revert to webpack 4

* revert to webpack 4

* revert to webpack 4

* implement feedback and remove debug stuff

* move insights date filter logic out of lib/

* rename DateFilterComponent to DateFilter

* rename DateFilterCustom to DateFilterRange

* Remove hot from new code
2021-03-12 14:54:29 +01:00
Tim Glaser
bf2c4429b5
Auto filter test accounts (#3492)
* WIP auto filter test accounts

* finish off

* Fix tests

* Non generic emails

* add list of generic emails

* Move location to below property filters

* Fix typescript errors

* as any

* fix tests

* filters

* fix tests

* Featureflag doesn't really makes sense for this feature

* fix tests

* fix test

* Add clickhouse + tests for each insight

* Fix lifecycle and paths

* Fix sessions

* Fix session tests

* fix sesisons test

* fix migrations

* fix migration chain

* refactor path & remove stale console.log

* adjust useAnchor & minor copy

* rename to avoid confusion with inline component

* test account filter tweaks

* fix filters

* hardcode

* Add tests for funnel trends

* Make generic emails super fast

* Fix migrations

* Default to false for now

* Default to false, remember a user's preference

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-03-11 18:16:38 +01:00
Michael Matloka
9fdbd87aba
Improve Plugins page UX (#3614)
* Improve Plugins page UX

* Don't allow for closing "Advanced Features Ahead"
2021-03-11 16:13:57 +01:00
Yakko Majuri
ce3dced6e6
Fix funnels loading message (#3598)
* Fix funnels loading message

* remove console.log
2021-03-11 12:51:40 +01:00
Michael Matloka
e50d5912e5
Add organization settings (#3324)
* Add organization settings

* Update test_organization.py

* Fix TS issues

* Improve permissioning frontend

* Fix an import

* minor typos

* fix cypress

* Make use of AnalyticsDestroyModelMixin

* Solve nits

* Rework Invites empty state

* Update organization test

* Improve organization tests and permissioning

* Polish Organization Settings frontend

* Improve Members UX

* Use RestrictedArea in Project Settings

* Fix APITestMixin._create_user

* some minor copy adjustments

* Use email initial in ProfilePicture

* Clean up org deletion tests

* Improve org/project deletion UX and reliability

* Enhance org deletion test

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-03-10 13:09:35 +01:00
Michael Matloka
7326f987ed
Add action titles to CodeSnippet (#3612)
* Show HTML title on CodeSnippet Actions

* Make Action.title mandatory
2021-03-09 22:47:55 +01:00
Marius Andra
c47a9e320f
get rid of needless space (#3603) 2021-03-09 11:22:25 +01:00
Yakko Majuri
d693abab79
Add ph-no-capture to relevant sections pt. 2 (#3596)
* Add ph-no-capture to relevant sections pt. 2

* extra ts fixes

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-03-09 07:58:45 +00:00
Michael Matloka
6f85e8f580
Gravatar support for user profile picture (#3584)
* Add crypto-js for calculating MD5

* Add Gravatar support to profile picture

* Add title attribute to ProfilePicture img

* Optimize ProfilePicture

* Fix typing

* Show Gravatar in Members list

* Remove style from ProfilePictureProps

* Update title in ProfilePicture img

* Fix TS

* Show Gravatars in Invites

* Remove debug line

* Use nbsp in /.+ (At|By)/ table headers

* Remove user prefix from ProfilePicture props
2021-03-08 14:13:31 +01:00
Tim Glaser
26fdfabc35
Fix funnels with only events (#3593) 2021-03-06 11:37:55 +01:00
Eric Duong
27f271725a
Filter disappearing bug + more (#3590)
* fix deleting filter bug and adjust close button spacing

* remove null check to fix event property empty condition
2021-03-05 15:46:11 +00:00
Eric Duong
859734138a
add missing param to retention payload (#3585) 2021-03-04 19:57:57 -05:00