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

109 Commits

Author SHA1 Message Date
Paul D'Ambra
63a1cb56e5
feat: choose if dashboard deletion also deletes insights (#12640)
Problem
Via customer feedback: If someone is deleting a dashboard they want to delete the insights too. At the moment that means they have to delete them one at a time.

Changes
Introduces a modal when deleting a dashboard that lets you choose whether to delete the insights on the dashboard

Soft-deletes the insights as appropriate
2022-11-08 15:50:58 +00:00
Emanuele Capparelli
ddbd03127e
fix: flaky cypress billing tests (#12677) 2022-11-08 13:06:06 +00:00
Michael Matloka
9acef00c83
fix(login): Allow retrying login after invalid email/password attempt (#12572) 2022-11-02 14:57:29 +00:00
Eric Duong
545cdb126c
refactor: clean up feature-flag-ux flag (#12411)
refactor: clean up flag
2022-10-25 02:03:46 +00:00
Michael Matloka
412e055657
feat(trends): Compact series math selector (#12377)
* chore(trends): Fix up Trends math options

* Rework math selector

* Restore Group Analytics upsell footer

* Put "Count per user" second

* Update E2E test

* Update snapshots

* Fix `ListRowOption` typing

* Fix nested selection

* Rename `EventPerActorCount` to `EventCountPerActor`

* Fix math category

* Incorporate #12380

* Fix typing

* Update hobby-ci.py

* Revert "Update hobby-ci.py"

This reverts commit e832d86359.

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-10-24 15:29:33 +02:00
Michael Matloka
3df3825a73
fix(insights): Redirect on new insight "Save & continue editing" (#12384)
* fix(insights): Redirect on new insight "Save & continue editing"

* Add Cypress assertion
2022-10-24 13:40:14 +02:00
Paul D'Ambra
dcb771aa83
chore: check turbo mode is updated in more insight e2e tests (#12378) 2022-10-21 10:15:03 +01:00
Paul D'Ambra
ed049830df
chore: add some cypress tests that exercise turbo mode more (#12350)
* chore: add some cypress tests that exercise turbo mode more

* a little before eaching
2022-10-20 13:24:56 +01:00
Tiina Turban
7f2b274770
chore: remove merge persons option from persons page (#12034) 2022-10-11 15:44:10 +02:00
Ben White
1e0f1f591c
feat: Added more buttons for viewing recordings from data management (#12162) 2022-10-10 15:27:53 +02:00
Alex Gyujin Kim
e00157469a
feat(recordings): navigate from data management event to recording (#12129) 2022-10-10 09:55:23 +02:00
Paul D'Ambra
18f13d19c5
chore: cypress to wait for API call to complete before checking UI state (#11889) 2022-09-20 20:01:54 +01:00
Marius Andra
91a43ea413
chore(actions): rename calculated events to actions, remove flag (#11864)
* chore(actions): rename calculated events to actions, remove flag

* remove even more action-event code

* remove deprecated tests

* fix cypress
2022-09-20 14:46:40 +02:00
Ben White
b607de4c8e
fix: Popup within Popup clicking (#11761) 2022-09-15 08:42:08 +00:00
Paul D'Ambra
b391b6db8b
fix: test is less flaky if it doesn't select using focussed (#11824) 2022-09-15 08:40:49 +01:00
Paul D'Ambra
303e88bbfc
feat: save title or description of insight or dashboard on blur (#11774)
* revert: #11552

* feat: save title and description on blur

* allow undo when renaming insight

* minimise change

* minimise change

* fix cancelling and add conditional updatedaashboard undo

* no need to change saved insights logic

* only save on blur if value has changed else cancel

* add cypress test to rename insight

* add a cypress test that you can change (and revert that change) an insight name

* wait for insight save to complete
2022-09-14 20:02:51 +01:00
Li Yi Yu
d4508ed47a
fix: use lemon components for taxonomic property filters (#11539)
* use lemon components for taxonomic property filters

* add property value class

* fix

* use lemon select props instead

* slightly less generic classname

* add back classname for tests

* do not use muted alt

* label with classname

* feat: Ungrid filter row to help with lemonizing (#11733)

Co-authored-by: Ben White <ben@benjackwhite.co.uk>
2022-09-10 11:40:13 -04:00
Ben White
80b3212898
feat: Lemon Skeletons (#11629) 2022-09-08 13:54:00 +00:00
Ben White
7403d1f3e2
fix: Simplified PropertyKeyInfo everywhere (#11591) 2022-09-02 16:25:29 +02:00
Ben White
8652246b95
fix: NewActionButton casing and modal (#11568) 2022-09-01 10:45:10 +02:00
Emanuele Capparelli
b3ed063e7a
fix: remove data tooltip, improve prompt rules, add caching fix (#11495)
* fix: remove data tooltip and improve prompts rules

* fix test fixtures

* simplify expression

* fix cypress

* add cache prefix

* Update frontend/src/lib/components/LemonButton/More.tsx

Co-authored-by: Marius Andra <marius.andra@gmail.com>

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2022-08-25 16:25:59 +00:00
Ben White
3b1fe40828
feat: Lemonify Signup/Login (#11266) 2022-08-25 15:07:44 +01:00
Marius Andra
7cf3f71215
feat(data-management): add custom events list (#11463)
* feat(data-management): add custom events list

* remove dead code

* fix test

* assert what matters

* this seems flakey, even locally, though the interface shows the right data locally... testing a timeout

* new script

* fix test

* remove frontend changes (PR incoming)

* describe meaning behind symbols
2022-08-25 11:00:34 +00:00
Emanuele Capparelli
456484927a
fix: revert remove data-tooltip (#11447)
Revert "fix: remove data tooltip and improve prompts rules (#11441)"

This reverts commit 721f1ea038.
2022-08-23 19:35:58 +01:00
Emanuele Capparelli
721f1ea038
fix: remove data tooltip and improve prompts rules (#11441)
* fix: remove data tooltip and improve prompts rules

* fix test fixtures

* simplify expression

* fix cypress
2022-08-23 18:15:39 +01:00
Alex Gyujin Kim
a53a21cd9a
fix(data-m): fix property filter resetting event filter (#11282) 2022-08-18 15:37:10 +00:00
timgl
5780a285d7
perf(insights): Speed up loading properties (#11037)
* perf(insights): Speed up loading properties

* paginator that doesn't count with manual limit and offset

* fix tests and types

* remove console.log

* one more test that relied on count

* add a full count to every row

* make a query context object that can be used to count or return results

* silence unrelated homepage error

* minimise change surface

* minimise change surface

* override less of the pager

Co-authored-by: Paul D'Ambra <paul@posthog.com>
2022-08-17 16:19:09 +01:00
Paul D'Ambra
e30f824cda
feat: no button muted alt (#11278)
* insight card primary alt

* lemon input side icon primary alt

* remove button muted alt

* turn on critical a11y testing for home page

* remove muted alt from scss

* de muteify the password input
2022-08-17 08:43:40 +01:00
Ben White
8d90b1075c
feat: Lemonify org settings (#11257) 2022-08-16 09:58:18 +02:00
Ben White
d14549113e
feat: Swap to LemonInputs for searching (#11179) 2022-08-10 13:00:08 +02:00
Paul D'Ambra
0a6d99c0a6
feat: test a11y with Cypress (#11199)
* feat: test a11y with Cypress

* axe test more pages

* archive a11y violations on success too

* remove date from file path

* don't warn if no accessibility files to upload... they're not on all test jobs
2022-08-09 19:12:41 +01:00
Marius Andra
d86b2f153b
feat(property-filters): Feature flags in a separate tab (#10668)
* is_feature_flag for event property definitions

* feature flag separate tab

* fix test setup

* correct mock for events cypress tests

* add cypress test for feature flag tab of taxonomic filter

Co-authored-by: Paul D'Ambra <paul@posthog.com>
2022-08-09 10:30:37 +01:00
Ben White
f6e53fe9e4
fix: Button anchors (#11193) 2022-08-09 07:59:00 +00:00
Ben White
893c483adf
feat: LemonButton refactor (#11093) 2022-08-08 08:27:00 +02:00
Emanuele Capparelli
3716cd4107
fix: fix blocking cypress test (#11144) 2022-08-04 12:29:21 +00:00
Paul D'Ambra
d3e293cab9
fix: seperates out cypress test so it can fail for the actual reason it fails (#11123)
* seperates out cypress test so it can fail for the actual reason it fails

* doh
2022-08-04 10:13:28 +02:00
Li Yi Yu
aba7a2ae36
feat(feature-flags): Improve feature flags snippets instructions (#11100)
* feat(feature-flags): Improve feature flags snippets instructions

* fix(code-format): prettier formatting on scss file

* add kefrana for contributor

Co-authored-by: Franck <abgrallkefran@gmail.com>
Co-authored-by: eric <eeoneric@gmail.com>
2022-08-03 12:22:33 -04:00
Paul D'Ambra
c3fe099e8b
chore: add event properties during setup (#11097)
* chore: add event properties during setup

* no need to expand properties
2022-08-03 12:31:36 +01:00
Ben White
78bfb1917f
feat: Replace some styles with classes (#11073) 2022-08-02 09:10:15 +02:00
Alex Gyujin Kim
31e239e20b
refactor(data-m): rename actions to calculated events (#11018) 2022-07-28 16:04:27 +00:00
Alex Gyujin Kim
53afdc7283
feat(data-m): add event type filter to list view (#10961) 2022-07-26 17:46:15 +00:00
Paul D'Ambra
a76c59341f
feat: remove csv export flag (#10939)
* remove csv export flag

* act on todo

* Address some errors

* fix test
2022-07-25 09:36:59 +01:00
timgl
3d8f8dfe26
perf(decide): Speed up decide endpoint by shortcircuiting middleware (#10744)
* perf(decide): Speed up decide endpoint by shortcircuiting middleware

* fix cypress tests
2022-07-13 14:37:53 +01:00
Emanuele Capparelli
a1c0aafa29
chore: date filter UI fixes (#10673)
* chore: date filter UI fixes

* fix eslint errors

* fixes

* fix test

* fix cypress

* add test

* Update frontend/src/scenes/dashboard/DashboardHeader.tsx

Co-authored-by: Marius Andra <marius.andra@gmail.com>

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2022-07-08 10:18:26 +01:00
Ben White
c97fb320d6
feat: Universal CSV exports (#10644)
* Added new version of the exporter using API based exporting

Co-authored-by: Paul D'Ambra <paul@posthog.com>
2022-07-07 19:16:13 +00:00
Marius Andra
c9c8908f14
feat(setting): organization member pagination and search (#10651)
* convert to lemon table

* limit members to 50, add search

* improve the look

* memoize fuse

* memoize fuse

* fix test
2022-07-07 08:16:40 +00:00
Emanuele Capparelli
dfc04afa08
feat: date filter experiment (#10462)
Co-authored-by: Ben White <ben@benjackwhite.co.uk>
2022-07-04 12:46:12 +01:00
Marius Andra
fc9a225d8a
feat(sharing): improve sharing modal (#10582)
* feat(sharing): improve sharing modal

* more cleanup

* fix sharing test

* codesnippet copy link

* adjust title

* adjust styles

* change the box
2022-06-30 18:44:11 +02:00
Ben White
f4e64b07a5
feat(sharing): Insight Sharing / Embedding (#10536)
* Added SharingConfiguration
* Added SharingModal for Insights
* Simplified insight permission check
* Merged sharing/exports/embed into one view
* Removed share_token usage wherever possible

Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: benjackwhite <benjackwhite@users.noreply.github.com>
2022-06-30 11:58:58 +00:00
Ben White
893deff260
feat: Editor panels refactor (#10499)
* Big refactoring of Insights codebase

* More deletions

* Added missing Attribution Filter
Fixed Lifecylce toggles style

* Fixed funnels style and formula / breakdown buttons

* Removed ant stylers

* More refactoring

* Fix

* Fix imports

* Fixed styles to match previous

* Fixed some remaining issues

* rename 1

* Rename folders

* Renamed away from EF*

* Fix cypress tests

* Removed comment

* Fixed nav always showing

* Corrected EF name
2022-06-28 11:51:17 +02:00
Marius Andra
d51a2ce3df
fix(popups): replace popper with floating ui (#10295)
* wip

* it actually works now

* fix pinned dashboard display

* popups

* fix TS issues

* shortcut

* remove popper

* refactor to floating ui

* remove debug

* even more cleanup

* cleaner handler

* yarn.lock

* simplify more

* not taller than the window

* position top popups

* simplify

* let me work with node 18

* fix few more popups

* fix top open animation

* fix some tests

* use html element for consistency

* revert random changes

* don't write the default

* fallback first, then shift
2022-06-24 12:44:54 +02:00
Eric Duong
dcab55e3c3
refactor: Release cohort filters ff (#10422)
* refactor: release cohort filtering

* chort: empty

* sugar and unused components

* remove old cohort grouop tests

* add component data-attr

Co-authored-by: Alex Kim <alexgkim205@gmail.com>
2022-06-23 13:02:01 -07:00
Rick Marron
8a23be18dc
feat(session-analysis): Enable filtering by session length (#10356)
* it works

* add to group filters

* add feature flag

* add support for insight panels

* add backend tests

* add frontend tests

* Update snapshots

* type fixes

* fix cypress

* paramaterize team_id

* clean up FF

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-06-23 08:05:45 -07:00
Eric Duong
9430c258d3
fix: Change placeholder color to muted and make popup appear directly (#10394)
* fix: change color to muted and make popup appear directly

* fix: add active state when popup open

* fix: border width

* change title back

* adjust test
2022-06-22 19:50:33 -04:00
Paul D'Ambra
41dba04443
feat: toolbar side bar launching v2 (#10377)
* unique attribute on toolbar side action button

* remove sneaky it.only

* clicking add new URL moves to toolbar page and focusses the new url input

* refactor tests
2022-06-21 09:10:29 +02:00
Paul D'Ambra
023deb7693
feat: add toolbar launching from the side bar (#10354)
* feat: add toolbar launching from the side bar

* always have an add url button

* fix idiocy

* fix cypress tests

* fix cypress tests, ugh

* fix cypress tests, ugh

* add a toolbar launch button cypress test
2022-06-20 11:04:29 +02:00
Emanuele Capparelli
c57949a035
fix: person-events-table (#10342)
* fix: person-events-table

* add cypress test
2022-06-17 13:43:57 +02:00
Emanuele Capparelli
102e375878
feat: save default live events columns (#10293)
* feat: save default live events columns

* added column config logic test

* ran prettier

* Update snapshots

* fix api.mock.ts

* fixes after review

* fix test

* Update snapshots

* fixes after review

* fixes after review

* add migration

* fix black formatting

* fix cypress test

* remove items from lists after selection

* disable text selection in infinite lists

* fix bug

* fix nit

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-06-16 17:19:31 +02:00
Paul D'Ambra
d613f4bd06
chore: upgrade cypress to v10x (#9650)
* update cypress

* really click something that's actually there

* obey cypress and use done

* run cypress 9 in CI

* no need for before each when only one test

* no need to set window size to the default

* get tests passing file by file

* delay checking for a graph in a test

* be more specific cypress

* use cy command

* select text like a human

* silly cypress

* try and avoid cypress deciding that a visible field is not valid

* select delete button correctly

* find save button differently

* try and avoid not always typing the first character

* better trends selections

* use cy command to navigate

* conitnue trying to get tests to pass in CI

* another try at setting feature flag names in CI

* can CI find undo button without a wait?

* better assertion for cypress

* up to v10

* fix splitting specs with v10 path

* show cypress how to wait for the test to finish

* remove redundant file

* change return to satisfy new cypress

* move import
2022-06-09 11:14:21 +01:00