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

589 Commits

Author SHA1 Message Date
Bianca Yang
d8e7d1a4a7
feat: Add Cypress Tests for Onboarding Flow (#20676)
* wip

* iteration 1

* some small fixes

* update

* Update UI snapshots for `chromium` (1)

* fix up product intro page test

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* rebase on main, fix a type issue

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* remove console log

* remove extraneous file

* fix tests again...

* Update UI snapshots for `chromium` (2)

* more test tweaks

* Update UI snapshots for `chromium` (2)

* yet another set of fixeds

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* one more test tweak

* fix(admin): follow up for org page performance improvements (#20912)

* feat: Add clickhouse migration to create a dictionary (#20665)

* feat: Add clickhouse migration to create a dictionary

* refactor: Use dictionary created in migration for squashing

* fix: Test file drop references to dictionary

* fix: Update comment

* chore: Master merge

* fix: Typo in dictionary

Co-authored-by: James Greenhill <fuziontech@gmail.com>

---------

Co-authored-by: James Greenhill <fuziontech@gmail.com>

* fix: picking embedding input samples (#20913)

* fix: Split healthcheck to separate nginx unit app (#20917)

Split healthcheck to separate nginx unit app

When posthog is under load the healthcheck can stop responding.
Split it off into a separate app so it has a dedicated thread to handle it

* chore: BillingProduct cleanup (#20910)

* fix: show names on frontend (#20918)

* fix(experiment): revert default goal back to Trends (#20921)

* Add missing healthcheck routes to app (#20923)

* Add missing healthcheck routes to app

* Switch healthz to _health

* chore: Add context to deployment messages (#20911)

Add context to deployment messages

Co-authored-by: xneyder <xneyder@gmail.com>

* chore(environments): Add migration to backfill projects (#20887)

* chore(environments): Add migration to backfill projects

* Fix `noop`

* Add `project_id` to plugin server test setup

* Fix `project_id`

* Also add `posthog_project` to plugin server tests

* Update `createTeam`

* Fix func tests

* refactor(style): do not use star imports for locals (#20915)

* feat(sentry): enable sampling via http header (#20916)

* fix: Add missing underscore to healthcheck routes (#20926)

Add missing underscore to healthcheck routes

* chore(deps): Update posthog-js to 1.115.0 (#20924)

* fix(toolbar): Keep flags in sync (#20927)

* fix(toolbar): Keep flags in sync

* add test

* fix: some typos in summary settings (#20925)

* fix: some typos in summary settings

* Update UI snapshots for `chromium` (2)

* don't compare instance equality you fool

* feels wrong for reset to change opt in status...

* Fix

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

* fix: custom player inspector events should respect mini filters (#20929)

* fix: custom player inspector events should respect mini filters

* all the alls

* fix: don't show billing step on self-hosted (#20931)

don't show billing step on self-hosted

* chore: improve onboarding spacing consistency (#20838)

* Make the space between sections consistent

* add more space above team section

* Improve the topbar spacing and positioning

* Move the breadcrumbs above and center the title

* Make spacing consistent across all SDKs

* Add chain op to plans for when they aren't available

* Make sdk margin top consistent with other steps

* Update the invite onboarding step title

* Move the breadcrumbs to be left aligned

* Set top bar title to onboarding in onboarding

* Fix cypress tests

* Update cypress tests

* Remove stale snapshots

* remove billing changes

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

* fix: flappy snapshot (#20930)

* attempt fix for flappy snapshot

* Update UI snapshots for `chromium` (2)

* fix another one

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

* fix storybook

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* fix some tests

* another round of fixes

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
Co-authored-by: Tomás Farías Santana <tomas@tomasfarias.dev>
Co-authored-by: James Greenhill <fuziontech@gmail.com>
Co-authored-by: David Newell <d.newell1@outlook.com>
Co-authored-by: Frank Hamand <frankhamand@gmail.com>
Co-authored-by: Juraj Majerik <juro.majerik@gmail.com>
Co-authored-by: danielxnj <115043334+danielxnj@users.noreply.github.com>
Co-authored-by: xneyder <xneyder@gmail.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
Co-authored-by: PostHog Bot <69588470+posthog-bot@users.noreply.github.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
Co-authored-by: Zach Waterfield <zlwaterfield@gmail.com>
2024-03-18 21:19:26 -07:00
Bianca Yang
485fd52607
feat: Experiment with language on billing pages in app (#20567)
* toggle upgrade language depending on flag value

* forgot some local changes

* update credit card case language

* Update UI snapshots for `chromium` (1)

* add event to record subscription status

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* add tests

* remove length check

* 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 `webkit` (2)

* Update UI snapshots for `chromium` (2)

* make common button component

* some more small changes

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* remove extraneous files

* remove optional chaining

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* remove test...rename event

* Update UI snapshots for `chromium` (1)

* didn't save before commiting

* undo changes to billing cypress test

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* finally get cypress to work!

* small fix to test

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* remove from paygate mini

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* remove paygate test

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* remove extraneous files

* remove files!

* Update UI snapshots for `webkit` (2)

* 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 tests

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
2024-03-18 12:03:29 -07:00
Ben White
2778c6ba28
feat: ~LemonMulitSelect~ LemonInputSelect (#20948) 2024-03-18 13:27:29 +01:00
Ben White
fa5b3d8654
fix: Org member / admin naming (#20937) 2024-03-15 12:43:51 +01:00
Zach Waterfield
64c8d2d417
chore: improve onboarding spacing consistency (#20838)
* Make the space between sections consistent

* add more space above team section

* Improve the topbar spacing and positioning

* Move the breadcrumbs above and center the title

* Make spacing consistent across all SDKs

* Add chain op to plans for when they aren't available

* Make sdk margin top consistent with other steps

* Update the invite onboarding step title

* Move the breadcrumbs to be left aligned

* Set top bar title to onboarding in onboarding

* Fix cypress tests

* Update cypress tests

* Remove stale snapshots

* remove billing changes

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-14 11:34:47 -04:00
Juraj Majerik
5146227905
feat(experiments): add step 2 (Goal) (#20815)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2024-03-13 06:37:19 +00:00
Thomas Obermüller
1af8f779b3
fix(funnels): do not load funnels with a single step (#20768) 2024-03-12 14:39:05 +00:00
PostHog Bot
3d73992761
chore(deps): Update posthog-js to 1.112.1 (#20782) 2024-03-11 07:48:55 -04:00
Eric Duong
b7c5d13cfb
feat(data-warehouse): add linked properties to person filters (#20720)
* add linked props

* selectors for columns

* populate

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* add icon and metadata

* Update UI snapshots for `chromium` (2)

* types

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* types

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* propogating table_name through frontend filters

* chain using table name if it's populated

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* rename to table

* rename to table

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* use field name

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* add labeling in case of duplicates

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update cy test

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* add key

* Update UI snapshots for `chromium` (2)

* whitelisted

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* lint error

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* set to exact on change

* flip order

* property def loading

* update types

* more types

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tom Owers <owerstom@gmail.com>
2024-03-08 19:42:53 -05:00
Ben White
c8a4403d45
feat: Standardise table links and tidy event definitions (#20762) 2024-03-08 13:06:00 +01:00
Tom Owers
4a60cad645
feat(hogql): Allow lazy joins on lazy tables with requested fields (#20731)
* WIP

* Clean up and tests

* Updated mypy

* Updated lazy tables to work without resolving types twice

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Updated mypy

* Fixed cohort people and joining multiple lazy tables

* Fixed infinite recursion

* Dont use an extra column for hogql expressions

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-08 11:40:43 +01:00
Julian Bez
7b8857383d
refactor(dashboards): Remove dead dashboardLogic/dashboardsModel code (#20508)
* Fix dashboard insight reuse

* Update more

* Beef up tests

* Make dashboard `id` required and remove `propsChanged`

* Remove the unused `updateDashboardTile` action

* Remove unused `dashboardsModel` and `dashboardLogic` reducers

* Revert savedInsightsLogic.ts change

* Restore `loadDashboardItemsSuccess` branch

* Update dashboardLogic.test.ts

* Update UI snapshots for `chromium` (2)

* Remove new E2E test code

* Update UI snapshots for `webkit` (2)

---------

Co-authored-by: Michael Matloka <michal@matloka.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-07 15:44:57 +01:00
Ben White
c44e06096f
revert: Revert of api toast changes (#20749) 2024-03-07 11:58:22 +00:00
Ben White
bf766f8c4c
revert: API toast changes (#20748) 2024-03-07 11:27:23 +01:00
Ben White
fd440429a3
feat: 87% fewer toast messages (#20385) 2024-03-07 08:41:39 +01:00
Neil Kakkar
493a2556e2
fix(flags): Refactor release conditions to be noice (#20537) 2024-03-06 13:12:00 +00:00
Raquel Smith
a018d0a8a0
feat: add feature gating for teams plan (#20435) 2024-03-04 07:07:09 -08:00
Bianca Yang
1cc29db368
fix: Tweak the /products and config onboarding pages to better match mocks. (#20390)
* fix up /products page, fix up config pages

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* remove commented out code

* Revert "Update UI snapshots for `chromium` (1)"

This reverts commit d0994ba16aa92fb5096c9c55ca1990cd9094360a.

* Revert "Update UI snapshots for `chromium` (2)"

This reverts commit f78b780a5be794394d656173ddd324b6d94f9207.

* type errors

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* pr comments

* fix small visual nit

* merge, fix up test

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* types!

* fix: allow usage exceeded alert to be dismissed (#20282)

* allow usage exceeded alert to be dismissed

* Update UI snapshots for `chromium` (1)

* forgot a css change

* reset dismissKey if status reverts to not usage exceeded

* fix the cookie reset logic

* hide billing notice on intro screens

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Revert "Update UI snapshots for `chromium` (1)"

This reverts commit 58f0a2dd05.

* temp for attempting to use logic to reset localstorage

* fix up my banner logic reset

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* undo changes made for testing purposes

* Revert "Update UI snapshots for `chromium` (2)"

This reverts commit 9a70d4fce4.

* Revert "Update UI snapshots for `webkit` (2)"

This reverts commit 8bd00799be.

* Revert "Update UI snapshots for `chromium` (1)"

This reverts commit cc8b660001.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

* remove scss file, center vert /products

* Revert "Update UI snapshots for `chromium` (2)"

This reverts commit 6954c5f563.

* Revert "Update UI snapshots for `chromium` (2)"

This reverts commit ce9cdaeb57.

* Revert "Update UI snapshots for `chromium` (2)"

This reverts commit 1a3d6a7e51.

* Revert "Update UI snapshots for `chromium` (2)"

This reverts commit 0f419bf773.

* delete snapshots

* clean up some more snapshots

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-29 12:41:23 -08:00
PostHog Bot
97e4751421
chore(deps): Update posthog-js to 1.109.0 (#20570) 2024-02-27 09:37:58 -05:00
Bianca Yang
0b8aab629b
fix: Fix Transition Between /products --> Onboarding --> Product Intro Pages (#20491)
* fix some state problems

* add onboarding test for this specific case

* some small updates
2024-02-22 00:35:59 +00:00
Raquel Smith
bed4d790e9
feat: use billing info for PayGateMini (#20438)
* refactor PayGateMini

* cypress command for handling subscription status

* fix
2024-02-20 22:43:48 +00:00
Thomas Obermüller
864a3bbb3e
refactor(funnels): unify vertical and horizontal graph names (#20409) 2024-02-20 20:10:01 +01:00
Li Yi Yu
5951ec301d
fix(surveys): survey results viz fixes (#20345)
* rename count bar to follow event name format

* add explore more results button

* fix squished options height

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* fix wording

* Update UI snapshots for `webkit` (2)

* add data attr

* clarify match

* add bar chart icon

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-15 18:20:03 +00:00
Marius Andra
de278a298e
fix(insights): Move from GET to POST queries (#19859) 2024-02-12 16:33:04 +01:00
Ben White
b7855c5a0f
feat: Tighter modals (#20238) 2024-02-12 14:11:41 +00:00
Ben White
f691f1e9a1
chore: Remove old prompts work (#20229) 2024-02-12 08:45:57 +00:00
Michael Matloka
6347750da6
test(dashboards): Add test for loading results on shared dashboards (#20146)
This fails currently – yay! Should pass after merging with master.
2024-02-06 12:09:16 +01:00
Neil Kakkar
ca28a69bff
fix(taxonomic-filter): Make selecting between property types more sea… (#20094) 2024-02-05 15:51:55 +00:00
Juraj Majerik
127dee3a75
feat(feature flags): do not set default rollout percentage (#20030)
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2024-01-31 09:31:45 +01:00
David Newell
0dd78c59c0
chore: remove antd progress (#19953) 2024-01-26 16:03:17 +00:00
Juraj Majerik
ee7fa54136
chore(experiments): set up e2e test (#19916) 2024-01-25 11:19:21 +01:00
Neil Kakkar
f698daf62a
fix(flags): Allow fractions for flag rollout (#19946)
* fix(flags): Allow fractions for flag rollout

* fix
2024-01-24 16:45:47 +00:00
Michael Matloka
25e56f38b0
chore(navigation): Clean up account popover (#19904)
* Rename `SitePopover` to `AccountPopover`

* Condense "Instance" section of account popover and use new icons

* Use small radius for `Lettermark`

* Convert status descriptions casing in general

* Link to async migrations again

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-24 07:48:33 +00:00
Ben White
14d66fe467
fix: Redirect from /home (#19754)
* Fixed homepage redirect
Fixed issue with insights checking the url for dashboard context

* Fix removal of redundant project ID

* Redirect to canonical pathname

* Fix missing import

* Also ensure `urls.foo()` functions return canonical URLs

* Revert "Also ensure `urls.foo()` functions return canonical URLs"

This reverts commit ce76af3760.

* Update tests

* Fix tests

* Fix org and project creation scenes

* Keep params on canonical URL redirect

---------

Co-authored-by: Michael Matloka <michal@matloka.com>
2024-01-15 16:44:56 +01:00
Marius Andra
efe8f57504
fix(actions): use the same words as in insights (#19730) 2024-01-15 12:44:50 +01:00
Marius Andra
8ccdde769f
feat(frontend): implement project-based routing (#13474) 2024-01-15 10:31:54 +01:00
Michael Matloka
6b4a936147
chore(3000): Remove unused test and clean up cohort buttons (#19629)
* Remove malformed, unused E2E test

* Improve cohorts top bar buttons
2024-01-08 13:26:43 +01:00
Michael Matloka
5c51230ea4
chore(frontend): Real Tailwind + Autoprefixer (#19051)
* chore(frontend): Real Tailwind + Autoprefixer

* Align some non-standard utility class usage with Tailwind

* Start using container queries

* Update tailwind.config.js

* Move PostCSS packages into prod dependencies

* Add EE

* Add larger spacings for properties other than width

* Fix spacing backward compat

* Add max-w-1/2

* Remove Tailwind normalization

* Ensure JIT analysis works

* Actually we don't need a container query for this

* Clean up more

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update production.Dockerfile

* Extend `fontSize` instead of replacing

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Fix production build

* Add clarification comment

* Update trends.cy.ts

* Fix `scale` usage

* Fix minor styling issues

* Upgrade to Tailwind 3.4

* Actually use `cssnano`

* Don't use `cssnano` in dev

* Solve annoying Tailwind logs

* Add comment explaining plugins being defined twice

* Fix side panel icon rotation

* Reset snapshots

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update query snapshots

* Fix dockerfile

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Fix up flag wrap

* Update UI snapshots for `chromium` (2)

* Fix

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ben White <ben@posthog.com>
2024-01-08 13:26:12 +01:00
David Newell
e87d9bb586
chore: remove all input number (#19545) 2024-01-05 08:46:01 +01:00
Michael Matloka
05d8ec843d
refactor: Simplify breadcrumb keys (#19370)
* Rework breadcrumb keys with IDs to include scene

* Use the breadcrumb key in data-attr

* Remove `globalKey`

* Fix selectors

* Use joined breadcrumb key for fragment and `data-attr`

* Fix missing `sceneBreadcrumbs` keys
2024-01-04 20:43:58 +01:00
Manoel Aranda Neto
e28d34c6e9
chore: Add Flutter feature flags snippets (#19563) 2024-01-03 13:19:09 +01:00
Thomas Obermüller
e1c68da4bf
chore(3000): remove feature flag (#19416) 2023-12-27 09:52:28 +01:00
Ben White
4db19fba2e
fix: Issues with creating a notebook and deleting opening the side panel (#19197) 2023-12-11 08:37:12 +01:00
Paul D'Ambra
d229aa622e
fix: year in hog fangling (#19189)
* fix: year in hog fangling

* fangling

* fix

* remove skip

* style improvements

* tooltip the explanation

* achievements unlocked needs to have 2 badges to not be a bit rubbish
2023-12-07 21:34:44 +00:00
David Newell
54d722660c
fix: broken notebooks cypress test (#19191) 2023-12-07 19:49:42 +00:00
Paul D'Ambra
5e8c11d208
feat: progress component (#19181)
* feat: progress component

* fix

* schema

* bar as a style

* snaps
2023-12-07 18:58:16 +00:00
Joe Martin
fa682f934e
fix: Onboarding button length (#19101)
* fix: Onboarding button length

* Update UI snapshots for `chromium` (2)

* 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 end-to-end tests

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
Co-authored-by: Michael Matloka <michal@matloka.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2023-12-07 16:56:39 +00:00
Bianca Yang
bf052e8b25
fix: fix fixture typos (#19108)
fix fixture typos

Co-authored-by: Bianca Yang <bianca@posthog.com>
2023-12-06 14:30:34 -08:00
Bianca Yang
70b04a8163
feat: Test that 'survey sent' Event is Triggered when Submitting Non-Empty Unsubscribe Survey (#18805)
* test that 'survey sent' event was triggered

* remove unneeded config changes

* update env vars, update test to check event payload

* make capture url slightly stricter

---------

Co-authored-by: Bianca Yang <bianca@posthog.com>
2023-12-05 13:06:24 -08:00
Li Yi Yu
93774bfa58
chore(surveys): refactor and clean up old flags (#18972)
* refactor and clean up old flags

* 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-11-30 10:17:30 -05:00
Michael Matloka
ba84454531
fix(3000): Ensure all scenes work well with the new top bar (#18890)
* Remove dark mode `KeyboardShortcut` color hack

* Ensure that top bar is always compact at bottom of scene

* Remove top bar renaming from Notebooks

* Refactor the experiment scene to use `PageHeader` properly

* Improve `EditableField` sizing

* Add top bar renaming to actions and playlists

* Sort KeyboardShortcut.scss

* Fix missing warehouse mocks and strictly prevent toasts

* Fix CompactList divider width

* Fix missing early return

* Fix random typos

* Fix casing of buttons

* Reorder definition view top bar buttons

* Update Cypress test

* Fix typo

Co-authored-by: David Newell <d.newell1@outlook.com>

* Update casing in E2E test too

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: David Newell <d.newell1@outlook.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-27 15:27:00 +00:00
Paul D'Ambra
3cb9ed4b30
feat: Toolbar 3000 (#17276) 2023-11-23 12:54:01 +01:00
Soon-Mi Sugihara
9b35787855
feat(surveys): Add open-ended choices for multiple and single choice surveys (#18258)
* feat(surveys) Add open-ended choices for multiple and single choice surveys

* Validate question choices in backend

* Update open choice behavior and appearance to reflect posthog-js

* Change multiple and single choice questions to have has_open_choice field

* Fix survey logic test

* Remove key warning

* Change has_open_choice to hasOpenChoice

* Hide Add Open-Ended Choice button behind feature flag

* Remove border from text input

* Pass frontend CI tests
2023-11-22 18:14:37 -05:00
Michael Matloka
69becac200
chore(frontend): Sort imports (#18663)
* chore(frontend): Sort imports

* Fix Storybook build problem

* Try a different fix

* Fix another circular import

* Fix more circular imports

* Fix logic connection

* Ignore `cypress` in TS

* Don't check import order in logic types

* Fix another `connect()`

* Don't sort imports in Notebooks nodes code

* Fix another connection

* Increase specificity of .LemonButton against .Link

* Fix styling issues

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-22 15:07:34 +01:00
Neil Kakkar
e35c8e574d
feat(flags): Add easy cohort generator (#18607) 2023-11-22 11:13:52 +00:00
David Newell
0bbd150e7a
feat(3000): 3000 colors (#18545) 2023-11-20 11:53:12 +00:00
David Newell
271c01b070
chore: radio to segmented button (#18594) 2023-11-17 15:57:11 +00:00
Bianca Yang
558661e84d
fix: fix unsubscribe survey typo (#18585)
* fix unsubscribe survey typo

* try to test surveys with event capture

* undo attempt at intercepting posthog.capture in cypress

---------

Co-authored-by: Bianca Yang <bianca@posthog.com>
2023-11-15 16:04:48 -08:00
Ben White
6676a1d504
feat: Refactor and simplify insights css (#18570) 2023-11-15 16:47:05 +00:00
Thomas Obermüller
56cf18ff29
fix(notebooks): use varying keys for global filters (#18601) 2023-11-14 14:38:36 +00:00
Bianca Yang
0521e2e9a5
fix: survey doesn't get dismissed when response textarea is empty (#18471)
* fix: survey doesn't get dismissed when response textarea is empty

* address pr feedback

* fix logic nit

* fix up the logic...

---------

Co-authored-by: Bianca Yang <bianca@posthog.com>
2023-11-09 13:25:20 -08:00
Ben White
409b72380e
feat: Settings 3000 (#18419) 2023-11-09 10:08:33 +01:00
Ben White
e118f3bdb0
feat: Sidebar cohorts and annotations movement (#18200) 2023-11-08 16:16:05 +01:00
Tom Owers
2a172a1f2f
fix: fixed 'yesterday' insights not filtering on the correct end date (#18412)
* Fixed 'yesterday' insights not filtering on the correct end date

* Fixed test
2023-11-07 10:17:51 +00:00
Bianca Yang
6c0168350d
feat: Add Unsubscription Survey (#18231)
* Add unsubscription survey

* Ask users why they're unsubscribing before they submit their unsubscription request.

* update to use kea for state management, clean up some logic around finding matching surveys

* resolve typo

* pr feedback

* CTA for contacting support in survey modal
* remove getActiveMatchingSurveys call since we can directly use the surveyID.

* add storybook for billing unsubscribe survey

* add basic cypress tests for the unsubscribe survey

* adding in product type as a response to our multi-question survey

* update survey to show more information about how users might control their costs

* another round of tweaks to survey

* beef up tests

---------

Co-authored-by: Bianca Yang <bianca@posthog.com>
2023-11-02 13:34:45 -07:00
Li Yi Yu
fb6e408d0a
feat(surveys): auto opt in and out surveys for users (#18080)
* opt in surveys when creating survey and opt out when no active surveys

* update survey banner warning

* add auto opt ins for surveys list launch and stop surveys

* remove from onboarding step

* Update UI snapshots for `chromium` (2)

* update opt in from backend instead

* add filter for api surveys and post delete to receiver

* Update query snapshots

* fix popup flicker

* ambr snapshots

* disabled popup banner rename

* exclude api surveys in query instead

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-20 18:01:38 +00:00
Neil Kakkar
7b8072de4b
fix(surveys): Some UI/UX issues (#18070)
* fix more issues

* fix

* Update UI snapshots for `chromium` (2)

* update

* address comment

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-18 14:12:28 -04:00
Neil Kakkar
fd230b1964
fix: Make rating start at 0 for surveys (#18011) 2023-10-17 14:21:34 +01:00
Li Yi Yu
93e8ccc4eb
feat(surveys): templates (#17904)
* routes for survey templates

* basic on click setup logic

* Update UI snapshots for `chromium` (2)

* import type

* Apply suggestions from code review

Co-authored-by: Joe Martin <84011561+joethreepwood@users.noreply.github.com>

* address feedback from cory

* fix logic

* remove unused logic file

* Update frontend/src/scenes/surveys/constants.tsx

Co-authored-by: Joe Martin <84011561+joethreepwood@users.noreply.github.com>

* Update frontend/src/scenes/surveys/constants.tsx

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>

* address comments

* Update UI snapshots for `chromium` (2)

* more fixes

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* move description and title together

* fix e2e

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Joe Martin <84011561+joethreepwood@users.noreply.github.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2023-10-16 16:32:07 -04:00
Eli Kinsey
27e183b765
feat(surveys): Improved survey creation flow (#17902)
* create edit survey components for feature flagging

* visual type picker

* organization

* move previews into tooltips

* targeting

* sync preview and accordion

* better presentation view

* Update UI snapshots for `chromium` (2)

* fix migration file lint

* Update UI snapshots for `chromium` (2)

* make collapse panel header easier to see

* label question index

* more fixes

* update

* surveys new creation flow flag

* fix linter spacing

* form appearance file

* Update UI snapshots for `chromium` (2)

* fix

* fix

* Update UI snapshots for `chromium` (2)

* fix targeting

* fix cypress tests

* black

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Li Yi Yu <li@posthog.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2023-10-16 14:38:29 +00:00
Marius Andra
23fec44a98
feat(hogql): edit SQL directly where possible (#17905) 2023-10-16 10:15:14 +02:00
Neil Kakkar
6269a4553d
feat(surveys): Add cypress e2e tests (#17920) 2023-10-13 12:40:34 +00:00
Paul D'Ambra
3528b663bb
chore: deflake a test (#17956) 2023-10-12 21:40:05 +01:00
Chandra Kiran G
45d5794f03
fix: early access management cancel button (#17857) 2023-10-12 15:43:06 +01:00
Paul D'Ambra
b75813b9bc
chore: update wait-on-action (#17945) 2023-10-12 11:00:40 +00:00
Paul D'Ambra
3c598e1195
fix: e2e testing posthog capture (#17940)
* fix: e2e testing posthog capture

* wat

* wat

* wat:
2023-10-12 11:15:17 +01:00
Ben White
a3d822d846
feat: Added notebooks to sidebar (#17919) 2023-10-12 11:00:14 +02:00
Paul D'Ambra
5da50e633a
fix: throw error so test failures are not swallowed (#17926)
So obvious in retrospect

If you listen to the Cypress fail event without re-throwing then you swallow all test failures

"fun"

When reviewing #17919 I knew the Cypress tests would have to be failing which is what prompted me to check

Introduced in bbb7ed9 (July 10th!)
2023-10-12 00:51:47 +01:00
Ben White
03093a8ad9
feat: Reworked Playlist UI with Notebook support (#17802) 2023-10-10 14:50:17 +02:00
Jason Yavorska
1df3795f44
feat: Duplicate dynamic cohorts (#17794) 2023-10-06 11:18:20 +01:00
Raquel Smith
abcfdab281
chore: swap google_login key for social_sso (#17634)
swap google_login key for social_sso
2023-09-27 13:06:51 -07:00
Paul D'Ambra
1de6d5c6fa
chore: throw runners at e2e CI (#17492)
* chore: throw runners at e2e CI

* add some files so we split even further

* more splitting

* more splitting
2023-09-18 13:00:03 +00:00
Paul D'Ambra
a383c1337c
feat: notebooks list updates on deletion (#17449)
* feat: notebooks list updates on deletion

* fix
2023-09-14 17:10:10 +01:00
Paul D'Ambra
5906ea8eaa
chore: snapshot notebook template (#17413)
* chore: snapshot notebook template

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* no need to change user facing template

* need to all fit within snapshot bounds

* and another example

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* wat

* Update UI snapshots for `chromium` (2)

* cypress, and styling, and preview, oh my

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-14 14:24:58 +01:00
David Newell
236ca4361e
chore: remove edit mode from notebook scene (#17374)
* chore: remove edit mode from notebook scene
2023-09-11 16:25:50 +01:00
Raquel Smith
166258412a
feat: add signup instance redirect by flag (#17144) 2023-08-23 19:40:15 +00:00
Paul D'Ambra
8b174819e4
feat: notebook filtering by recordings presence (#16955)
* add filtering by recording

* document for API docs, only show API docs for Notebooks when in debug

* Update query snapshots

* add not working button

* wat

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* wat

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* move logic interactions closer to thome

* Update query snapshots

* Update query snapshots

* wait for the editor before acting on it

* add a method for getting an arbitrary node position

* fix

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* why an array, yesterday me?

* fix

* contains style API filtering

* without no-op clicks

* fix

* Update UI snapshots for `chromium` (2)

* refresh notebook comment button on notebook created

* inline variable

* removes speculative change

* move knowledge around

* add timestamps to existing book in timestamp order

* Fi

* add a cypress test

* Update UI snapshots for `chromium` (2)

* somet stuff

* Update query snapshots

* slightly neater waiting for the editor

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* do we know editor is going to be present?

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* witha finally?

* add todo

* handle commenting when already in a notebook

* allow in-notebook commenting to insert in timestamp order

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* feat: add examples and extend notebook backend filtering to be more generic (#17032)

* feat: add examples and allow relatively generic notebook filtering

* depluralise and absence is truthy

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-16 13:00:25 +00:00
Michael Matloka
304e6db8a4
chore: Remove "Version" from hobby/development PostHog (#16722) 2023-08-08 14:18:45 +02:00
David Newell
410e10ed3c
feat: notebooks new line suggestions (#16737)
* single insertion suggestion

* Add tab completion function

* preview styling

* implement proper types

* Do not expose TipTap editor externally

* maintain focus after tabbing

* reference child timestamp node

* cleanup all Node type issues

* fix type missing

* add keyboard handler insertion suggestion tests

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-26 18:22:53 +01:00
David Newell
c3a21ce9f3
chore: add notebook tests (#16715)
* chore: add inital notebooks tests

* match mocks

* Cleanup mocks

* remove unnecessary mocks
2023-07-21 12:46:40 +01:00
Ben White
bbb7ed9968
feat: Added recording of e2e test runs (#16046)
Marius nerd-sniped us to try this out. Recording of Cypress runs.

Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-10 15:59:30 +01:00
Marius Andra
7355359cb3
feat(hogql): remove feature flag (#15936) 2023-06-29 13:23:36 +00:00
Ben White
f8b26789bb
feat: Notebook queries node (#15910) 2023-06-16 16:08:07 +02:00
Raquel Smith
ccbc9bcbea
feat: extend empty state into generic product introduction (#15967)
* rename to ProductIntroduction

* start using has_seen_product_intro_for

* do up annotations

* do up experiments

* do activity log and ingestion warnings

* do feature flags

* apply to persons, but don't ever show the intro state
it's unnecessary

* migrations

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update query snapshots

* Update query snapshots

* update stories

* Update UI snapshots for `chromium` (2)

* fix tests

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update query snapshots

* update surveys implementation

* dont show intro to existing users on expts & cohorts

* don't show on FFs for existing users

* don't show intro on actions for existing users

* do for annotations

* clean up

* add basic e2e test

* cypress test for cohorts

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-12 05:44:05 -07:00
Paul D'Ambra
7c521c55b2
fix: update monaco editor (#15993) 2023-06-12 08:53:54 +02:00
Paul D'Ambra
f3f3fa6a08
fix: there is a fine line between optimising and breaking (#15931)
* fix: there is a fine line between optimising and breaking

* fix

* Fix

* fix
2023-06-07 01:57:22 +01:00
Thomas Obermüller
c704cb16fd
refactor(data-exploration): remove data exploration from editor filters (#15497) 2023-05-31 18:06:08 +02:00
Raquel Smith
26a2e4de29
feat: add better empty states across the products (#15760)
* Add ProductEmptyState component

* Add component to actions table

* Add to cohorts

* add to activity log and ingestion warnings

* add to feature flags page

* add annotations empty state

* Add to experiments scene

* add hog first go

* better layout with hog

* clean up a bit

* change language so it doesn't have to pluralize

* add stories

* add stories

* fix show table if experiments are searched or status filtered and 0 results

* Update UI snapshots for `chromium` (2)

* fix cypress tests

* fix

* add empty state to persons

* include utm info

* set up experiment on experiments

* set up experiment on feature flags

* Apply suggestions from code review

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

* remove customhog since we don't have any yet

* fix

* Update UI snapshots for `chromium` (2)

* use standard border color

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2023-05-31 14:39:42 +00:00
Raquel Smith
5e373fe417
chore: remove email verification feature flag (#15736) 2023-05-31 06:24:05 -07:00
Paul D'Ambra
0e1bc77216
chore: don't wait for e2e tests if only changing the plugin server (#15671)
If you only change the plugin server you spend a long time waiting for e2e CI to run.

It doesn't use the plugin server (I don't think)

So, don't run it...
2023-05-30 09:55:18 +01:00
Ben White
0f2aef493d
feat: Shareable, embeddable, beautiful recordings (#15505)
* Renaming nodes

* Tweaks

* Tweaks

* tweaks

* Player styles

* Style changes everywhere

* More refactoring

* Style changes everywhere

* More styles

* Fixed styles for hover inspector

* Fixed up timer logic

* Fixed notebook button sizes and added pretty preview for hidden inspector

* Fix width calculation

* Meta working

* Meta links

* Fix

* feat: Change to infinite scrollers for the recording list

* Added shared counter component

* Fix

* Ensure we don't load too much

* Fix

* Fixed up tests

* Fixed tests

* Dashboard filtering

* Fixed dashboard users

* Update UI snapshots for `chromium` (1)

* Added notebooks behind flag

* Fix up types

* Update UI snapshots for `chromium` (1)

* Fix

* Close fullscreen when navigating

* Added manual load button

* Remove optimisation

* More work to make playlists look good

* Fix showin bug

* Added todo

* Fixed persisting values from notebok nodes

* Fix up new playlist style

* Fixes

* Fix

* Added draggable component

* Added support for lots more things

* Fixes

* Fixed up IDs

* Added recording field for sharing configuration

* Updated sharing modal to support recordings

* Updated styles

* Added support for the sharing view of recording

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Fixed up share modal to include new properties

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Fix full screen to use browser native api

* Fix closing of full screen

* Moved sharing token to api code via logic

* Fixed up stories

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Tidying

* Removed comments

* Removed sharing access token in favour of mounted context

* Started auth

* Fixed up sharing config

* Fixed lint

* Fixed up tests

* Fixed tests

* Fix import

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Fixed up styling for shared mode

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Improved tab state logic

* Fix types

* Fix comments
Added test to check for different team access

* Fix

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-25 10:33:35 -07:00
Marius Andra
bd8d4afa6e
feat(insights): trends hogql volume (#15672) 2023-05-25 16:31:35 +01:00
Paul D'Ambra
c112dce46e
fix: range without killing ingestion (#15653) 2023-05-22 19:26:38 +00:00
Ben White
8ada521cf3
feat: Replay rename work (#15160) 2023-05-19 10:33:27 +02:00
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
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