grafana/public/app/core
Kristina 4b3d63dcdc
Correlations: Add an editor in Explore (#73315)
* Start adding correlations editor mode

* Add selector for merge conflict resolution

* Enable saving

* Build out new corelation helper component

* flesh out save with label/description, change color

* Have breadcrumb exit correlation editor mode

* Add extension property to show/hide, use it for correlations

* Bring in feature toggle

* Remove unnecessary param

* Cleanup

* Parse logs json

* Work on correlation edit mode bar

* Tinker with a top element for the editor mode

* Handle various explore state changes with correlations editor mode

* WIP - add unsaved changes modal

* Have correlation bar always rendered, sometimes hidden

* Add various prompt modals

* Clear correlations data on mode bar unmount, only use not left pane changes to count as dirty

* Move special logic to explore

* Remove all shouldShow logic from plugin extensions

* remove grafana data changes

* WIP - clean up correlations state

* Interpolate data before sending to onclick

* Override outline button coloring to account for dark background

* More cleanup, more color tweaking

* Prettier formatting, change state to refer to editor

* Fix tests

* More state change tweaks

* ensure correlation save ability, change correlation editor state vars

* fix import

* Remove independent selector for editorMode, work close pane into editor exit flow

* Add change datasource post action

* Clean up based on PR feedback, handle closing left panel with helper better

* Remove breadcrumb additions, add section and better ID to cmd palette action

* Interpolate query results if it is ran with a helper with vars

* Pass the datasource query along with the correlate link to ensure the datasource unique ID requirement passes

* Use different onmount function to capture state of panes at time of close instead of time of mount

* Fix node graph’s datalink not working

* Actually commit the fix to saving

* Fix saving correlations with mixed datasource to use the first query correlation UID

* Add tracking

* Use query datasources in mixed scenario, move exit tracking to click handler

* Add correlations to a place where both can be used in the correlations editor

* Be more selective on when we await the datasource get

* Fix CSS to use objects

* Update betterer

* Add test around new decorator functionality

* Add tests for decorate with correlations

* Some reorganization and a few tweaks based on feedback

* Move dirty state change to state function and out of component

* Change the verbiage around a little

* Various suggestions from Gio

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* More small Gio-related tweaks

* Tie helper data to datasource - clear it out when the datasource changes

* Missed another Gio tweak

* Fix linter error

* Only clear helper data on left pane changes

* Add height offset for correlation editor bar so it doesn’t scroll off page

---------

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2023-10-03 09:28:29 -05:00
..
actions TopNav: Plugin page layouts / information architecture (#53174) 2022-09-05 14:56:08 +02:00
components Correlations: Add an editor in Explore (#73315) 2023-10-03 09:28:29 -05:00
context TopNav: KioskMode rewrite move to AppChrome responsibility and make it a global feature (#55149) 2022-09-15 14:04:58 +02:00
copy Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
history Chore: Upgrade prettier to v3 (#71764) 2023-07-17 15:58:22 +01:00
hooks Navigation: Fix broken layout at 544px (#63793) 2023-03-01 15:31:32 +00:00
internationalization I18n: Add server config to detect browser language (#69396) 2023-07-14 10:24:50 +00:00
navigation Chore: More typescript improvements 💪 (#68699) 2023-05-22 11:53:58 +01:00
reducers Navigation: create the DockedMegaMenu component and use the toggle to switch between it and MegaMenu (#75084) 2023-09-19 17:47:03 +02:00
selectors Browse Dashboards: Split new browse UI from nested folders backend (#74435) 2023-09-07 11:41:00 +01:00
services DashboardScene: Panel menu tracking, adding explore menu action and unit tests (#74867) 2023-09-14 16:12:20 +02:00
specs Chore: Improve typings 🧹 (#74599) 2023-09-13 09:17:07 +01:00
utils Correlations: Add an editor in Explore (#73315) 2023-10-03 09:28:29 -05:00
app_events.ts EventBus: Introduces new event bus with emitter backward compatible interface (#27564) 2020-11-03 13:08:54 +01:00
config.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
constants.ts Dashboards: POC split between visualizations and widgets (#70850) 2023-07-12 10:09:22 -03:00
core.ts TopNav: KioskMode rewrite move to AppChrome responsibility and make it a global feature (#55149) 2022-09-15 14:04:58 +02:00
lodash_extended.ts Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
profiler.ts Chore: Improve some types (#64675) 2023-03-14 09:51:44 +00:00
store.ts any/type assertion fixes (#57009) 2022-10-17 10:10:10 +01:00
TableModel.ts Chore: more any/type assertion improvements (#57450) 2022-10-25 11:04:35 +02:00
time_series2.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
trustedTypePolicies.ts Sandbox: use same trusted types default policy than grafana main realm (#75539) 2023-09-27 16:50:23 +02:00