0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 09:16:49 +01:00
Commit Graph

15 Commits

Author SHA1 Message Date
Marius Andra
8ccdde769f
feat(frontend): implement project-based routing (#13474) 2024-01-15 10:31:54 +01:00
Thomas Obermüller
e1c68da4bf
chore(3000): remove feature flag (#19416) 2023-12-27 09:52:28 +01:00
Thomas Obermüller
a667f1fe89
feat(3000): adapt hogql editor styles (#19326) 2023-12-14 14:47:32 +01: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
Paul D'Ambra
34742ddb70
feat: commenting can be even nicer (#17082) 2023-08-21 08:40:36 +00:00
Marius Andra
c051d68d4e
feat(data-tables): column configurator on other event tables (#17039)
* feat(data-tables): column configurator on other event tables, persistence setting

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* build schema

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-16 20:17:20 +02:00
David Newell
9489ee1501
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>
2023-08-10 10:30:47 +01:00
PostHog bot
838069d433
chore(deps): Update posthog-js to 1.75.0 (#16755) 2023-07-26 09:03:36 +02:00
Raquel Smith
c7d1900dd1
fix: email verification fixes (#14428)
* use is_email_available instead of is_cloud

* don't show need to verify warn if have social auth

* use multivariate flag so can run experiment

* frontend fixes

* evaluate flag locally
not passing in email meant we'd get the wrong flag on signup for some reason

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* update tests

* prefetch social auth query

* Update UI snapshots for `chromium` (1)

* Fix types

* fix

* 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` (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-03-03 19:30:49 -08:00
Paul D'Ambra
dbd7c16ad7
chore: make exported or shared query insight fail less confusingly (#14501)
* chore: make exported or shared query insight fail less confusingly

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

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-03 09:04:54 +00:00
Eric Duong
0e469c0fcf
fix(logic): add required arg to insightprops (#14520)
* add required arg

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-03 04:33:36 +00:00
Michael Matloka
631ba8c946
test(frontend): Improve reliability of visual regression tests (#14422)
* test(frontend): Ensure 100% reliability of visual regression tests

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Use OptiPNG in CI

* Update UI snapshots for `chromium` (1)

* Don't rely on pre-commit hook for image compression

* Allow waiting for selector instead of constant delay

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Add extra insight rendering conditions

* Set strict timeouts for visual regression test jobs

* Optimize OptiPNG step

* Fix histogram selector

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Ensure non-blank canvas

* Fix blank canvas detection and auto-detect `waitForLoadersToDisappear`

* Use `Spinner` for loading state in `MonacoEditor`

* Make timeout limits less strict

* Update UI snapshots for `chromium` (2)

* Improve blank canvas detection further

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Tune selectors

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

* Try a different way of ensuring graphs are rendered

* Update UI snapshots for `webkit` (2)

* Increase `waitForLoadersToDisappear` initial UI wait

* Update UI snapshots for `webkit` (2)

* Make it easier to see what file wasn't pushed

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Fix `timeout-minutes`

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Add extra wait for canvases

* 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-03-02 21:11:03 +00:00
Yakko Majuri
b51eb23f50
feat(sampling): add sampling to retention (#14447)
* feat(sampling): add sampling to retention

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* fix test

* more fixing

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

* fix

* Update query snapshots

* Update UI snapshots for `webkit` (2)

* 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-03-01 12:57:12 -03:00
Paul D'Ambra
81e33ffb2b
feat: add verbose logging for kea (#14457)
* feat: add verbose logging for kea

* 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 frontend/src/initKea.ts

Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>

* present for discovery, but off

* run prettier

* 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>
Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
2023-02-28 21:52:24 +00:00
Luke Harries
4d881631e7
feat: dashboard templates (#14322)
* with tab and templates

* added preview page for dashboards

* added button to go to the template dashboard

* use template

* added blank template

* Revert "added blank template"

This reverts commit ce67d2b53a.

* added blank template

* property filter working

* first filter

* added variables

* added undefined

* added create button

* added story

* reset dashboard modal on close

* can save tiles into db and get it back

* added dashboard variables

* add remaining variables

* change variable schema

* change create to use create

* load templates from the server

* showing the variables for the dashboard template

* added id and description to variables

* template function

* move out function

* improved formatting for now

* create_from_template_json now working

* working! Can use the dashboard variable

* added new dashboard template modal

* actually make a new dashboard template

* added table of dashboard templates

* added retrieval of dashboard tempalte by id

* can now create, update and delete dashboard templates if your a staff user

* can edit and delete template

* update templates table on template change

* added variable description to the UI

* close after updating

* improved layout

* added more validation

* added todos

* added required steps

* improved dashboard pictures

* added fallback color

* added setup events

* added large examples

* move update button to the bottom right

* rename newdashboardtemplate to dashboardtemplateeditor

* added closeNewDashboardTemplateModal

* fix types

* remove the groups tabs

* added feature flag and cleaned up

* added in the old modal and put the dashboard templates behind a feature flag

* remove dashboard variables from this

* fiexed the tests

* collapsed into 1 migration

* fixed import

* handle template variables length

* rename file

* fixing pr feedback

* store dashboard template in db

* validation error

* show the validation errors

* improve layout of dashboard templates

* improved error reasons

* removed any types

* replaced with api

* added migration

* removed inline styles

* removed old import

* remove duplicate import

* fix imports

* added in getting the schema from the backend

* fix imports and use schema from backend

* fixed monaco type error

* remove monaco import

* removed extra create from json function

* fix migrations

* fixed mypy issues

* rename /schema route to /json_schema

* Update snapshots

* Update snapshots

* fix mypy

* allow blank created_at in migration

* remove default in migration

* fixed nits from Thomas

* fix the model inline with the migration

* fixed migrations

* added new snapshots

* fix migrations

* update migration after merge

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* wrap css

* rename logic file

* remove return

* rename logic file

* a bunch of review fixes

* remove set method that allows for story to set templates

* justify between template cards

* move variables to props from useeffect

* utilityify the css object-fill

* ignore null warning in migration on small table

* fix create from template test

* Update query snapshots

* another attempt at allowing nulls in the migration

* unmount logics in story

* dashboard mocks errors

* primary buttons for primary actions

* a little simplification

* move set templates to API mock

* Update UI snapshots for `webkit` (2)

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

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

* Update UI snapshots for `chromium` (2)

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

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update query snapshots

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

* Update UI snapshots for `webkit` (2)

* story doesn't need useeffect

* don't load templates if featureflag is off

* don't load templates if flag is off

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

* cache schema for two minutes

* validate template against schema

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* fix tests

* Update UI snapshots for `chromium` (2)

* tailwindify our screen breakpoints to width and height css

* but not broken

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* fix test

* Update UI snapshots for `chromium` (2)

* Update query snapshots

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

* Update UI snapshots for `chromium` (2)

* hitting creation with a hammer

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* satisfy mypy

* tests for creating from template with text or query

* Update query snapshots

* put behind a new flag

* switch to css grid

* smaller border

* Update query snapshots

* live well at v2 templates with v1 templates

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

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: Paul D'Ambra <paul@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-02-28 11:45:25 +00:00