From ae15a1fe1cd0031fcde85c302eba8f4fe4c60478 Mon Sep 17 00:00:00 2001 From: Ritik Srivastava Date: Thu, 29 Jul 2021 11:29:22 +0530 Subject: [PATCH] Text corrections and unneeded key removal (#3065) * text corrections for analytics/application dashboard creation * create dashboard/select metric definition correction * untitled panel and panel group removed from translation due to error in querying * handle function revert Signed-off-by: Ritik Srivastava --- litmus-portal/frontend/public/locales/en/translation.yaml | 6 +++--- .../Steps/TuneTheQueries/EditPanelsWizard/index.tsx | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/litmus-portal/frontend/public/locales/en/translation.yaml b/litmus-portal/frontend/public/locales/en/translation.yaml index 07cc0d116..e3757c066 100644 --- a/litmus-portal/frontend/public/locales/en/translation.yaml +++ b/litmus-portal/frontend/public/locales/en/translation.yaml @@ -365,12 +365,12 @@ analyticsDashboard: addApplication: Add application selectTheMetrics: header: Select metrics - description: Based on the namespaces and application these are the possible metrics that can be plotted. + description: Based upon the selected dashboard type these are the possible metrics that can be plotted. errorMessage: No panel groups or panels were found. Re-upload the dashboard. tuneTheQueries: header: Tune the queries - description: Edit queries to the data source for fetching relevant metrics. - addMetric: + Add Metric + description: Edit queries in the panels for fetching the relevant metrics. + addPanel: + Add Panel query: Query queries: Queries visualization: Visualization diff --git a/litmus-portal/frontend/src/views/Analytics/ApplicationDashboards/Steps/TuneTheQueries/EditPanelsWizard/index.tsx b/litmus-portal/frontend/src/views/Analytics/ApplicationDashboards/Steps/TuneTheQueries/EditPanelsWizard/index.tsx index 1bd3da7e8..617e25cc9 100644 --- a/litmus-portal/frontend/src/views/Analytics/ApplicationDashboards/Steps/TuneTheQueries/EditPanelsWizard/index.tsx +++ b/litmus-portal/frontend/src/views/Analytics/ApplicationDashboards/Steps/TuneTheQueries/EditPanelsWizard/index.tsx @@ -221,7 +221,7 @@ const EditPanelsWizard: React.FC = ({ panel_id: '', panel_group_id: '', created_at: '', - panel_group_name: 'Untitled Group name', + panel_group_name: 'Untitled Panel Group', ds_url: dashboardVars.dataSourceURL ?? '', prom_queries: [ { @@ -240,7 +240,7 @@ const EditPanelsWizard: React.FC = ({ grids: true, left_axis: true, }, - panel_name: 'Untitled Metric', + panel_name: 'Untitled Panel', y_axis_left: '', y_axis_right: '', x_axis_down: '', @@ -496,10 +496,9 @@ const EditPanelsWizard: React.FC = ({ ))}