You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jl...@apache.org on 2026/06/29 17:20:01 UTC

(superset) branch master updated: fix(frontend): finish sentence-case conversion for time range buttons (#41488)

This is an automated email from the ASF dual-hosted git repository.

sadpandajoe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 11a4a17dffc fix(frontend): finish sentence-case conversion for time range buttons (#41488)
11a4a17dffc is described below

commit 11a4a17dffc7b082570cd0d5068b7ab262047320
Author: Evan Rusackas <ev...@preset.io>
AuthorDate: Mon Jun 29 10:19:54 2026 -0700

    fix(frontend): finish sentence-case conversion for time range buttons (#41488)
    
    Co-authored-by: Claude Opus 4.8 <no...@anthropic.com>
---
 superset-frontend/src/components/Chart/chartAction.ts           | 4 +---
 superset-frontend/src/components/ListView/Filters/TimeRange.tsx | 4 ++--
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/superset-frontend/src/components/Chart/chartAction.ts b/superset-frontend/src/components/Chart/chartAction.ts
index 53caea51e88..65b94f231b0 100644
--- a/superset-frontend/src/components/Chart/chartAction.ts
+++ b/superset-frontend/src/components/Chart/chartAction.ts
@@ -817,9 +817,7 @@ export function exploreJSON(
             ),
         );
         (queriesResponse as QueryData[]).forEach(response => {
-          const { warning } = response as QueryData & {
-            warning?: string | null;
-          };
+          const { warning } = response as { warning?: string | null };
           if (warning) {
             dispatch(addWarningToast(warning, { noDuplicate: true }));
           }
diff --git a/superset-frontend/src/components/ListView/Filters/TimeRange.tsx b/superset-frontend/src/components/ListView/Filters/TimeRange.tsx
index 8ecb3009588..b7aaab43ae8 100644
--- a/superset-frontend/src/components/ListView/Filters/TimeRange.tsx
+++ b/superset-frontend/src/components/ListView/Filters/TimeRange.tsx
@@ -249,7 +249,7 @@ function TimeRangeFilter(
       <Divider />
       <div className="footer">
         <Button buttonStyle="secondary" cta key="cancel" onClick={onClose}>
-          {t('CANCEL')}
+          {t('Cancel')}
         </Button>
         <Button
           buttonStyle="primary"
@@ -281,7 +281,7 @@ function TimeRangeFilter(
             onClose();
           }}
         >
-          {t('APPLY')}
+          {t('Apply')}
         </Button>
       </div>
     </ContentWrapper>