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

1091 Commits

Author SHA1 Message Date
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