From 911403bf6d133536ddb90d4424b3c30efe78d700 Mon Sep 17 00:00:00 2001 From: aadhikari Date: Mon, 1 May 2023 12:38:11 -0700 Subject: [PATCH 1/8] Update the color of the run button when it is in a running state --- .../src/SqlLab/components/RunQueryActionButton/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/SqlLab/components/RunQueryActionButton/index.tsx b/superset-frontend/src/SqlLab/components/RunQueryActionButton/index.tsx index 0a2aa992643b5..a639b8f88accd 100644 --- a/superset-frontend/src/SqlLab/components/RunQueryActionButton/index.tsx +++ b/superset-frontend/src/SqlLab/components/RunQueryActionButton/index.tsx @@ -146,7 +146,9 @@ const RunQueryActionButton = ({ ), trigger: 'click', } - : { buttonStyle: 'primary' })} + : { + buttonStyle: shouldShowStopBtn ? 'danger' : 'primary', + })} > {buildText(shouldShowStopBtn, selectedText)} From 4256550dce5822fc3f52054642aeb0e47898a27a Mon Sep 17 00:00:00 2001 From: aadhikari Date: Tue, 2 May 2023 13:56:17 -0700 Subject: [PATCH 2/8] stop button styles updated to match explore button scheme --- .../src/SqlLab/components/RunQueryActionButton/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/SqlLab/components/RunQueryActionButton/index.tsx b/superset-frontend/src/SqlLab/components/RunQueryActionButton/index.tsx index a639b8f88accd..383cb072e5da7 100644 --- a/superset-frontend/src/SqlLab/components/RunQueryActionButton/index.tsx +++ b/superset-frontend/src/SqlLab/components/RunQueryActionButton/index.tsx @@ -44,7 +44,7 @@ const buildText = ( if (shouldShowStopButton) { return ( <> - {t('Stop')} + {t('Stop')} ); } @@ -147,7 +147,7 @@ const RunQueryActionButton = ({ trigger: 'click', } : { - buttonStyle: shouldShowStopBtn ? 'danger' : 'primary', + buttonStyle: shouldShowStopBtn ? 'warning' : 'primary', })} > {buildText(shouldShowStopBtn, selectedText)} From 93062b24faa39268c895592a97f9792cababec56 Mon Sep 17 00:00:00 2001 From: aadhikari Date: Wed, 3 May 2023 00:30:19 -0700 Subject: [PATCH 3/8] sql lab and explore view run query button updated --- .../src/SqlLab/components/RunQueryActionButton/index.tsx | 2 +- .../src/explore/components/RunQueryButton/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/SqlLab/components/RunQueryActionButton/index.tsx b/superset-frontend/src/SqlLab/components/RunQueryActionButton/index.tsx index 383cb072e5da7..f9181188f9817 100644 --- a/superset-frontend/src/SqlLab/components/RunQueryActionButton/index.tsx +++ b/superset-frontend/src/SqlLab/components/RunQueryActionButton/index.tsx @@ -44,7 +44,7 @@ const buildText = ( if (shouldShowStopButton) { return ( <> - {t('Stop')} + {t('Stop')} ); } diff --git a/superset-frontend/src/explore/components/RunQueryButton/index.tsx b/superset-frontend/src/explore/components/RunQueryButton/index.tsx index 622cb516f00bf..f5e3bcfed0cbb 100644 --- a/superset-frontend/src/explore/components/RunQueryButton/index.tsx +++ b/superset-frontend/src/explore/components/RunQueryButton/index.tsx @@ -42,7 +42,7 @@ export const RunQueryButton = ({ }: RunQueryButtonProps) => loading ? ( ) : (