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