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

123 Commits

Author SHA1 Message Date
Thomas Obermüller
42ae0569b9
feat(insights): clean up insight page header (#16861) 2023-08-29 22:52:56 +00:00
Li Yi Yu
b31f1af011
feat(surveys): posthog branding part of whitelabeling offering (#17220)
* feat(surveys): posthog branding part of whitelabeling offering

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* wording diff

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-29 22:01:46 +00:00
Tomás Farías Santana
361badd72c
feat: Add frontend support for Postgres Batch Export destination (#17178)
Co-authored-by: Tiina Turban <tiina303@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-29 14:18:10 +02:00
Michael Matloka
59d4398646
ci(vrt): Stop the snapshot madness (#17163)
* Remove redundant Playwright specs

* Increase tolerance in Playwright

* Wait for profile pictures to resolve

* Ensure scene is loaded before proceeding

* Always wait for loaders to disappear

* Disable Gravatars in snapshots

* Don't wait for loaders in more stories with loaders

* Improve resiliency of batch export story

* Fix one more loading story

* Unskip Playwright tests

* Improve inconsistencies

* Upgrade Playwright from 1.29.2 to 1.37.1

* Wait for images to load

* Unify code editors

* Properly wait for images to load

* Go back to Playwright 1.29.2

* Wait for loader selector in LemonTable stories

* 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>
2023-08-29 09:28:03 +02:00
Eric Duong
ac1b57c505
feat(data-warehouse): linking views to posthog models (#16877)
* backend basics for a view

* view parsing "working"

* add tests and make view name unique

* adjust tests

* api tests and edge cases

* typing

* try comment

* fix migration check

* 3 separate tabs

* working create and view view

* add validity checker

* update test

* update test

* Update query snapshots

* Update query snapshots

* add types

* update schema

* Update UI snapshots for `chromium` (2)

* update copy

* adjustments

* view definition

* adjust buttons and ux

* dummy

* edge case for IN operator on s3 table

* remove unnecessary migration

* remove console log

* naming

* Update query snapshots

* Update query snapshots

* update test

* modify statements

* remove ctes and use subquery

* Update query snapshots

* Update query snapshots

* use global join if left is events and right is s3

* add null check

* first model for linking views to tables

* basic column extension from viewlink

* working hogql view column lazyjoin

* fix test views

* update tests

* abbreviate test

* abbreviate test

* remove prop definition

* update migration

* fix test

* var naming

* add join key to/from

* join function

* remove one todo

* add comment

* add validation

* fix type

* Update test_s3_table.py

* Update test_database.py

* merge backend changes from downstream work

* Update query snapshots

* fix test

* remove todos

* remove unnecessary func

* Update query snapshots

* Update query snapshots

* remove printer

* revert trivial change

* make join function a property

* set in initializer

* length and typing

* use validation correctly

* add delete action when saved query is deleted view link should be deleted too

* use saved_query_id not table name

* remove unnecessary delete logic

* Update UI snapshots for `chromium` (1)

* update plural api route

* handle delete, s3 table delete -> view delete

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* 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 `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* 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>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2023-08-28 14:26:17 -04:00
Paul D'Ambra
9c1777ed4b
chore: skip flapping tests (#17208) 2023-08-28 11:15:38 +01:00
Thomas Obermüller
66ba7decad
feat(insights): ignore visualization changes for requests (#17150) 2023-08-28 05:55:18 +00:00
Paul D'Ambra
c61e5dd3b5
fix: toolbar swallowing all pointer events (#17204)
* fix: toolbar swallowing all pointer events

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* 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>
2023-08-26 14:41:14 +01:00
Thomas Obermüller
003a67876d
fix(insights): display correct breakdowns (closes #17133) (#17148) 2023-08-25 17:55:24 +00:00
Paul D'Ambra
92e648f173
feat: allow each node to control its own title (#17182)
* feat: show insight title in notebooks

* show derived name if there's no name

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* fix

* and fix the node id problem

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (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 UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* no need to load a title we already have

* all the types

* Fix

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* sentence case

* fix

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* fix storybook

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

* fix

* fix

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (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>
2023-08-25 13:38:38 +01:00
Ben White
254aefcd6a
feat: Generic AddToNotebook button (#17122)
* More things

* Added more buttons

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* fix

* fix connect

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2023-08-24 19:38:37 +00:00
Thomas Obermüller
5767998377
refactor(insights): handle show legend via logic (#17169)
* refactor(insights): handle show legend via logic

* 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>
2023-08-24 19:54:39 +02:00
Joe Martin
96e802b208
fix: Empty state text (#16665)
* Update ProductIntroduction.tsx

* Update frontend/src/lib/components/ProductIntroduction/ProductIntroduction.tsx

* 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>
2023-08-24 03:21:15 +00:00
Raquel Smith
166258412a
feat: add signup instance redirect by flag (#17144) 2023-08-23 19:40:15 +00:00
Neil Kakkar
91b90425cb
fix(notebook): FlagCodeExample node doesnt need paste options (#17160) 2023-08-23 16:27:21 +00:00
Neil Kakkar
0bf7ad4aa8
feat(notebook): Add flags component (#17138) 2023-08-23 14:10:15 +00:00
Paul D'Ambra
a21eb971f3
fix: session replay no group filters (#17152)
* fix: session replay no group filters

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-23 13:34:47 +00:00
Raquel Smith
216ec63f6c
feat: change language / design of performance prompt (#17124) 2023-08-22 16:03:34 +00:00
Paul D'Ambra
ae5fd948e1
feat: add matching evens from backend (#17107)
* feat: add matching evens from backend

* fix

* fix

* more test groups

* Update query snapshots

* Update query snapshots

* dang

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Fix

* Refresh on props changed

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* worrying at the problem

* Update UI snapshots for `chromium` (1)

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-22 16:46:50 +01:00
David Newell
2bec8e5558
fix: force show advanced filters if present (#17137)
* force show advanced filters if present

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

* 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>
2023-08-22 15:14:26 +01:00
Thomas Obermüller
ebf9a33eac
test(mocks): move mocks to shared folder (closes #16192) (#17117) 2023-08-22 16:07:04 +02:00
Neil Kakkar
bb53a51f0c
fix(dashboards): Move generated dashboards to bottom by default (#17070) 2023-08-22 14:07:20 +01:00
PostHog Bot
d5dc435ab6
chore(deps): Update posthog-js to 1.77.1 (#17130) 2023-08-22 09:06:51 +02:00
David Newell
b8d2a35e1a
feat: node widgets (#16910)
* widget styling

* active node and attributes

* widget settings

* small cleanup

* fix flush sync rendering issue

* styles and types

* Recordings settings

* remove notebook settings until needed

* cleanup

* remove unnecessary css classes

* 3000 styling

* almost there

* new approach

* node selection and scrolling

* make LemonWidget component

* only scroll to posthog block nodes

* scroll to top of node

* fix spacings

* Update UI snapshots for `chromium` (2)

* fix: Update fix_person_distinct_ids_after_delete.py (#16942)

* feat: CS dashboard tabs (#16667)

* add a tab and hard code a dashboard, send the appropriate filter with the API call

* getting ahead of myself

* flag the tab

* hard coded dashboard on groups too

* one ring to rule them all

* start making dashboard choice configurable

* store dashboard links in a bag and let user set them

* pretty close now

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* fix

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* fix

* fix tests

* Update query snapshots

* wip

* wip

* switch to a user level setting

* Update query snapshots

* Update query snapshots

* fix

* remove comment

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* fix test

* update snapshot

* Update query snapshots

* Update query snapshots

* fix teset

* Update query snapshots

* rename

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (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)

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

* fix: use same code in notebooks and file inputs for image upload (#16944)

* fix: use same code in notebooks and file inputs for image upload

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

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

* feat(insights): make insight viz query independent of actual insight (#16741)

* feat(insights): make insight viz query independent of actual insight

* Update UI snapshots for `chromium` (2)

* add comment

* split up Insight.scss

* clean up styles

* add stories

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* fix storybook snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* missing type

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Li Yi Yu <li@posthog.com>

* fix(backend): old style property search (#16930)

* feat(hogvm): remove hogvm cohort matching (#16931)

* feat(frontend): LemonCheckbox disabledReason (#16929)

* chore(surveys): update events usage to include question types (#16950)

* fix: Remove draggable to notebook from Query for now (#16954)

* feat(hogql): prefer regex operations to match in property filters (#16933)

* fix: pressing enter putting early access feature in edit mode (#16949)

fix enter putting early access feature in edit mode

* feat(hogql): numbers() table (#16945)

* chore(deps): Update posthog-js to 1.75.4 (#16957)

* scroll to node when popover settings clicked

* fix: filtering toolbar disappearing (#16640)

* fix filtering toolbar disappearing

* simplify logic

* all filters to be respected

* chore(deps): Update posthog-js to 1.76.0 (#16973)

* fix: Use interval to determine batch window (#16956)

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

* feat(hogvm): save bytecode for actions (#16932)

* feat: constrain recording date range when querying for actors recordings (#16883)

* feat: constrain recording date range when querying for actors recordings

* feat: constrain actor recordings query by date filters

* Update query snapshots

* Update query snapshots

* Update query snapshots

* does this avoid all the test changes?

* only limit by date_from and date_to

* but not wrong

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* fix

* Fix

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* fix

* Update query snapshots

---------

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

* feat: quick links on playlist filters (#16848)

* separate actions from filters

* add button label

* first design spike of advanced filters

* simple filters component

* simple filters quick links

* possible redesign option

* simple property filters

* add setting to hide viewed recordings

* Update UI snapshots for `chromium` (2)

* fix advanced filters

* Update UI snapshots for `chromium` (2)

* take first two person display properties

* add experiment logic

* make typescript happy

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* show by default & persist

* hide settings

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>

* feat(ingestion): add a data_store_query_duration prom metric (#16958)

* fix: dashboard templates (#16967)

* chore: update pytest (#16947)

* feat(plugin-server): add slowlogs around ExportEventsBuffer flushes (#16966)

* perf(ingestion): only transpile frontend apps on scheduler pods (#16977)

* feat: Add ForbiddenError to non-retryable errors (#16959)

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

* feat(management): add split_person command (#16915)

* chore: add more analytics on use of simple session filters (#16980)

* fix(plugin-server): remove pluginconfig cardinality of storageSet metrics (#16985)

* fix(surveys): add official survey properties (#16988)

* fix(actions): Make sure unsaved changes alert doesn't misfire (#16989)

* feat(surveys): Results data display (#16739)

* add data node props for comparison

* add data viz query to rating type surveys

* clean up query

* prettier

* remove data node props value

* fix(surveys): survey id property taxonomy (#16991)

* ci(vrt): Remove failing insight stories (#16990)

* ci(vrt): Remove flakey insight stories

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Fix `NewDashboardModal` description style

---------

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

* feat(hogql): support ARRAY JOIN (#16968)

* fix: use latest pnpm version (plugin-server) (#16724)

* feat: playlist storage to lts from mr blobby v2 (#16864)

* feat: copy to LTS via Mr Blobby

* Update query snapshots

* fix tests

* Apply suggestions from code review

* sentry message when loading unexpected storage version

* read from either s3 location

* add a test that shows we can fallback to LTS loading

* Update query snapshots

* use the same prefix format for blob storage

* fix test

* Update query snapshots

* fix

* Update query snapshots

* Update query snapshots

* with brain

---------

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

* feat: move last modified by (#16995)

* feat: move last modified by

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* why is breakdown the last item? no more

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

---------

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

* chore: Make apps visible to anyone having an existing config (#16981)

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

* fix(flags): Ensure group.properties exists (#16992)

* fix(flags): Ensure group.properties exists

* change type, backwards compat

* Update UI snapshots for `chromium` (2)

* fix

---------

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

* ci(vrt): Fix Exports scene story being flaky (#16999)

* ci(vrt): Fix Exports scene story being flaky

* Update UI snapshots for `chromium` (1)

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

* fix: extras not extra :/ (#17010)

* fix: event can be none (#17009)

* feat: remember search query (#16996)

* feat: remember search query

* Update UI snapshots for `chromium` (2)

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

* fix(insights): move funnel canvas label onto chart (#16857)

* fix(insights): move funnel canvas label onto chart

* funnel with wrapping canvas label(s)

* Restore zero padding in insight cards

* Fix padding of insight types in cards

* Fix alignment in experiments

* Use `useLayoutEffect` in `useScrollable`

* Disable `InsightsTable` pagination

* Fix scrollable funnel visibility

* Fix funnel margin on cards

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

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

* refactor(flags): Cache cohorts and flags for local evaluation (#16939)

* fix: upgrade snapshot version requests (#17013)

* return a 302 when upgrading request

* react to the 302 in the front end

* Update query snapshots

* Fix

---------

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

* fix(flags): Only pre-query cohorts when sending (#17015)

* fix(flags): Only pre-query cohorts when sending

* fix test

* fix(insights): Clean up insight cards (#16998)

* Fix stray divider in text card menu

* Fix text card top part padding

* Update UI snapshots for `chromium` (1)

---------

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

* fix: fetch follows redirects when not mocked (#17019)

* fix: Add PersonDisplay checks for email before assuming it is a string (#17020)

* feat(insights): Unify the look of graphs based on Funnels UI (#16873)

* feat(insights): improve visual hierarchy between grid lines and axis

* style histogram axis, grid and labels

* consistent fonts across charts

* light ticks

* use funnel bar chart as base tick style

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Use CSS var in histogram styles

* Use the default text color for all axis labels

---------

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

* chore(flags): Try reverting cohorts cache (#17021)

* chore(flags): Try reverting cohorts cache

* fix test

* revert(flags): revert going to replica for setting cache (#17023)

* feat(insights): move advanced options to "more" menu (#16858)

* funnel with wrapping canvas label(s)

* move some options to advance menu

* fix hiding advance menu when no options available

* spacing

* display count

* append filter to stack view component

* move legend button into more menu

* Remove `default-dark` and rename "More" to "Options"

* Restore original funnel padding

* Pull out compare to previous period

* Reduce spacing

* Fix color of highlighted sticky table column

* Simplify

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Disambiguate time-series line charts

---------

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

* fix(surveys): add hogql table for mcq results (#17025)

* feat: remove superceded listing mechanisms (#16602)

* support hogql in listing by replay summary

* remove backend listing alternatives

* remove additional listing from the front end

* Remove final feature flag

* bonfire of the flagities

* fix

* fix

* ah, tests need fixing - WIP

* have to change how we check metadata

* remove a breakpoint()

* Update query snapshots

* fix test

* Update query snapshots

* fix

* grrrr

* Update query snapshots

* slightly flatter inheritance structure

* fix

* Update query snapshots

* 🤷

* Update query snapshots

* Update query snapshots

* Update query snapshots

* fix tests

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

---------

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

* chore: split summary analytics (#17028)

* feat(insights): Add filtering properties on labels (#16943)

* feat(insights): Add filtering properties on labels

* Add tests for event property querying using an alias

* Make comments bidirectional

* Revert trying to be clever with unknown

* Fix failing tests

* Improve query performance for property filtering

* Improve efficiency of querying properties by alias

* Remove old property name alias code

* Add code to output PROPERTY_NAME_ALIASES

* Add script for regenerating property name aliases

* chore: proper notebook types (#16987)

* chore: add types to notebook nodes (first pass)

* making progress

* add types to every node attribute

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* remove comment

Co-authored-by: Paul D'Ambra <paul@posthog.com>

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>

* chore: proper notebook types (#16987)

* chore: add types to notebook nodes (first pass)

* making progress

* add types to every node attribute

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* remove comment

Co-authored-by: Paul D'Ambra <paul@posthog.com>

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>

* fix: account for urls that do not use the slashed protocol (#17011)

* account for urls that do not use the slashed protocol

* test case for protocols on backend

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (2)

---------

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

* revert: "chore(flags): Try reverting cohorts cache" (#17029)

Revert "chore(flags): Try reverting cohorts cache (#17021)"

This reverts commit a8bf51b209.

* fix: pause video & audio elements along with replay playback (#16978)

* fix: pause video elements along with replay playback

* fix typing

* add audio and video elements

* Add initial state

* new styling

* customizable node widgets

* fix rendering order

* address comments

* Remove showNodeSettings flag

* hardcoded popover logic

* all but actions height

* controls alongside node

* max width

* Add behind feature flag

* only show settings when expanded

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* file rename

* fix widget types

* Let's try again...

* Update UI snapshots for `chromium` (1)

* Added recording filter controls, and fixed issues with props not being respected

* Fixed up playlist attrs

* Fixes up sizes

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* cleanup widget cruft

* playlist settings styling

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tiina Turban <tiina303@gmail.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
Co-authored-by: Li Yi Yu <li@posthog.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: Ben White <ben@posthog.com>
Co-authored-by: Nate Grift <69441127+nategrift@users.noreply.github.com>
Co-authored-by: PostHog Bot <69588470+posthog-bot@users.noreply.github.com>
Co-authored-by: Tomás Farías Santana <tomas@tomasfarias.dev>
Co-authored-by: Xavier Vello <xavier.vello@gmail.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
Co-authored-by: Tihomir Valkanov <tihomir.valkanov@gmail.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
Co-authored-by: Michael Matloka <michal@matloka.com>
Co-authored-by: Robbie <robbie.coomber@gmail.com>
2023-08-21 17:28:13 +01:00
David Newell
233e91d7ba
feat: quick filters (#17075)
* add scrolling & person property suggestions

* update explaination

* remove feature flag

* fix settings scrolling

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* chore(plugin-server): add tags to redisGet/Set (#17057)

* feat: Use buildjet for ci-backend (#17069)

* ci-backend runs-on -> buildkite

* Use buildjet runners

* Go away old cache

* Fix deps

* Ensure to update the package registry

* Use bigger runners for django tests

* Use ARM for jobs with less concurrency

* Revert "Use ARM for jobs with less concurrency"

This reverts commit bcbf0d7524.

* Fix typo

* chore: Allow impersonated users to trigger historical exports (#16979)

* chore: metrics for step completions within webhooks (#17056)

* fix: Docker compose not picking up env for some reason (#17079)

Docker compose not picking up env for some reason

Will this help?

* feat: sync distinct ids with billing (#16919)

* update billing distinct IDs on user join/leave org

* temporarily update on usage report send
to update existing orgs

* abstract a bit more

* update existing tests

* add billing_manager test for the method

* Update query snapshots

* specify date

* move outside the transaction

* cache the instance license

* use new instance license method in other places

* fix mypy and some tests

* Update query snapshots

* Update query snapshots

* fix caching in tests

* constrain try/except

* Update query snapshots

* make sure we hae license before update billing

* Update query snapshots

* Update query snapshots

* set to false if no instance license

* fix date

* Update query snapshots

* use correct var

* Update UI snapshots for `chromium` (1)

* clear license cache before running tests

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* fix tests

---------

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

* feat(surveys): exclude users who have already seen survey wait period (#17064)

* add condition value for wait period

* do not allow for wait periods under 1 day

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

* chore(deps): Update posthog-js to 1.77.0 (#17085)

* fix(insights): Hide empty "Display" options section (#17044)

* fix(insights): Hide empty "Display" options section

* Don't use different color for options count

* fix: group notifications by five minutes (#17077)

* fix: group notifications by minute

* query even less datA

* fewer queries and a five minute trunc

* with attribution

* fix(exports): hopefully fix onevent stalling by catching job producing errors (#17087)

* feat: notebook filtering from notebooks table view (#17027)

* feat: filter notebooks in the notebooks table

* don't break other uses of the logic

* Comment

* Update frontend/src/scenes/notebooks/NotebooksList/NotebooksList.tsx

Co-authored-by: Ben White <ben@posthog.com>

* Update UI snapshots for `chromium` (2)

* wip

* fix

* Fix

* Update UI snapshots for `chromium` (2)

* more fangling

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* fix

* different labels

* Update UI snapshots for `chromium` (2)

* obey mypy

* setup backend for filtering as text

* setup backend for filtering as text

* ah but

* fix

* Update UI snapshots for `chromium` (1)

* move title search to backend

---------

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

* fix: Default Replay list duration (#17090)

* fix(insights): Show group analytics in exported/shared insights (#17041)

* fix(insights): Show group analytics in exported/shared insights

* Also fix empty check mark

* Mock group types response in stories

* Update test assertions

* Also update frontend logic tests

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update propertyDefinitionsTableLogic.test.ts

* Fix an issue in group types viewset and add tests for good measure

More context here: https://posthog.slack.com/archives/C0428JHABK2/p1692361040699229

* Update query snapshots

* Update UI snapshots for `chromium` (2)

---------

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

* chore: jest on buildjet (#17095)

* chore: jest on buildjet

* try this

* maybe 8:

* no 4

* chore: cypress on buildjet (#17096)

* cypress buldjet maybe

* like this?

* try it on a matrix

* on 4 cpu

* typo

* chore: fix story date (#17097)

* chore: fix story date

* Update UI snapshots for `chromium` (1)

---------

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

* feat: add data model and initial screen for product-specific onboarding (#17081)

* add products scene

* hover effects on ProductCard

* support dynamic onboarding completed vals

* add onboarding json field to team

* increase width, center text

* add a feature flag

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* make the field show up in the org response

* Update UI snapshots for `chromium` (1)

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

* chore: use buildjet for visual regression tests (#17098)

* like this?

* run if the workflow changed

* not 2 cpu

* 4 is enough oomph

* chore(storybook): upgrade storybook to 7.3 (#17078)

* feat(kea): typegen path cleanup and delete unused files

* bump

* 3.2.2

* typegen upgrade to 3.3.0

* storybook 7.3

* upgrade storybook to 7.3

* try using #storybook-root instead of #root

* try using #storybook-root instead of #root (2)

* try using #storybook-root instead of #root (3)

* try using #storybook-root instead of #root (4)

* switch out argTypes.defaultValue with args

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

* move to wrapping properties

* add repaint delay to anchor scrolling

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Xavier Vello <xavier.vello@gmail.com>
Co-authored-by: Ellie Huxtable <ellie@posthog.com>
Co-authored-by: Tiina Turban <tiina303@gmail.com>
Co-authored-by: Raquel Smith <raquelmsmith@users.noreply.github.com>
Co-authored-by: Li Yi Yu <li@posthog.com>
Co-authored-by: PostHog Bot <69588470+posthog-bot@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: Ben White <ben@posthog.com>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
2023-08-21 15:14:37 +01:00
Robbie
4e885e618d
style: Make eslint stricter, fix issues that came up (#17092)
* Make eslint stricter, fix issues that came up

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Try to fix Playwright flakiness and speed up visual snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <michal@matloka.com>
2023-08-21 13:28:29 +01:00
Marius Andra
8075e42879
chore(storybook): upgrade storybook to 7.3 (#17078)
* feat(kea): typegen path cleanup and delete unused files

* bump

* 3.2.2

* typegen upgrade to 3.3.0

* storybook 7.3

* upgrade storybook to 7.3

* try using #storybook-root instead of #root

* try using #storybook-root instead of #root (2)

* try using #storybook-root instead of #root (3)

* try using #storybook-root instead of #root (4)

* switch out argTypes.defaultValue with args

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-21 09:32:49 +02:00
Thomas Obermüller
a1874c05a3
feat(insights): make insight viz query independent of actual insight (#16741)
* feat(insights): make insight viz query independent of actual insight

* Update UI snapshots for `chromium` (2)

* add comment

* split up Insight.scss

* clean up styles

* add stories

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* fix storybook snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* missing type

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Li Yi Yu <li@posthog.com>
2023-08-08 21:33:45 +00:00
Paul D'Ambra
ad825c7999
fix: use same code in notebooks and file inputs for image upload (#16944)
* fix: use same code in notebooks and file inputs for image upload

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* 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-08-08 20:57:16 +01:00
Paul D'Ambra
735d670c4d
feat: CS dashboard tabs (#16667)
* add a tab and hard code a dashboard, send the appropriate filter with the API call

* getting ahead of myself

* flag the tab

* hard coded dashboard on groups too

* one ring to rule them all

* start making dashboard choice configurable

* store dashboard links in a bag and let user set them

* pretty close now

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* fix

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* fix

* fix tests

* Update query snapshots

* wip

* wip

* switch to a user level setting

* Update query snapshots

* Update query snapshots

* fix

* remove comment

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* fix test

* update snapshot

* Update query snapshots

* Update query snapshots

* fix teset

* Update query snapshots

* rename

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (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)

* 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-08-08 19:05:06 +01:00
Ben White
8c046d74e7
feat: Add Person Preview when clicking a PersonHeader (#16807) 2023-08-01 10:39:46 +02:00
Michael Matloka
b1a18bc462
style(lemon-ui): Bring back circle spinner (#16378)
* style(lemon-ui): Bring back circle spinner

* Rename "monocolor" to "textColored"

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Fix spinner sizing in `LemonRow`

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-25 13:24:43 +02:00
David Newell
99aa889b24
chore: remove tab panes (#16701)
* Remove tab panes

* Remove last tab panes

* Add padding to persons modal

* Fix typing issue

* Add more specific selector

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* add missing mocks

* account for extra padding in properties tab

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* undo padding changes

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* remove commented out code

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-24 09:16:17 +01:00
Thomas Obermüller
d63f7383f6
feat(support): prevent form close on overlay click (#16345)
* feat(support): prevent form close on overlay click

* add default

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* fix css

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update for tilt and "unsaved input" semantics

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <michal@matloka.com>
2023-07-04 18:16:26 +00:00
Michael Matloka
2fbf8088d2
chore(insights): Clean up insight details (#16322)
* chore(insights): Clean up insight details

* Fix pre-commit performance

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-04 19:59:31 +02:00
Michael Matloka
7b3eec5e04
chore(frontend): Lemonize PropertyKeyInfo (#16318)
* Remove obsolete SVG assets

* Sync logo SVGs with current logo

* Fix arrow in `Popover`

* Remove Ant from `PropertyKeyInfo`

* Update pnpm-lock.yaml

* Remove background from `posthog-icon.svg`

* Add popover offset in case of arrow

* Improve BEM and tune font-weight

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Slightly increase padding

* Optimize logo icon SVG rendering for 32px

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-04 19:59:08 +02:00
Michael Matloka
74e42b28d3
fix(lemon-ui): Avoid extra margin to icons in link buttons (#16307)
* fix(lemon-ui): Avoid extra margin to icons in link buttons

* Fix `IconSurveys`

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-30 12:12:31 +02:00
Michael Matloka
a16806252e
feat(data-table): Show nulls as dashes and linkify links (#16285)
* feat(data-table): Show nulls as dashes and linkify links

* Resolve redundant `IconOpenInNew` after automatic addition

* 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>
2023-06-29 12:25:51 +00:00
Ben White
f8b26789bb
feat: Notebook queries node (#15910) 2023-06-16 16:08:07 +02:00
Marius Andra
bd8d4afa6e
feat(insights): trends hogql volume (#15672) 2023-05-25 16:31:35 +01:00
Ben White
33113b0494
feat: Improved Notebooks UX (#15561) 2023-05-24 12:44:57 +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
Thomas Obermüller
9a24f342ab
fix(data-exploration): refactor taxonomic breakdown filter (3/3) (#15427) 2023-05-11 10:11:32 +00:00
Paul D'Ambra
03b517887a
fix: only show event name in legend if multiple series (#15272)
* fix: only show event name in legend if multiple series

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `firefox` (2)

* Update UI snapshots for `chromium` (2)

* experiment preview always wants an event name

* Update UI snapshots for `chromium` (2)

* a little less nuclear

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `firefox` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* there's already an isSingleSeries value on the insight logic

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-28 15:52:15 +01:00
Paul D'Ambra
b05a5024c8
fix: activity log for insights isn't broken if insight is switched from filter-based to query-based or vice versa (#15232)
* fix: acitivty log for an insight switched from query to filter

* same fix in the other direction

* Skip deleted filters correctly

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-25 14:33:44 +00:00
Ben White
e0511581c1
feat: Add filters and searching to event properties (#14882) 2023-04-11 13:46:22 +02:00
Eric Duong
714d0cd34f
chore(feature-flag): add payload activity log for bool and multivariate (#14771)
* add payload activity log for bool and multivariate

* Update UI snapshots for `chromium` (1)

* blank

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* null check

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* merge master

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-20 16:39:00 -04:00
Michael Matloka
348aee94ce
feat(3000): Update project homepage (#14746)
* Fix "Ctrl" and "Alt" display in `KeyboardShortcut

* Update colors for a less tan light theme

* Add styles for primary and secondary 3000 buttons

* Add Breadcrumbs 3000

* Revert button padding fix

Extracted out into #14750.

* Update UI snapshots for `chromium` (1)

* Restore command palette

* Hide superfluous elements from 3000 homepage

* Restyle all buttons for PostHog 3000 without custom `status`

* Update UI snapshots for `chromium` (1)

* Use "keyboard shortcut" rather than "hotkey" consistently

* Fix current place breadcrumb being translucent

* Use 3000 style more for buttons and popovers

* Fix exporter visual regression

* Update UI snapshots for `chromium` (1)

* Fix typing

* Remove divider

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Increase UI snapshot failure threshold to avoid tab flakiness

* Add some code comments

* Improve buttons styling

* Update UI snapshots for `chromium` (1)

* Tune padding better

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-17 13:26:57 +01:00
Michael Matloka
7e71c3ce7c
chore(deps): Upgrade TypeScript from 4.8 to 4.9 in the frontend (#14609)
* chore(deps): Upgrade TypeScript to 4.9

* Fix minor typing issues

* Fix linting/testing issues

* Update Kea to 3.1.5
2023-03-16 13:35:28 +01:00
Michael Matloka
d02fac3332
style(3000): Implement PostHog 3000 navbar behind a feature flag (#14486)
* Add PostHog 3000 colors and button styles

* Update vars.ts

* Add PostHog 3000-style navigation behind a flag

* Fix `Tooltip` eating `onMouse{Enter,Leave}`

* Add story for PostHog 3000 navigation

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

* Add sidebar

* Fix missing `useEffect` deps

* Remove "x" from "tsx" in logic file

* Add dark mode

* Improve color vars and transitions

* Properly handle loading and empty states in accordion

* Fix some background colors for dark mode

* Make homepage more 3000

* Remove dark mode for now

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

* Move `posthog-3000` class handling a level higher to `App`

* Restore snapshots from `master`

* Fix snapshot flakiness

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Better align sidebar items

* Update UI snapshots for `chromium` (1)

* Spin out `SidebarAccordion.tsx` and use Kea subscriptions

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-13 15:22:09 +01: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
Thomas Obermüller
9df79ffb0c
fix(vrt): add mock date for dashboard snapshots (#14113) 2023-02-07 18:48:41 +01:00
Michael Matloka
489edd1cc0
test(frontend): Test more Storybook stories automatically (#13947) 2023-01-30 19:30:18 +01:00
Michael Matloka
adacf8ffb4
test(frontend): Automatically test Storybook stories with snapshots (#13839) 2023-01-27 15:51:35 +01:00
Thomas Obermüller
f2bb78a27b
fix(storybook): don't use esbuild for storybook (#13883) 2023-01-23 23:46:29 +01:00
Thomas Obermüller
5a270da491
fix(vrt): temporarily deactivate insight tests (#13882) 2023-01-23 22:06:41 +01:00
Michael Matloka
d4c0631c96
test(persons-modal): Update persons modal snapshots (#13824) 2023-01-20 08:39:27 +00:00
Michael Matloka
3899ebca07
style(navigation): Fix sidebar overlay height and backdrop (#13764) 2023-01-18 13:52:30 +01:00
Michael Matloka
0ab64a0d77
style: Replace Ant icons with Lemon ones (#13738) 2023-01-17 14:57:38 +01:00
Paul D'Ambra
1783bfc96a
chore: show query id in insight error screens (#13735)
* chore: show query id in insight error screens

* fixes and one vrt update

* Polish up query ID presentation

* reorg and refactor

* without changing meaning of maybeShowX

* skip test that doesn't work

* update all the places that care about if insight is errored or timedout

* allow style on insightviz

Co-authored-by: Michael Matloka <dev@twixes.com>
2023-01-17 07:48:43 +00:00
Michael Matloka
2599ee2190
refactor(dashboards): Remove Ant icons from dashboards list (#13691)
* refactor(dashboards): Remove Ant icons from dashboards list

* Fix Storybook request mocking with decorator

* Add visual regression test

* Actually fix request mocking
2023-01-13 16:50:26 +01:00
Michael Matloka
c23809cbee
feat(lemon-ui): Add disabledReason as clear alternative for disabled (#13690)
* feat(lemon-ui): Add `disabledReason` as clear alternative for `disabled`

* Update Lemon-Button-displays-correctly-1-chromium-linux.png
2023-01-13 13:42:19 +01:00
Thomas Obermüller
45d103a1de
fix(e2e-vrt): update reference images (#13685) 2023-01-12 16:40:01 +00:00
Thomas Obermüller
03fa4a1777
fix(e2e-vrt): update reference images and add commit sha to storybook build (#13676)
* fix insight layout changes

* fix properties timeline for no properties

* fix docs

* use sha in storybook repo commit message
2023-01-12 15:01:49 +01:00
Michael Matloka
08c41aa468
chore(properties-timeline): Hide seekbar in no key properties case (#13597) 2023-01-09 16:44:30 +01:00
Michael Matloka
026b655edd
feat(properties-timeline): Highlight relevant properties (#13472)
* feat(properties-timeline): Highlight relevant properties

* Update snapshots

* Fix data shape bug

* Improve UX of timeline and forbid if persons-on-events off

* Change modal wording a bit

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-01-03 12:12:45 +01:00
Michael Matloka
48ec8b3b2a
feat(persons-modal): Show person properties timeline (#13442)
* feat(persons-modal): Show person properties timeline

* feat(lemon-ui): Add `active` state to `LemonBadge`

* Improve snapshot boundaries

* Fix `RawPropertiesTimelinePoint` import

* Add visual regression tests for persons modal

* Add loading spinner

* Delete PropertiesTimeline.tsx

* Clarify tooltips

* Delete index.tsx

* Make tooltips respond faster

* Give points more breathing room

* Add crowded points to timeline stories

* Add `propertiesTimelineFilterFromUrl` test

* Improve badge positioning

* Clarify tooltip more
2022-12-22 15:10:23 +01:00
Michael Matloka
bd1198f21d
feat(lemon-ui): Add active state to LemonBadge (#13455)
* feat(lemon-ui): Add `active` state to `LemonBadge`

* Improve snapshot boundaries
2022-12-22 13:29:05 +01:00
Paul D'Ambra
42f0f06b4a
fix(activity-log): Show extended descriptions again (#13415)
* fix: show or hide extended description

* Add a bit of margin

* Handle unsupported insights (retention)

* Instrument ActivityLog visual regression testing

* Remove "Persons Activity" screenshotting

* Return mock activity logs immediately

Co-authored-by: Michael Matloka <dev@twixes.com>
2022-12-20 18:24:53 +00:00
Thomas Obermüller
c15357e3fc
docs(playwright): replace yarn with pnpm in readme (#13278)
* docs(playwright): replace yarn with pnpm in readme

* use quotes for url

* replace for plugin-server
2022-12-13 10:03:50 +01:00
Thomas Obermüller
4a30e78b22
chore: use pnpm to manage dependencies (closes #12635) (#13190)
* chore: use pnpm to manage dependencies

* Fix CI errors

* Don't report Docker image size for external PRs

* Fix pnpm-lock.yaml formatting

* Fix module versions

* Ignore pnpm-lock.yaml

* Upgrade Cypress action for pnpm support

* Set up node and pnpm before Cypress

* Fix typescript issues

* Include patches directory in Dockerfile

* Fix Jest tests in CI

* Update lockfile

* Update lockfile

* Clean up Dockerfile

* Update pnpm-lock.yaml to reflect current package.json files

* remove yarn-error.log from .gitignore

* formatting

* update data exploration readme

* type jest.config.ts

* fix @react-hook issues for jest

* fix react-syntax-highlighter issues for jest

* fix jest issues from query-selector-shadow-dom

* fix transform ignore patterns and undo previous fixes

* add missing storybook peer dependencies

* fix nullish coalescing operator for storybook

* reorder storybook plugins

* update editor-update-tsd warning to new npm script

* use legacy ssl for chromatic / node 18 compatibility

* use pnpm for visual regression testing workflow

* use node 16 for chromatic

* add @babel/plugin-proposal-nullish-coalescing-operator as direct dependency

* try fix for plugin-server

* cleanup

* fix comment and warning

* update more comments

* update playwright dockerfile

* update plugin source types

* conditional image size reporting

* revert react-native instructions

* less restrictive pnpm verions

* use ref component name in line with style guide

Co-authored-by: Jacob Gillespie <jacobwgillespie@gmail.com>
2022-12-12 10:28:06 +01:00
Thomas Obermüller
e5636cd211
fix(vrt): disable flaky user paths test (#13185)
* fix(vrt): disable flaky user paths test

* allow max diff pixel ratio 0.01

* use test.skip instead of commenting out, and explain[C
2022-12-08 11:38:27 +01:00
Thomas Obermüller
ad1303a0fb
test(e2e-vrt): add playwright visual regression testing for storybook (#13065) 2022-12-07 11:40:56 +01:00