0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 11:17:50 +01:00
Commit Graph

410 Commits

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