0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
Commit Graph

355 Commits

Author SHA1 Message Date
PostHog bot
3b73cac473
chore(deps): Update posthog-js to 1.42.2 (#13950)
* chore(deps): Update posthog-js to 1.42.2

* revert test

Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
Co-authored-by: eric <eeoneric@gmail.com>
2023-01-26 15:59:32 -05:00
PostHog bot
0dca6bd92f
chore(deps): Update posthog-js to 1.42.0 (#13943)
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2023-01-26 17:49:21 +00:00
Raquel Smith
bac246a98e
chore: hook pricing table to billing service plans (#13857)
* Get rid of control version

* Don't show option to license on billing page

* Remove ff constant

* Include plans in billing response

* Update types for the plans

* Hook up the top of the table

* Fill out the rest of the table

* Hook up the rest of the table

* Add tooltip with feature descriptions

* Fix type errors

* Fix more type issues

* Remove old plan data

* clean up

* exclude features we don't want to show in table

* Tolerate missing plan keys

* fix mypy

* Update cypresss test

* Fix mypy again

* Just get whatever default plans

* fix tests

* Update snapshots

* Update snapshots

* moar test fixes

* use is_free to know if free plan

* Say the free allotment is incl'd if base has $ price

* Update snapshots

* Don't change anything having to do with licenses

* Fix type error

* Update snapshots

* Update snapshots

* Use product name from stripe

* only lowercase

* don't hardcode plan names

Co-authored-by: Emanuele Capparelli <k@emkpp.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-26 16:04:30 +00:00
Paul D'Ambra
5aa4995398
fix: dashboard modal could not cope with deleted tiles (#13794)
Problem
@annikaschmid accidentally deleted an insight from a dashboard and then couldn't put it back.

The insight API response was returning the deleted dashboard in the insight's dashboards field. That meant the UI didn't offer the ability to add it to that dashboard because it thought it was already added

Even though there was a test that protected against this which passes and I couldn't figure out why the application behaves well in the test and not when running 🤷

Changes
The dashboard_tiles relation is correct. And we should eventually remove the use of the dashboards relation.

So, let's expose it. This begins the deprecation of the dashboards field on the Insight API.

And overwrites the content of the dashboards field with the correct values when returning a representation of the model.

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2023-01-25 13:09:58 +00:00
Karl-Aksel Puulmann
a62555a230
chore: rename is_event_property from property definitions API (#13838)
* Rename is_event_property API response value

* is_event_property parameter -> filter_by_event_names

* Add missing test

* Remove some illegal tests
2023-01-23 10:59:37 +02:00
Li Yi Yu
b65671195b
fix: new flags default to 0% rollout instead of 100% automatically (#13719)
* default display 0% rollout on new flags

* easier fix update

* add condition set rollout starts at 0

* fix tests

* fix test again

* test fix
2023-01-18 18:29:26 -05:00
Michael Matloka
6662b6a39b
style: Replace Ant icons with Lemon ones pt. 2 (#13762) 2023-01-18 18:27:15 +00:00
Thomas Obermüller
46e7f150e3
refactor(e2e): add .cy to cypress spec filenames (#13528) 2022-12-30 21:27:26 +01:00
Paul D'Ambra
cec352b6bf
fix: load insights less frequently (#13514)
## Problem

In this thread https://posthog.slack.com/archives/C0368RPHLQH/p1672383272168819 @macobo spotted that we are loading the list of insights more frequently than we need to due to a code path that keeps the turbo mode cache up-to-date for `savedInsightsLogic`

## Changes

Since the `DashboardsModel` action being reacted to passes the `InsightModel` that was updated. We can update the state in-memory without an API call

## How did you test this code?

added developer tests and checked the site running locally
2022-12-30 16:30:53 +00:00
Thomas Obermüller
7414ae04ff
test(e2e): convert cypress to typescript (#13513) 2022-12-30 11:23:09 +01:00
Raquel Smith
4c837d6d5a
chore(signup): make the product benefits test the default (#13197)
* Make the product benefits test the default
and put hog on login

* Refactor BridgePage to be just a container
And put extra stuff in the relevant components

* Only let someone set the hog message if hog exists

* Fix test

* Remove the flag constant

* Update SignupContainer.tsx

Co-authored-by: Emanuele Capparelli <kappa90@users.noreply.github.com>
2022-12-09 15:01:54 +02:00
Michael Matloka
b9883fdae7
chore(demo): Remove old demo route and mark remaining code as legacy (#13004)
* chore(demo): Remove old demo route and mark remaining code as legacy

* Add setup_dev deprecation warning

* Update legacy demo JSON paths
2022-11-30 17:32:32 +00:00
Emanuele Capparelli
fe494003cc
feat: secondary activation flow (#12956)
* feat: secondary activation flow

* fix position

* add close button

* add logic test

* remove unused test

* review changes

* refactor logics and fix

* use urls don't construct url manually

* restore urlToAction behavior

* review changes

* forgot to commit code doh

* fix

* fix

* fix

Co-authored-by: Alex Kim <alexgkim205@gmail.com>
2022-11-29 16:33:50 +00:00
Michael Matloka
b2cddc3303
fix(homepage): Don't load dashboard twice (#13001)
* fix(homepage): Don't load dashboard twice

* Add Project Homepage Cypress test

* Simplify call count assertion
2022-11-29 11:57:58 +01:00
Raquel Smith
72f7952ace
fix: update placement and verbiage for sign in and register links on auth forms (#12995)
Make login and signup links on auth forms more consistent
2022-11-29 00:05:48 +00:00
Marius Andra
daf1a0b7fa
feat(toolbar): rename editor to toolbar, add toast on error (#12362)
* feat(toolbar): rename editor to toolbar, add toast on error

* add missing types

* be less noisy when expired token comes a previous page load

Co-authored-by: Michael Matloka <dev@twixes.com>
2022-11-28 22:10:00 +01:00
Raquel Smith
899ea3e5f6
chore(signup): Remove the control version of the signup form (#12989)
* Remove the `control` version of the signup form
the test performed better and now becomes our control

* Update tests
2022-11-28 22:51:21 +02:00
Michael Matloka
d07e3da3e8
fix(invite-signup): Stop confusing password managers with masked emails (#12918) 2022-11-23 12:55:58 +01:00
Raquel Smith
181b8faba1
test(signup): test social login organization form (#12880)
Test the social login organization form
2022-11-22 08:41:17 -08:00
Raquel Smith
f71b553953
feat(signup): add the role field to the other signup forms (#12809)
* Add the role field to the other signup forms

* Update tests

* Remove empty file
2022-11-16 13:35:17 -08:00
Paul D'Ambra
faf29ea1f2
feat: choose whether to duplicate insights with dashboard (#12648)
Problem
Via customer feedback: If someone is duplicating a dashboard they might not want to duplicate the insights on it.

Changes
This lets them choose.
2022-11-10 17:12:52 +00:00
Paul D'Ambra
e6ea44ed9f
chore: refactor card meta to allow sharing it (#12637)
lifted out of #12560

Text and Insight Cards have a lot of overlap but could share more code
2022-11-09 15:01:50 +00:00
Paul D'Ambra
63a1cb56e5
feat: choose if dashboard deletion also deletes insights (#12640)
Problem
Via customer feedback: If someone is deleting a dashboard they want to delete the insights too. At the moment that means they have to delete them one at a time.

Changes
Introduces a modal when deleting a dashboard that lets you choose whether to delete the insights on the dashboard

Soft-deletes the insights as appropriate
2022-11-08 15:50:58 +00:00
Emanuele Capparelli
ddbd03127e
fix: flaky cypress billing tests (#12677) 2022-11-08 13:06:06 +00:00
Paul D'Ambra
452fa591dd
chore: wait for page to settle before starting tests (#12671)
wait for page to settle before starting tests
2022-11-08 11:03:40 +00:00
Michael Matloka
9acef00c83
fix(login): Allow retrying login after invalid email/password attempt (#12572) 2022-11-02 14:57:29 +00:00
Eric Duong
545cdb126c
refactor: clean up feature-flag-ux flag (#12411)
refactor: clean up flag
2022-10-25 02:03:46 +00:00
Michael Matloka
412e055657
feat(trends): Compact series math selector (#12377)
* chore(trends): Fix up Trends math options

* Rework math selector

* Restore Group Analytics upsell footer

* Put "Count per user" second

* Update E2E test

* Update snapshots

* Fix `ListRowOption` typing

* Fix nested selection

* Rename `EventPerActorCount` to `EventCountPerActor`

* Fix math category

* Incorporate #12380

* Fix typing

* Update hobby-ci.py

* Revert "Update hobby-ci.py"

This reverts commit e832d86359.

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-10-24 15:29:33 +02:00
Michael Matloka
3df3825a73
fix(insights): Redirect on new insight "Save & continue editing" (#12384)
* fix(insights): Redirect on new insight "Save & continue editing"

* Add Cypress assertion
2022-10-24 13:40:14 +02:00
Paul D'Ambra
dcb771aa83
chore: check turbo mode is updated in more insight e2e tests (#12378) 2022-10-21 10:15:03 +01:00
Paul D'Ambra
ed049830df
chore: add some cypress tests that exercise turbo mode more (#12350)
* chore: add some cypress tests that exercise turbo mode more

* a little before eaching
2022-10-20 13:24:56 +01:00
Paul D'Ambra
5c72f2d51e
chore: remove some feature flags (#12219)
Removes an unused flag TOOLBAR_LAUNCH_SIDE_ACTION
removes a flag ALLOW_CSV_EXPORT_COLUMN_CHOICE that has been on for cloud users for 23 days
2022-10-17 14:03:35 +01:00
Tiina Turban
7f2b274770
chore: remove merge persons option from persons page (#12034) 2022-10-11 15:44:10 +02:00
Ben White
1e0f1f591c
feat: Added more buttons for viewing recordings from data management (#12162) 2022-10-10 15:27:53 +02:00
Alex Gyujin Kim
e00157469a
feat(recordings): navigate from data management event to recording (#12129) 2022-10-10 09:55:23 +02:00
Paul D'Ambra
18f13d19c5
chore: cypress to wait for API call to complete before checking UI state (#11889) 2022-09-20 20:01:54 +01:00
Marius Andra
91a43ea413
chore(actions): rename calculated events to actions, remove flag (#11864)
* chore(actions): rename calculated events to actions, remove flag

* remove even more action-event code

* remove deprecated tests

* fix cypress
2022-09-20 14:46:40 +02:00
Ben White
b607de4c8e
fix: Popup within Popup clicking (#11761) 2022-09-15 08:42:08 +00:00
Paul D'Ambra
b391b6db8b
fix: test is less flaky if it doesn't select using focussed (#11824) 2022-09-15 08:40:49 +01:00
Paul D'Ambra
303e88bbfc
feat: save title or description of insight or dashboard on blur (#11774)
* revert: #11552

* feat: save title and description on blur

* allow undo when renaming insight

* minimise change

* minimise change

* fix cancelling and add conditional updatedaashboard undo

* no need to change saved insights logic

* only save on blur if value has changed else cancel

* add cypress test to rename insight

* add a cypress test that you can change (and revert that change) an insight name

* wait for insight save to complete
2022-09-14 20:02:51 +01:00
Li Yi Yu
d4508ed47a
fix: use lemon components for taxonomic property filters (#11539)
* use lemon components for taxonomic property filters

* add property value class

* fix

* use lemon select props instead

* slightly less generic classname

* add back classname for tests

* do not use muted alt

* label with classname

* feat: Ungrid filter row to help with lemonizing (#11733)

Co-authored-by: Ben White <ben@benjackwhite.co.uk>
2022-09-10 11:40:13 -04:00
Ben White
80b3212898
feat: Lemon Skeletons (#11629) 2022-09-08 13:54:00 +00:00
Ben White
7403d1f3e2
fix: Simplified PropertyKeyInfo everywhere (#11591) 2022-09-02 16:25:29 +02:00
Ben White
8652246b95
fix: NewActionButton casing and modal (#11568) 2022-09-01 10:45:10 +02:00
Tiina Turban
c6b1da5932
fix: hide initial referrer as event property (#11536) 2022-08-30 18:07:02 +02:00
Emanuele Capparelli
b3ed063e7a
fix: remove data tooltip, improve prompt rules, add caching fix (#11495)
* fix: remove data tooltip and improve prompts rules

* fix test fixtures

* simplify expression

* fix cypress

* add cache prefix

* Update frontend/src/lib/components/LemonButton/More.tsx

Co-authored-by: Marius Andra <marius.andra@gmail.com>

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2022-08-25 16:25:59 +00:00
Ben White
3b1fe40828
feat: Lemonify Signup/Login (#11266) 2022-08-25 15:07:44 +01:00
Marius Andra
7cf3f71215
feat(data-management): add custom events list (#11463)
* feat(data-management): add custom events list

* remove dead code

* fix test

* assert what matters

* this seems flakey, even locally, though the interface shows the right data locally... testing a timeout

* new script

* fix test

* remove frontend changes (PR incoming)

* describe meaning behind symbols
2022-08-25 11:00:34 +00:00
Emanuele Capparelli
456484927a
fix: revert remove data-tooltip (#11447)
Revert "fix: remove data tooltip and improve prompts rules (#11441)"

This reverts commit 721f1ea038.
2022-08-23 19:35:58 +01:00
Emanuele Capparelli
721f1ea038
fix: remove data tooltip and improve prompts rules (#11441)
* fix: remove data tooltip and improve prompts rules

* fix test fixtures

* simplify expression

* fix cypress
2022-08-23 18:15:39 +01:00