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