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

87 Commits

Author SHA1 Message Date
Richard Borcsik
ad95e616cf
feat(replay): event based recording trigger (#26168)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2024-11-13 21:15:24 +00:00
Michael Matloka
d1c75ab747
fix(environments): Rejig use of insight/dashboard endpoints (#25469)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-16 16:23:48 +02:00
Michael Matloka
e1c0eb642c
fix(dev): Restore ability to update UI snapshots locally (#25138)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-23 17:25:07 +02:00
Michael Matloka
f2522de038
feat(environments): Add new environments endpoint and move /projects to Project (#24154)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-11 14:05:56 +02:00
Ben White
482371b0b2
feat: Hedgehog mode skins (#24838) 2024-09-09 15:14:27 +00:00
David Newell
362d05f65d
chore: remove antd (#24256) 2024-08-14 09:54:37 +01:00
Thomas Obermüller
8244fcafd0
test(visual): change method to wait for image (#23906) 2024-07-24 16:59:16 +02:00
Sandy Spicer
fc908063d9
chore: insight flapping (#22966)
Fix flapping with belt and suspenders
2024-06-13 23:00:17 +00:00
Raquel Smith
fd5c83fa8f
fix: don't reset to default viewport when attempting to load a story the second time (#22934)
* don't reset to default viewport

* 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>
2024-06-13 07:50:11 +01:00
Raquel Smith
1109abd8e4
fix: flappy insight snapshot (#22781)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: Paul D'Ambra <paul.dambra@gmail.com>
2024-06-12 23:06:54 +01:00
Michael Matloka
66eb25df44
test(vrt): Don't clip scene snapshots (#19677)
* test(vrt): Don't clip scene snapshots

* Upgrade Playwright to 1.33

* Replace `excludeNavigationFromSnapshot` with `includeNavigationInSnapshot`

* Tune locator

* Fix `EmptyStates` flakiness

* Fix `main` fallback

* Try a different way of selecting `main` with fallback

* Remove last `excludeNavigationFromSnapshot`

* Use `.Navigation3000__scene` instead of `body`

* Restore `overflow: visible` on navigation in tests

* Fix top bar overlapping

* More anti-clipping

* Actually fix clipping

* Fix `layout` parameter

* Fix `.classList.add()` use

* Remove empty `testOptions`

* Tweak `waitForSelector`

* Extend loader timeout

* Update Surveys.stories.tsx

* Update `UserPaths`'s `waitForSelector`

* Print test errors

* Revert "Print test errors"

This reverts commit 71d305f8d3de872467e2a47504eb602fba2c77a3.

* Capture whole scene in failure screenshot

* Fix `CommandBar` snapshotting

* Actually fix `CommandBar` snapshotting

* Also fix modals

* Force remount on snapshot retry

* Actually fix modal, sidebar, and paths snapshotting

* Fix observed flakiness

* Remove legacy theme from visual tests

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Fix sizing of `Toolbar` stories

* Fix typing

* Don't render zero-width funnel bar

* Attempt to fix more flakiness

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Tweak selectors

* Just hide the damn bar

* Don't render grid layout without `gridWrapperWidth`

* Use container query instead of React hook in `LemonBanner`

* Update SavedInsights.stories.tsx

* Explicitly size `LemonBanner`

* Update Surveys.stories.tsx

* Update UI snapshots for `chromium` (1)

* Include navigation in side panel snapshots

* Update UI snapshots for `chromium` (1)

* Dispatch resize

* Force settings sections in snapshots

* Re-resize

* Stabilize settings

* Update UI snapshots for `chromium` (1)

* 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>
2024-03-18 10:51:46 +01:00
Raquel Smith
41ebc6efc3
fix: access removed state (#20673)
* fix access removed state

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* draft stories

* Update UI snapshots for `chromium` (1)

* Remove `POSTHOG_APP_CONTEXT` from Storybook

* Update UI snapshots for `chromium` (2)

* Fix up stories

* app-context is req'd for feature flags, but we just don't want the default team

* Just fix the "Error Project Unavailable" stories

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

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

* fix typo

* 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: Michael Matloka <michal@matloka.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2024-03-08 00:31:35 +00:00
David Newell
7ae83c1976
fix: 3000 styles in the toolbar (#20513) 2024-02-23 09:50:50 +00:00
David Newell
07c6f3e1fe
feat: add commit sha to every frontend event (#20347) 2024-02-15 09:54:55 +00:00
Manoel Aranda Neto
5fdf6457ac
fix: SDK API Host is app. instead of us. (#20029) 2024-01-30 14:50:45 +01:00
Michael Matloka
2ad53ef79e
refactor(product-analytics): lineGraphLogic.ts to tooltip-data.ts (#19815) 2024-01-17 20:28:10 +00:00
Tiina Turban
88cd774242
feat(pipeline-ui): Display spark graph in destinations table (#19718)
* feat(pipeline-ui): Display spark graph in destinations table

* Sync lint-staged paths with CI

Otherwise couldn't even merge with master due to `bin/build-schema.mjs` being linted in the pre-commit hook despite not being included by `tsconfig.json`. CI didn't notice this because it never ran on that file - so we shouldn't run on it locally either.

* Fix `pipelineAppMetricsLogic`

* Generalize `Sparkline`

* run prettier

* Mock metrics in all stories

* Speed Storybook up slightly

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: Michael Matloka <michal@matloka.com>
Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2024-01-16 19:43:15 +00:00
Thomas Obermüller
665837123e
chore(3000): remove legacy top bar (#19525) 2023-12-28 10:45:29 +00:00
Thomas Obermüller
e1c68da4bf
chore(3000): remove feature flag (#19416) 2023-12-27 09:52:28 +01:00
David Newell
8c21377411
chore: snapshot all of 3000 (#19480) 2023-12-22 11:38:21 +00:00
Michael Matloka
f1d8b555f4
test: Upgrade to Storybook 7.6 (#19203)
* test: Upgrade to Storybook 7.6

* 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-12-11 13:26:49 +01:00
Michael Matloka
d7acdd6fa5
chore(3000): More styling tweaks (#18923)
* Align more rounding

* Align switch. select, input sizing with buttons

* Resolve extra UI snags

* Fix 3000-dependency

* Fix one more stray divider

* Remove legacy `description` prop of `PageHeader`

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Make "New insight" button regular size

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-28 16:20:12 +01: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
David Newell
e12454af5c
chore: 3000 snapshots (#18792)
* interactions test

* set global styles

* update lockfile

* include3000 snapshot option

* Push screenshots

* set background for non-legacy ui

* Remove "3000-" from snapshot names

* Delete LemonButton3000.stories.tsx

* Improve typing

* Fix evaluate arg passing

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* fix lockfile

* update snapshots with 3000 background

* fix lockfile

---------

Co-authored-by: Michael Matloka <michal@matloka.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-23 18:30:10 +01:00
Michael Matloka
6e51b92f3b
test(frontend): Further improvements to UI stability (#18851)
* test(frontend): Further improvements to UI stability

* Use `waitForPageReady()`

* Override playwright to always be 1.32.2

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update test-runner.ts

* 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-11-23 16:35:15 +01:00
David Newell
1961b5b6f1
chore: upgrade playwright (#18793)
* chore: upgrade playwright

* remove core

* upgrade container image

* use test-runner version
2023-11-23 13:51:01 +01:00
Ben White
d65a775a7c
chore: Upgrade test runner (#18794) 2023-11-22 16:24:37 +01:00
Michael Matloka
361e15fa9d
feat(3000): Breadcrumbs bar as dynamic page header (#18426)
* Disable double-tap-to-zoom in our app

* Add prominent scene title to breadcrumbs

* Render page-level actions next to breadcrumbs

* Fix overflow occasionally caused by `InsightTooltip`

* Fix word wrap

* Make spacing more relaxed

* Keep breadcrumb highlighted when popover active

* Resolve cyclic import

* Tune top bar sizing

* Fix import problem

* Fix a couple more issues in stories

* Update UI snapshots for `chromium` (1)

* Wait for loaders more reliably

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-13 21:52:36 +01:00
Michael Matloka
fded6fdf62
test: Regular checkup of visual regression tests (#18469)
* test: Regular checkup of visual regression tests

* Fix billing gauge animation

Animations done in JS can't be stopped automatically by the Storybook test runner. CSS animations can, easily, and they are anyway the cleaner and more performant way of achieving the same here.

* Rename misleading feature flag `recentInsights` to `relatedInsights`

* Mock homepage endpoints to avoid error toasts

* Wait for the recordings list in the notebook node story

* Fix `featureFlagLogic`

* Wait for `.NotebookNode__content`

* Try to optimize

* Screenshot failures and upload as artifacts

* Fix remaining failures

* Increase timeouts

* Fix rendering of Survey stories

* Remove `clang-format`

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Fix alignment of series name in insights details

* Try to fix experiment story flakiness

* Include toasts in loaders

* Fix superfluous toast

* Fix un-awaited breakpoints

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Make login snapshots slightly stabler

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Skip incorrect Surveys story

* Update UI snapshots for `chromium` (2)

* Revert msw upgrade

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-13 15:32:10 +01:00
Michael Matloka
ec095f3aab
test(3000): Fix Sidebar story (#18251) 2023-10-27 22:47:36 +02:00
Thomas Obermüller
d6d259a117
feat(storybook): add theme toggle to storybook (#18123) 2023-10-26 11:27:17 +00:00
Robbie
0fbea00e2f
test: Increase playwright timeouts (#17872)
* Increase playwright timeouts

* Tidy up comments
2023-10-10 12:18:59 +02:00
David Newell
b6c2524699
fix: screenshot flapping from selector (#17555) 2023-09-21 14:11:54 +01:00
Michael Matloka
2edc058d0c
feat: Allow Markdown in item descriptions (#17241)
* feat: Allow Markdown in item descriptions

* Allow forcing Link "open in new" icon for non-text children

* Fix `LemonFileInput` empty child

* Add `LemonMarkdown`

* Simplify `LemonMarkdown` imports

* Update .eslintrc.js

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Increase test timeout

* Update UI snapshots for `chromium` (1)

* 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: Paul D'Ambra <paul@posthog.com>
2023-09-18 12:16:33 +02:00
Paul D'Ambra
3908adb4b2
chore: make visual regression less sensitive to differences (#17455)
* chore: make visual regression less sensitive to differences

* Update UI snapshots for `chromium` (1)

* git diff only after optipng has run

* git diff only after optipng has run

* Update UI snapshots for `chromium` (1)

* Update .storybook/test-runner.ts

* text

* no need to run lint staged... we've already run optipng

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-15 11:15:43 +01:00
Paul D'Ambra
65de847328
chore: clear the console in storybook a little (#17430)
* chore: clear the console in storybook a little

* Update .storybook/preview.tsx

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* maybe this?

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* maybe this

* Update UI snapshots for `chromium` (1)

* 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>
2023-09-14 10:37:09 +01:00
David Newell
41d555eddb
chore: wait for unknown lettermark (#17346)
* chore: wait for unknown lettermark
2023-09-11 10:30:50 +01:00
Michael Matloka
41f49b7a18
chore: Use project week start setting in calendars (#17251) 2023-09-06 15:43:44 +02:00
Paul D'Ambra
04e6c7c7d3
chore: report when falling back (#17293)
* chore: report when falling back

* Update UI snapshots for `chromium` (2)

* wait for recordings to buffer in snapshots

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-02 17:35:18 +01:00
Michael Matloka
c098d4b0ba
ci(vrt): Better await in a few more stories (#17244)
* ci(vrt): Better await in a few more stories

* Optimize CI concurrency

* Explain mechanics
2023-08-30 11:49:15 +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
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
0b25f54e86
test(storybook): add more insight card examples (#15906)
* add global withFeatureFlags story decorator

* add more examples for insight cards

* Update UI snapshots for `chromium` (2)

* use cached results for all dashboard placements

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-08 21:02:46 +00:00
Michael Matloka
adbffe3584
test(vrt): Disable Firefox snapshots (#15846) 2023-06-01 14:33:21 +00:00
Michael Matloka
5bdfb4ac6d
fix(icons): Restore Redeem icon (#15694)
* fix(icons): Restore `Redeem` icon

* Snapshot all the icons
2023-05-24 12:49:53 +00:00
Ben White
33113b0494
feat: Improved Notebooks UX (#15561) 2023-05-24 12:44:57 +02:00
Michael Matloka
a94a9901d9
fix(taxonomic-filter): Show definition popovers again (#15598) 2023-05-22 09:15:17 +02:00
Michael Matloka
b44dd02b8a
style(3000): Refine sidebar style (#15179)
* style(3000): Refine sidebar style

* Remove extraneous class

* Use slightly darker `border-3000-light`

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Improve sidebar scrolling experience

* Fix logo colors in dark mode

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Make border color translucent

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-24 15:09:15 +02: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
ab6f079be7
test(frontend): Tune visual regression test failure threshold (#14766)
* Don't take snapshots of the feedback scene

Also fixes some typing.

* Change approach to loading Gravatars to avoid flakiness

* Reduce SSIM failure threshold and use more accurate algorithm

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `firefox` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Increase failure threshold a bit

* Go back to bezkrovny

Looks like `fast` is causing some inexplicable errors.

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `firefox` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-16 16:05:07 +01:00