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

1008 Commits

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