grafana/public/app/core/components
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
..
AccessControl Browse Dashboards: Split new browse UI from nested folders backend (#74435) 2023-09-07 11:41:00 +01:00
Animations Chore: Avoid explicit React.FC<Props> when possible (#64722) 2023-03-14 16:38:21 +02:00
AppChrome DockedMegaMenu: Refactor and rename to simplify (#75872) 2023-10-03 13:03:27 +01:00
AppNotifications AppNotifications: Fixes issue with missing app notifications (#67190) 2023-04-25 11:46:58 +02:00
Branding Whitelabeling: Add a config option to hide the Grafana edition from the footer (#73412) 2023-08-18 15:09:36 +01:00
Breadcrumbs DockedMegaMenu: Show correct breadcrumbs on dashboard settings (#75808) 2023-10-02 13:58:27 +01:00
CloseButton Chore: Upgrade prettier to v3 (#71764) 2023-07-17 15:58:22 +01:00
ColorScale Chore: more any/type assertion improvements (#57450) 2022-10-25 11:04:35 +02:00
DynamicImports GrafanaRoute: Use React.Lazy instead of react-loadable and improve error handling (#55339) 2022-09-21 05:41:05 +02:00
EmptyListCTA Chore: Avoid explicit React.FunctionComponent<Props> when possible (round 3) (#64839) 2023-03-16 16:56:26 +02:00
FolderFilter Chore: Refactor Search/Folder view types into DashboardViewItem (#63162) 2023-02-23 15:52:54 +00:00
Footer Whitelabeling: Add a config option to hide the Grafana edition from the footer (#73412) 2023-08-18 15:09:36 +01:00
ForgottenPassword Login: Show additional information when prompting to change password (#69537) 2023-06-06 11:24:46 +01:00
help i18n: Mark up HelpModal for translations (#73806) 2023-08-30 14:08:18 +01:00
Indent DockedMegaMenu: Refactor and rename to simplify (#75872) 2023-10-03 13:03:27 +01:00
IntervalInput Traces: Add inline validation and greater precision to duration fields in span filters (#71404) 2023-07-13 10:48:31 +01:00
Layers Chore: Replace deprecated usage of shape.borderRadius() (#72672) 2023-08-01 14:46:07 +01:00
LocalStorageValueProvider Make LocalStorageProvider react to storage events (#55810) 2022-09-27 14:37:59 +02:00
Login Whitelabeling: Add a config option to hide the Grafana edition from the footer (#73412) 2023-08-18 15:09:36 +01:00
modals Chore: More typescript improvements 💪 (#68699) 2023-05-22 11:53:58 +01:00
NavLandingPage Admin: Add redirect notice for datasources to admin landing page (#72736) 2023-08-04 07:45:09 +02:00
NestedFolderPicker DockedMegaMenu: Refactor and rename to simplify (#75872) 2023-10-03 13:03:27 +01:00
OptionsUI Chore: Remove DashboardPickerByID (#73466) 2023-09-18 11:21:38 +03:00
Page GLDS: Move Text component from the unstable package to grafana-ui (#72660) 2023-08-02 14:58:00 +02:00
PageActionBar Forms: Remove some gf-form appearances in Grafana (#66735) 2023-05-31 09:50:53 +02:00
PageHeader Dashboard: Remove old panel code and leave only new panel design (#74196) 2023-09-12 11:54:41 +03:00
PageInfo Add new PageInfo component (#58421) 2022-11-08 14:20:05 +00:00
PageLoader Chore: Avoid explicit React.FC<Props> when possible (#64722) 2023-03-14 16:38:21 +02:00
PageNotFound PageNotFound: G10 Redesign (#66909) 2023-04-28 08:18:14 +02:00
PanelTypeFilter Dashboards: POC split between visualizations and widgets (#70850) 2023-07-12 10:09:22 -03:00
PasswordField Add tooltip to instances of IconButton (#68880) 2023-06-08 10:23:28 +02:00
PermissionList Chore: Migrate more usage of v1 themes to v2 (#57680) 2022-11-02 10:25:08 +00:00
PluginHelp Plugins: Fix plugin query help markdown (#60485) 2023-01-03 14:20:27 +01:00
QueryOperationRow DashboardScene: Inspect panel data tab (#74646) 2023-09-11 16:11:22 +02:00
RolePicker Service accounts: Fix mouse leave event by hide scrollbar in firefox and chrome (#74266) 2023-09-08 07:40:18 +01:00
Select Browse Dashboards: Split new browse UI from nested folders backend (#74435) 2023-09-07 11:41:00 +01:00
SharedPreferences Forms: Remove gf-form appearances in admin, profile and team settings (#74360) 2023-09-20 12:04:56 +02:00
Signup Chore: Avoid explicit React.FC<Props> when possible (#64722) 2023-03-14 16:38:21 +02:00
SplitPaneWrapper Correlations: Add an editor in Explore (#73315) 2023-10-03 09:28:29 -05:00
SVG Canvas: Avoid conflicting stylesheets when loading SVG icons (#74461) 2023-09-18 17:38:45 +00:00
TagFilter Chore: Improve typings 🧹 (#74599) 2023-09-13 09:17:07 +01:00
TimelineChart StateTimeline: Refactor hover markers (#75326) 2023-09-23 05:35:17 +03:00
TimePicker Time Range: Using relative time takes timezone into account (#74013) 2023-09-04 10:38:35 +01:00
TraceToLogs Trace View: Remove "deployment.environment" default traces 2 logs tag (#74986) 2023-09-26 16:52:32 +03:00
TraceToMetrics Tracing: Trace to metrics default range (#72433) 2023-07-31 11:24:12 +01:00
Upgrade Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
CardButton.tsx Chore: Replace deprecated usage of shape.borderRadius() (#72672) 2023-08-01 14:46:07 +01:00
ConfigDescriptionLink.tsx Tracing: Upgrade tracing data source configuration editors (#68764) 2023-06-01 15:52:40 +01:00
connectWithCleanUp.tsx Chore: Update and enforce usage of typed react-redux hooks (#55349) 2022-09-19 10:49:35 +01:00
Divider.tsx Tracing: Upgrade tracing data source configuration editors (#68764) 2023-06-01 15:52:40 +01:00
NodeGraphSettings.tsx Tracing: Upgrade tracing data source configuration editors (#68764) 2023-06-01 15:52:40 +01:00
WithFeatureToggle.tsx Chore/React18: Update component prop types (#56898) 2022-10-14 10:24:32 +01:00