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

109 Commits

Author SHA1 Message Date
Ben White
eaf886a659
feat: Remove special padding for icon only buttons (#15351)
* feat: Remove special padding for icon only buttons

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `firefox` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Fixed styling for icon only button

* Removed old classnames

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `firefox` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Corrected padding

* Fix modal close button position

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* More fixes

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `firefox` (2)

* Fixed card component

* Fixed padding for dashboard items

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `firefox` (2)

* Revert all snapshots

* Update UI snapshots for `firefox` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Fix icon

* Update UI snapshots for `chromium` (1)

* Fixed up more template and calendar

* More fixes

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `firefox` (2)

* Update UI snapshots for `webkit` (2)

* Fix

* Improve alignment in a couple places

* Update UI snapshots for `firefox` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `firefox` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2023-05-18 21:14:11 +02:00
Marius Andra
105d7e8b10
feat(insights): support 'any event' filter (#15209) 2023-05-08 17:25:14 +02:00
Thomas Obermüller
2889b9d9e6
feat(data-exploration): use view source naming (#15263)
* feat(data-exploration): use view source naming

* visual improvements

* Fix Cypress test

---------

Co-authored-by: Michael Matloka <dev@twixes.com>
2023-04-28 09:28:00 +02:00
Michael Matloka
1c3f620549
refactor(lemon-ui): Build LemonSelect on top of LemonMenu (#15116)
* Revert "Revert `LemonSelect` refactor"

This reverts commit c9b1230d58.

* Rename `Default` story to `Flat`

* Restore `closeParentPopoverOnClickInside`

* Make end-to-end tests work properly

* Fix `OperatorValueSelect`

* Fix `sameWidth`

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-24 15:08:51 +02:00
Luke Harries
41b672146a
fix: handle quotes in the cookie value (#15189)
handle quotes in cookie value
2023-04-21 16:19:13 +00:00
Luke Harries
368a1e462c
feat: handle if user logged in to other instance and visited a link (#15119)
Co-authored-by: Michael Matloka <dev@twixes.com>
2023-04-21 11:40:29 +01:00
Thomas Obermüller
726a301b12
fix(e2e): skip flaky cypress test temporarily (#15138) 2023-04-18 14:50:07 +00:00
Thomas Obermüller
71aa12af80
feat(data-exploration): adapt page leave confirmation (#15087) 2023-04-18 15:00:49 +02:00
Michael Matloka
b5c2417b28
refactor(lemon-ui): Rename AlertMessage to LemonBanner + minor refactoring (#15086)
* Remove need for `LemonButtonInternal`

* Give `LemonDivider` the `separator` role

* Clean up some types

* Rename `AlertMessage` to `LemonBanner`

* Fix remaining `AlertMessage` instances

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Fix snapshot rename

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-14 11:03:33 +02:00
Paul D'Ambra
cccefc889f
feat: un-menu-ify-the-new-insight-button (#14876) 2023-03-24 10:11:59 +01:00
Marius Andra
016c49cb41
chore(hogql): consolidate all parts of HogQL under one feature flag (and enable HogQL beta) (#14871)
w00t
2023-03-23 17:41:16 +01:00
Paul D'Ambra
b82208edd6
feat: only show JSON tab when editing (#14861)
* feat: only show JSON tab when editing

* a couple of e2e tests

* real selectors and the right feature flags
2023-03-22 19:27:37 +00:00
Paul D'Ambra
597f79beff
feat: allow query flag with data exploration insight flag (#14845) 2023-03-22 10:36:09 +01:00
Paul D'Ambra
66dd1638ae
fix: use cached insight if the scene has it (#14842)
* fix: use cached insight if the scene has it

* add a cypress test

* better empty checking

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* slightly less bad

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-21 17:10:10 +00:00
Paul D'Ambra
1f1d2c2779
feat: replace open in query builder with new insight page (#14709) 2023-03-21 00:44:56 +01:00
Paul D'Ambra
8217ef92ab
fix: reset insight on tab change (#14798)
* fix: reset insight on tab change

* add some cypress tests

* and now a failing test

* refactor cypress file

* don't reset the insight logic

* Update cypress/e2e/insights.dataExploration.cy.ts

* hammer to crack a nut

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* tests are green

* a little cypress massaging

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* more cypress massaging

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* safer network intercept choice

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-20 20:03:11 +00:00
Paul D'Ambra
8c76766d5a
feat: a little more e2e cypress data exploration tests (#14816)
* feat: a little more e2e cypress data exploration tests

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* tests were passing by accident

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-18 17:38:11 +00:00
Paul D'Ambra
9aa1122dc1
feat: add data exploration cypress test example (#14812) 2023-03-18 10:32:22 +00:00
Paul D'Ambra
ecdfaced7b
feat: allow new insight type choice from sidebar (#14759)
* feat: allow new insight type choice from sidebar

* update e2e test

* add more e2e test fixes

* Update frontend/src/layout/navigation/SideBar/SideBar.tsx

Co-authored-by: Michael Matloka <dev@twixes.com>

* a plus and a width

* allow passing in max width to popover

* Revert "allow passing in max width to popover"

This reverts commit 415a751f71.

* third-ish times the charm

* Use a more concise tooltip

The tooltip basically functions as a on-hover label here, so using the same text as on the saved insights page, where it says "New insight".

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

---------

Co-authored-by: Michael Matloka <dev@twixes.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-16 13:56:22 +00:00
Raquel Smith
ee517e8ca2
chore: remove billing v1 from frontend (#14724) 2023-03-14 11:04:59 -07:00
Luke Harries
df583bd311
chore: remove flag from new dashboard modal (#14657)
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2023-03-14 13:31:38 +00:00
Michael Matloka
42401f6664
test(login): Verify that Google login link is correct (#14668)
* test(login): Verify that Google login link is correct

* Revert `service_warning`
2023-03-10 10:15:42 +00:00
Marius Andra
c9ab01390a
fix(frontend): popover scrollbar css (#14519)
* fix(frontend): popover scrollbar css

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Fix regression

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2023-03-07 16:56:17 +00:00
Michael Matloka
7fe1a57564
test(exports): Fix flaky exports Cypress test (#14511) 2023-03-02 15:56:31 +00:00
Paul D'Ambra
00543e0a8a
fix: turbo mode persist dashboard filters (#14403) 2023-02-27 10:22:54 +00:00
Paul D'Ambra
8b32db086a
chore: upgrade cypress (#14402)
Problem
We're two major versions of Cypress behind. They claim the newer versions are faster

Changes
dependency updates
a few fixed tests for new syntax
2023-02-25 10:25:54 +00:00
Raquel Smith
1d5181fce5
feat: verify email addresses on signup (#13632) 2023-02-24 09:19:35 -08:00
Michael Matloka
2f36cfff7c
refactor(frontend): Replace Tabs with LemonTabs (1/2) (#14191) 2023-02-13 17:13:07 +01:00
Michael Matloka
7a25d1d803
feat(lemon-ui): Add LemonSegmentButton and use it in insights (#14070) 2023-02-03 15:58:41 +01:00
Michael Matloka
50b02718a5
refactor(lemon-ui): Consolidate component library structure and naming (#14043) 2023-02-03 12:40:22 +01:00
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
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
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