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
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
Michael Matloka
8625b6a935
Clean up command palette style (#3583) 2021-03-04 23:51:57 +01:00
Marius Andra
a8c2bd0cb1
Add <wbr /> to allow very long strings to split nicely (#3578) 2021-03-04 16:12:24 +01:00
Paolo D'Amico
53041a5057
Fix long person properties UI (#3570)
* global style

* components adjustment
2021-03-04 15:04:41 +01:00
Yakko Majuri
e933184fda
Plugins secret config fields (#3341)
* WIP Plugins secret config fields

* add comments

* Polish Secret Plugin Field (#3476)

* Replace warning with a button

* no matter what the value is -> a secret is a secret

* update text

* secret api changes

* check equality with secret string

* fix type

* add tests

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-03-04 12:19:49 +01:00
Paolo D'Amico
78bfade0df
Post-release 1694-dashboards (#3513) 2021-03-03 07:17:43 -08:00
Eric Duong
adee71ec60
parse timestamps to local time (#3522) 2021-03-03 10:21:50 +00:00
Eric Duong
55a298018b
disable unnecessary chart filters on retention (#3521) 2021-03-03 10:21:22 +00:00
Paolo D'Amico
2f90e5aa24
Instrument person properties management (#3511)
* reportPersonPropertyUpdated event

* report event + adjustments

* report old property type

* remove stale console log
2021-03-03 11:02:04 +01:00
Marius Andra
d4ab38db7c
add $device_type to initial properties to save (#3564) 2021-03-03 10:53:06 +01:00
Marius Andra
888b1314da
Add JSON view for events (#3560)
* Add JSON view for events

* Extract sortedKeys to utils

* Don't wrap EventJSON CodeSnippet in extra div

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-03-03 10:48:44 +01:00
Kunal
1051143ba4
Update tracking for Retention & Paths (#3563)
Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-03-02 21:28:02 -08:00
Kunal
d6093f10b7
Add calculate funnel event (#3556)
* add calculate funnel event

* update naming scheme

* move analytics to eventUsageLogic

Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
2021-03-02 17:57:50 -08:00
Paolo D'Amico
7e10a4f06c
Release Persons V2 (persons-2353) (#3461) 2021-03-02 11:18:04 -08:00
Michael Matloka
a2ea4d0146
Clean up copyToClipboard (#3553) 2021-03-02 11:57:06 +01:00
Yakko Majuri
aced4b98f7
Add ability to add person props on the UI (#3394)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-03-01 16:43:07 -08:00
Yakko Majuri
b5038bbd60
Fix minor UI issue with funnel loading (#3519)
* Fix minor UI issue with funnel loading

* remove console.log
2021-03-01 21:58:53 +01:00
Paul Ungureanu
20ea346f66
Closes #3524 filters do not reset (#3532)
Before this, the events table did not update when the last filter
was deleted.
2021-03-01 19:13:15 +01:00
Paolo D'Amico
b025ada381
Random fixes Mar 1 (#3530)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-03-01 09:35:30 -08:00
Yakko Majuri
01774c0746
fix plugin invalid config error (#3529) 2021-03-01 17:52:25 +01:00
Michael Matloka
38331e696f
Add explanation for clipboard not working on remote HTTP (#3528)
* Add explanation for clipboard not working on remote HTTP

* Fix toast
2021-03-01 17:30:45 +01:00
Yakko Majuri
7281639d36
Fix cannot read property 0 of undefined (#3518) 2021-03-01 16:51:03 +01:00
Tim Glaser
ca5c50b67a
Add UTM tags to property info (#3508) 2021-03-01 10:18:31 +01:00
Karl-Aksel Puulmann
b7bdad90eb
Add test for bar charts (#3474)
* Add test for bar charts

Since our charts are rendered on a canvas we can't really interact well
with it. Instead, we take a screenshot now (new dependency).

* Debug error in CI

* Make sure images are the same size on CI and locally
2021-02-26 16:50:36 +02:00
Karl-Aksel Puulmann
75f1332afc
Reload our feature flags after changing them (#3477)
This only "affects" our team and local development. I got tired of
needing to reload after toggling a feature flag locally. This makes it
so that the newly edited flag is applied immediately.
2021-02-25 16:28:52 -06:00
Tim Glaser
e5cfa68b60
Reduce calls to api/action (#3493)
* Reduce calls to api/action

* Fix saving
2021-02-25 22:48:53 +01:00
Eric Duong
195a358819
Change graphs to ts (#3181)
* change to TS

* fix type

* fix types

* add type to kea logic

* fix errors
2021-02-25 12:44:37 -05:00
Eric Duong
2d4daa6558
Revert "Revert "935 trend legend"" (#3489)
* Revert "Revert "935 trend legend (#3434)" (#3487)"

This reverts commit 5784f90df6.

* patch bug

* format breakdown label

* add ff
2021-02-25 12:06:06 -05:00
Eric Duong
5784f90df6
Revert "935 trend legend (#3434)" (#3487)
This reverts commit cd660e52f8.
2021-02-25 11:41:57 -05:00
Eric Duong
cd660e52f8
935 trend legend (#3434)
* base table legend

* toggle visibility logic

* colors working

* display data in legend

* clean up types and conditions

* review-points

* missing constant from merge

* Make the table small

* disabled when only 1 is left and add label clickable

* add better label handling

* fix test

Co-authored-by: Tim Glaser <tim@glsr.nl>
2021-02-25 10:59:35 -05:00
Karl-Aksel Puulmann
eb7b361401
Fix: funnels & retention person links, funnel calculations (#3483)
* Fix links to people from Retention modal and Funnels.

More details under issue https://github.com/PostHog/posthog/issues/3480

* Fix funnel calculations on self-hosted

Broken by renames within https://github.com/PostHog/posthog/pull/3301

* Handle cached calculations in e2e test runner

When executing e2e tests, celery tasks are evaluated immediately. Previously
due to the caching the funnels never loaded as we overwrite the results immediately.

* Add test for navigating to persons from funnels

* Test for retention visualization and person navigation
2021-02-25 17:41:25 +02:00
Karl-Aksel Puulmann
264d4b03db
Bar chart by value (#3457)
* Extract const for a frequent if-statement

* Show bar graph

* Show bar chart breaking down by value

* Don't show interval filter when non-time based visualization

* Set axis color as expected

* Add percentage of total to bar graph

* Include action info in tooltip for value graph

* Support DashboardItem

* Mark prop as optional

* Convert new file to typescript

* Disable bar value for stickiness
2021-02-25 17:01:05 +02:00
Karl-Aksel Puulmann
f36495bec6
Filters: Select multiple for equality/inequality (#3422)
* Don't colorize sql for output

* Handle setting array props as values

* Handle arrays exact/is_not property filters

Also updates tests to use parameterization

* Avoid autoclosing PropertyFilter popup

As key changes, old one got removed from DOM

* Improve filter UX

Don't allow filter to become multi-line and keep inputs the same size.

Previous flex={1} was doing flex: 1 1 auto which was messing things up

* Fix typescript issue

* Handle array lookups in postgres

* Update types

* Fix fixture to recreate tables

* Make replace spaces logic consistent with what was there before

* Handle list filtering better in postgres

* Update frontend tests

* Handle edge case: Switching between multi operator and single operators
2021-02-25 16:54:55 +02:00
Karl-Aksel Puulmann
bd9a44cdb3
Fix "unseen sessions" filter (#3478) 2021-02-25 16:26:42 +02:00
Michael Matloka
a50822b27f
Fix "passowrd" on invite page (#3473) 2021-02-25 12:26:52 +01:00
Marius Andra
84d853748d
Earlier IP anonymization (#3464)
* Clarify what anonymize_ips does

* Hide IP before event ingestion, not during (hides it also from the task queues and plugins)

* flip it around

* add IPs to tests that expected them to be there

* "Discard"

* test that everything works when ip is none
2021-02-25 10:31:33 +01:00
Michael Matloka
55ffbb04a1
Fix invite signup being inaccessible for users without org or project (#3466) 2021-02-25 10:14:10 +01:00
Marius Andra
325a8d653e
Alert if plugin server down (#3465)
* Alert if plugin server down

* Strip plugin server version of quotes

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-02-25 01:57:49 +01:00
Michael Matloka
4a08abf789
Bulk invite the Polish (#3346)
* Refactor bulk invites to use OrganizationInviteViewSet

* Refactor BulkInviteModal

* Flyby utils fix

* Make invitation button nicer

* Fix dropdown Invite button

* Fix invites/bulk response status

* Update test_organization_invites.py

* Fix Formula typing

* Fix test_invites_are_create_atomically

* Fix typing

* Update comment

* The to each

* Address feedback and introduce optimizations

* Fix tests

* Polish

* use single invite on user dropdown if email is not available

* Add unit tests for pluralize

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-02-24 23:41:08 +01:00
Eric Duong
9514e290a2
Static cohort on person modal (#2952)
* Upload static cohort using CSV, closes #2868

* fix tests

* Fix tests

* Fix e2e test

* Avoid double inserts

* Speed up query

* Move to params

* fix tests

* initial cleanup

* initial scaffold for cohort static logic

* intiial frontend changes

* initial working

* fix error on iterable

* stickiness people func refactor

* Use JSON instead of protobuf

* stickiness working

* clickhouse route

* unused import

* move button

* make interface easier to user

* clickhouse support

* restore cache decorator

* endpoint adjustment

* adjust how clickhouse handles inserting for static cohorts

* split out processing into pg

* use worker for clickhouse querying too

* add pg test

* ee test

* add input for cohort naming

* add stickiness test

* condition for when to show save cohort

* fix types

* minor fix

* remove repeats

* remove hardcoded id

* add date handling to trends cohort func

* remove print

* add link on success creation

* cohort working

* fix backend test

* fix cohort typescript

* remove unnecessary kafka topic

* remove brackets

* shift default

* raise exceptions when debug or test is true

* remove test flag

* move trends insight related components to different folder

* change get_earliest_timestamp

* remove extraneous condition

* fix test call

* put behind ff

* fix test x2

* fix tests

* restore exceptions hog

* fix tests

* restore exceptions hog

* fix test x20

Co-authored-by: Tim Glaser <tim@glsr.nl>
2021-02-24 09:59:13 -05:00
Eric Duong
23a7c9e2df
Fix clicking datapoint with multiple entities (#3428)
* remove unnecessary condition

* change all refs

* fix switched params

* remove targeet entity from filter
2021-02-23 11:03:14 -05:00
Karl-Aksel Puulmann
f4039003e1
Dashboards: allow changing date filters & refresh (#3363)
* DashboardHeader to ts

* Convert files to typescript

* Use BindLogic instead of passing logics as arguments

* Improve typing for dashboards

* Fix DashboardHeader types

* Improve typing: DashboardItem

* Fix InsightHistoryPanel, SharedDashboard types

* Add WIP code for date ranges on dashboards

* DateFilter/dateFilterLogic to typescript

* Show 'Custom' daterange by default on a dashboard

* Border for dates in Dashboard

* Add dashboard.filters field

* Populate dashboard.filters, use it in code

* Fix some type errors in dashboardItemsModel

* Fetch dashboard items again on date change

* Make dashboard items refresh as dashboard gets updated

* Add refresh button to DashboardHeader

* Make saving dashboard items work again

* Update dashboard type

* Don't update URL in DateFilter

* Update selected time range on load

* Avoid flickering in DateFilter

* Only show 'Custom' in dashboards

* Show calendar icon next to date filter in dashboard

* Avoid double-loading results due to date change

* Kill some duplicated code

* Avoid cache when filters change

(datefilters on dashboard)

* Test individual update_cache method

* Add test for import_from and attributes being updated

* Fix typing errors

* Update api/dashboard tests

* Avoid redirects when changing date range for funnels or retention

Previously funnelLogic might be mounted in the background, causing a
reload

* Add a missing breakpoint

* Reformat with black
2021-02-23 12:19:36 +02:00
Paolo D'Amico
348b50f73f
Fix authenticated invite signup (#3433) 2021-02-22 14:55:02 -06:00
Yakko Majuri
28b548f72c
Rename DAU -> Active Users (#3420)
* Rename DAU -> Active Users

* update test
2021-02-22 12:48:45 +00:00
Michael Matloka
65e5878683
Stricter Team model (#3252)
* Remove deprecated Team.opt_out_capture

* Remove obsolete and unused Team.users

* Make Team.organization, api_token and name stricter

* Add migration

* Add Team.api_token min length

* Adjust 0124_stricter_team for opt_out_capture removal

* Don't remove Team fields

* Update migration

* Update migration

* Set org ID of orgless teams to first org instead of deleting

* Update migration

* Fix

* Ensure that each project has a name before migration

* Rename prepare_teams
2021-02-22 13:14:53 +01:00
Michael Matloka
52cc8b3124
Fix "Finish setup" button (#3416) 2021-02-22 09:11:37 +01:00
Paolo D'Amico
e35ef9df80
Migrate team invite signup to React - Part II (Front-end) (#3300)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-02-19 16:53:01 -06:00
Karl-Aksel Puulmann
e50980c06a
Improve reordering funnel steps (#3412)
You can now drag the whole "row" not just by the handle

distance now needs to be set not to interact badly with dropdown menus -
by default it would eat all the clicks.

Fixes #3410
2021-02-19 16:20:54 -05:00
Paolo D'Amico
b25a72d0cf
Support client-side compact number formatting & instrumentation (#3360) 2021-02-19 11:58:00 -06:00
Yakko Majuri
33c989721f
Add created by tag to individual dashboards (#3367)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-02-19 05:50:18 -06:00
Michael Matloka
cb3127ea3b
Fix tooltips over property type icons (#3404)
* Fix lack of rowKey on EventsTable

* Fix tooltips over property type icons
2021-02-19 13:41:30 +02:00
Tim Glaser
ed919918b3
Fix unselecting fields in action (#3352)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-02-18 17:09:56 -06:00
Paolo D'Amico
d7aa259d7e
Fix loading billing plans on self-hosted (#3389)
* only load plans on cloud

* move plans endpoints to /api/plans
2021-02-18 19:39:02 +01:00
Eric Duong
f1de2e9002
add properties to filter cleaner for retention logic (#3359) 2021-02-17 19:43:23 +02:00
Yakko Majuri
98b7b85af4
Fix hidden plugin config field (#3364)
* Fix hidden plugin config field

* remove console.log
2021-02-17 15:20:15 +01:00
Yakko Majuri
8e3559a4c2
Update launch toolbar CTA for new nav (#3347) 2021-02-17 13:43:45 +00:00
Eric Duong
66641546d7
Trend component test (#3278)
* temp changes

* more tests

* initial trend tests

* merge master

* remove creepover

* remove stubs

* remove unnecessary check

* remove flaky test

* change fixture

* remove console

* focus tests

* update names

* make test more specific

* remove unecessary check

* fix insights file

* checkout insight file
2021-02-17 13:50:41 +02:00
Karl-Aksel Puulmann
3a6ffad2be
Fix/replace setTimeout in logics (#3337)
* Update kea to 2.3.2

* Clear timeout before unmount

https://sentry.io/organizations/posthog/issues/2212704003/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&statsPeriod=14d

* Fix old kea ts compatibility issue
2021-02-16 12:44:23 +01:00
Michael Matloka
77b01bd9cb
Add Invite Team Member to top bar user dropdown (#3343)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-02-15 12:25:06 -06:00
Tim Glaser
5c8314ba09
Fix funnel people not showing (#3335)
* Fix funnel people not showing

* funnel viz
2021-02-15 09:50:13 +01:00
Tim Glaser
aa2295467a
Refreshing insights (#3301)
* Refreshing insights

* Fix dashboarditem

* put exceptionhog back

* Fix ts issues

* fix tests

* Fix tests

* Remove printers

* fix type errors

* fix test

* Fix flickering

* Fix issues switching between views

* Use result for backwards compatability

* Fix tests

* Refreshing insights part 2

* Get rid of last refresh

* Add breakpoint

* more breakpoints

* Remove loadFunnel function. TODO issue with refreshing funnel in dashboard

* fix refreshing issue

* fix trends loading

* Fix funnel loading
2021-02-12 16:39:49 +01:00
Tim Glaser
c536deacfa
fix more formula errors (#3326) 2021-02-12 15:31:36 +01:00
Yakko Majuri
cb979c5a2a
Remove Stats from Toolbar (#3040)
* Remove Stats from Toolbar

* wip remove logic

* move buttons down

* run prettier

* top: 15 -> 0
2021-02-12 13:36:22 +00:00
Karl-Aksel Puulmann
9402f753da
Move breakpoints around (#3313)
Solves issue from sentry:
https://sentry.io/organizations/posthog/issues/2212704003/events/eadd52c2f9f84356a1c5a2712c2b8342/?project=1899813
that popped up due to person navigating from trends before API result
came back.

(PS: Thanks marius for the new error messages!)
2021-02-12 11:13:08 +01:00
Karl-Aksel Puulmann
95630f7a6b
Return no data for invalid regexes (#3248)
* Return no data if invalid regular expression

This currently returns a 500. Fixes 3191 together with frontend
validation.

* Add browser validation

* Typing errors
2021-02-11 21:53:58 +02:00
Tim Glaser
45933d39b3
Formulas (#3275)
* Formulas

* Add frontend for formulas

* fix type issues

* fix tests

* fixxx

* fix typing

* Add better tests

* Add more tests and fix various options

* fix pie and ui updates

* fix types

* fix lifecycle and table issues

* Regression test for %B in urls
2021-02-11 20:20:01 +01:00
Karl-Aksel Puulmann
c6d00fc3ee
Allow viewing sessions/recordings on persons page (#3302)
* Add spec for being able to reach session recording to sessions page

* Add basic Person page component test

* Fix viewing session recorings on person page

I broke this in a recent PR by narrowing the URLs down too much to fix
another bug (logics clashing).

* Persons tests pass again
2021-02-11 21:14:28 +02:00
Yakko Majuri
5ad265ca18
Add selection option to plugin config (#3229)
* Add selection option to plugin config

* update naming

* bump scaffold version

* add check for choices

* bump plugin scaffold

* wip handle invalid choices

* handle invalid choices

* bump scaffold

* clean up
2021-02-11 12:25:15 +01:00
Marius Andra
fd57536aa0
Misc plugin improvements (#3288)
* redirect to "repository" tab if no plugins installed

* fix lone "." for empty descriptions

* sort repository alphabetically

* add WIP test to make sure plugins are separated by organisation

* org id can be str

* try to reset membership

* Add permission_classes to PluginSerializer

* don't show tabs if only one tab can be used

* sort installed plugins alphabetically

* don't check for updates if can't actually update

* hide some more information if can't install

* remove 'global' from plugin config

* deprecate unused 'error' field

* fix plugin permission_classes mishap

* fix test, 400 -> 403

* simplify test

* Simplify isinstance check

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-02-11 11:46:49 +01:00
Paolo D'Amico
465c87240f
Migrate team invite signup to React - Part I (Backend) (#2734)
* base API invite signup

* prevalidate invites

* allowed signed in users to claim an invite

* add more test cases

* remove legacy invite signup

* add trailing slash to endpoint

* post merge cleanup

* bring back signup_to_organization_view to be able to split the PR

* another cleanup

* bring back signup to organization template

* mask_email_address util

* fix typing

* fix tests

* fix analytics metadata

* OrganizationSocialSignupSerializer

* support social auth

* rename company_name to organization_name

* final tweaks

* add organization_name to prevalidate response
2021-02-11 11:46:42 +01:00
Tim Glaser
b9f3d3ec7c
Don't set is calculating for static cohorts (#3297)
* Don't set is calculating for static cohorts

* update frontend

* fix inconsistency

* Add migration and fix typing

* N/A

* typing

* types

* more! typing!
2021-02-11 11:07:12 +01:00
Eric Duong
399b6a544c
Revert "Revert "Revert "2794 retention people (#3108)" (#3264)" (#3271)" (#3295)
This reverts commit 9934b7905d.
2021-02-10 17:04:10 -05:00
Eric Duong
9934b7905d
Revert "Revert "2794 retention people (#3108)" (#3264)" (#3271)
This reverts commit 6b56abe876.
2021-02-10 16:45:53 -05:00
Michael Matloka
ce1d5955b5
Fix instance status page (#3292)
* Fix is_plugin_server_alive to never return None

* Handle void in RenderValue

* Fix typing
2021-02-10 16:08:21 +01:00
Michael Matloka
3111d21afc
Fix retention linear chart in dashboards (#3290) 2021-02-10 14:05:19 +01:00
Karl-Aksel Puulmann
3311b0da5a
Make page not jumpy on initial load (#3246)
By showing side nav even if scene has not loaded.

This fixes #3020
2021-02-10 08:45:28 +02:00
Eric Duong
1dac0ad699
Persons component test (#3266)
* WIP: get cypress something doing

* Get a test running

* Get css loading, stub posthog

* Move helpers to separate file

* Givens > given2

It plays nicer with beforeEach

* Test for session filters

* Test date navigation

* Test filtering

* Try keep old tests running

* Try get tests running under CI

* Prettify fixtures

* Cleanup, use cypress 6

* Add yarn build

* Fix e2e cypress tests

* given2 => givens

* Rename `frontend-test-runner` to `e2e-test-runner`

* Fix cypress test

* add devdependency

* add scaffold

* person test

* fix type

* fix check

* inline fixture

Co-authored-by: Karl-Aksel Puulmann <oxymaccy@gmail.com>
2021-02-10 08:25:17 +02:00
Karl-Aksel Puulmann
d507c876ff
Don't show "save" if user has not yet entered all cohort group data. (#3261)
Sentry error: https://sentry.io/organizations/posthog/issues/2062467419/?project=1899813&query=is%3Aunassigned+is%3Aunresolved

From recording I could see that the user filled in Dynamic group >
Action > 7 days, but never picked the action and pressed save. After
seeing no error he stood by for a while.

Also fixes some type errors and a misc bug (choosing action second
deletes days)
2021-02-10 08:24:04 +02:00
Tim Glaser
50ae632d8e
Improve entity rows layout (#3255)
* Improve entity rows layout

* adjust UI

* handle case where mathSelector is not available

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-02-09 18:32:08 +01:00
Michael Matloka
f71e9899cb
Clean up query timeout notice (#3231)
* Clean up query timeout notice

* Update wording
2021-02-09 18:27:23 +01:00
Michael Matloka
ee7289956a
Enhance Project settings (#3240)
* Update Project Danger Zone to Plugins standard

* Extract PinnedDashboards to own component

* Set default body background to white

* Fix JSBookmarklet note style

* Add project rename

* Expect data-attr in okButtonProps type error

* Rename project name section to "DIsplay Name"

* Use disabled and loading on projet DisplayName

* Add models-side Team.name min length requirement

* Make small fixes on Plugins pages

* Revert "Add models-side Team.name min length requirement"

This reverts commit 97874ed7c2.

* minor copy adjustments

* Make button "Rename Project" and improve interactivity

* Remove teamLogic.connect

* Add project rename success toast

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-02-09 18:11:53 +01:00
Eric Duong
f8a665a80c
Revert "Refreshing insights (#3144)" (#3269)
This reverts commit b804ba9619.
2021-02-09 11:37:52 -05:00
Karl-Aksel Puulmann
30b6692920
React component tests with cypress (#3233)
* WIP: get cypress something doing

* Get a test running

* Get css loading, stub posthog

* Move helpers to separate file

* Givens > given2

It plays nicer with beforeEach

* Test for session filters

* Test date navigation

* Test filtering

* Try keep old tests running

* Try get tests running under CI

* Prettify fixtures

* Cleanup, use cypress 6

* Add yarn build

* Fix e2e cypress tests

* given2 => givens

* Rename `frontend-test-runner` to `e2e-test-runner`

* Fix cypress test

* Add webpack-preprocessor as a devDependency

* Improve freezing time

* Make css inclusions automatic for component tests
2021-02-09 17:28:01 +02:00
Eric Duong
6b56abe876
Revert "2794 retention people (#3108)" (#3264)
This reverts commit 1dbd3df937.
2021-02-09 09:47:41 -05:00
Paolo D'Amico
3c46b93d9f
Instrumentation Feb-8 (#3238) 2021-02-09 15:17:53 +01:00
Karl-Aksel Puulmann
f3a75f5887
Show toast if signup fails (#3257)
* Show toast if signup fails

Companion PR: https://github.com/PostHog/posthog-production/pull/72

We have been silently showing no errors since https://github.com/PostHog/posthog/pull/3220

* adjust copy

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-02-09 15:42:29 +02:00
Paolo D'Amico
505507b040
Release onboarding #2822 & final tweaks (#3174) 2021-02-09 14:28:51 +01:00
Paolo D'Amico
ba7866a8c0
Billing page improvements (#3192)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-02-09 14:02:31 +01:00
Gustav Westling
afefa3eb43
Updated Go Instructions (#3256)
posthog.NewWithConfig returns two values [1], updated the code to use (but ignore) the error.

os.GetEnv does not work this way, use the API key directly in a string.

1: https://pkg.go.dev/github.com/posthog/posthog-go#NewWithConfig
2021-02-09 13:21:15 +02:00
Paolo D'Amico
8926864949
Fix update indicator on top navigation (#3258) 2021-02-09 12:19:21 +01:00
Tim Glaser
b804ba9619
Refreshing insights (#3144)
* Refreshing insights

* Fix dashboarditem

* put exceptionhog back

* Fix ts issues

* fix tests

* Fix tests

* Remove printers

* fix type errors

* fix test

* Fix flickering

* Fix issues switching between views

* Use result for backwards compatability

* Fix tests
2021-02-08 20:26:36 +01:00
Karl-Aksel Puulmann
3608e3bdf7
Ellipsis for long action names (#3239)
Solves https://github.com/PostHog/posthog/issues/3163
2021-02-08 18:24:13 +02:00
Eric Duong
1dbd3df937
2794 retention people (#3108)
* frontend changes

* backend changes

* remove print

* fix query

* remove print

* fix date

* fix tests

* fix trend query

* type

* adjust again

* another adjustment

* run again

* remove any

* fix array iteration
2021-02-08 10:28:38 -05:00
Paolo D'Amico
c1518e8b97
Fix more z-index wonkiness (#3210) 2021-02-08 16:23:44 +01:00
Karl-Aksel Puulmann
ac4180e551
Fix Cannot read property 'sessionsPlayLogic' of undefined (#3235)
Sentry error: https://sentry.io/organizations/posthog/issues/2205276842/?project=1899813&query=is%3Aunassigned+is%3Aunresolved
2021-02-08 17:03:28 +02:00
Michael Matloka
5e61bd7f80
Improve invites (#3232)
* Clean up Invites component

* Don't overwrite user's clipboard with invite URL unexpectedly
2021-02-08 15:18:06 +01:00
Tim Glaser
c9d607e816
Remove any loaders errors (#3220)
* Remove any loaders errors

* fix typing

* Fix line errors

* Fix formatting
2021-02-08 13:48:16 +01:00
Karl-Aksel Puulmann
159cfc97dd
Improve project deletion (#3234)
* Improve project deletion

I noticed that we immediately reload after project gets deleted - before
the actual request completes and any data is deleted, making it seem it
did not work.

This fixes that, showing a toast while the request is outgoing.

* Fix margin from CreateProjectModal error

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-02-08 13:14:07 +01:00
Eric Duong
7455b8d2a8
add type and null check before reporting (#3224)
* add type and null check before reporting

* add more types

* make type consistent
2021-02-05 15:56:27 -05:00
Karl-Aksel Puulmann
93e8e3e73d
Fix SelectBox keyboard navigation (#3211)
This was broken since I added support for it in sessions. Typescript
errors were leading to real bugs.

Sentry error: https://sentry.io/organizations/posthog/issues/2161288131/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&sort=freq&statsPeriod=14d
2021-02-05 21:38:31 +02:00
Karl-Aksel Puulmann
5fda581cbd
Add breakpoint() calls to cohortLogic (#3217)
This avoids issues if logic is unmounted before network request
finishes. https://kea.js.org/docs/guide/additional/#breakpoints

Sentry issue: https://sentry.io/organizations/posthog/issues/2072913139/?project=1899813&query=is%3Aunassigned+is%3Aunresolved&statsPeriod=14d
2021-02-05 21:27:50 +02:00