From 3850f7b334132fcbbd6e58a40aac2e1df1e87d72 Mon Sep 17 00:00:00 2001 From: Kristina Date: Wed, 14 Jun 2023 08:34:06 -0500 Subject: [PATCH] Correlations: UX updates (#69313) * Round 1 * Add comma * Remove validate query from editor * Slightly change headings * Change text --- .../correlations/CorrelationsPage.tsx | 10 +- .../ConfigureCorrelationBasicInfoForm.tsx | 6 +- .../Forms/ConfigureCorrelationSourceForm.tsx | 9 +- .../Forms/ConfigureCorrelationTargetForm.tsx | 6 +- .../Forms/CorrelationFormNavigation.tsx | 4 +- .../Forms/QueryEditorField.test.tsx | 102 +----------------- .../correlations/Forms/QueryEditorField.tsx | 94 +--------------- 7 files changed, 29 insertions(+), 202 deletions(-) diff --git a/public/app/features/correlations/CorrelationsPage.tsx b/public/app/features/correlations/CorrelationsPage.tsx index db075c534ea..dd93e7884a6 100644 --- a/public/app/features/correlations/CorrelationsPage.tsx +++ b/public/app/features/correlations/CorrelationsPage.tsx @@ -15,6 +15,7 @@ import { type Column, type CellProps, type SortByFn, + Icon, } from '@grafana/ui'; import { Page } from 'app/core/components/Page/Page'; import { contextSrv } from 'app/core/core'; @@ -153,7 +154,14 @@ export default function CorrelationsPage() { return ( + Define how data living in different data sources relates to each other. Read more in the{' '} + + documentation + + + } actions={addButton} > diff --git a/public/app/features/correlations/Forms/ConfigureCorrelationBasicInfoForm.tsx b/public/app/features/correlations/Forms/ConfigureCorrelationBasicInfoForm.tsx index 00a120c5817..7cd8fd739de 100644 --- a/public/app/features/correlations/Forms/ConfigureCorrelationBasicInfoForm.tsx +++ b/public/app/features/correlations/Forms/ConfigureCorrelationBasicInfoForm.tsx @@ -25,12 +25,12 @@ export const ConfigureCorrelationBasicInfoForm = () => { return ( <> -
-

The name of the correlation is used as the label of the link.

+
+

Define text that will describe the correlation.

{ ); return ( <> -
+

- Links are displayed with results of the selected origin source data. They show along with the value of the - provided results field. + Define what data source will display the correlation, and what data will replace previously defined variables.

{ return ( <> -
-

Clicking on a link runs a provided target query.

+
+

+ Define what data source the correlation will link to, and what query will run when the correlation is clicked. +

{ ); const NextPage = ( - ); return ( - + {currentPage > 0 ? ( - ); }}