Skip to content

fix(ux): use title case for button labels#40022

Closed
aminghadersohi wants to merge 1 commit into
apache:masterfrom
aminghadersohi:polish-ux-01-button-caps
Closed

fix(ux): use title case for button labels#40022
aminghadersohi wants to merge 1 commit into
apache:masterfrom
aminghadersohi:polish-ux-01-button-caps

Conversation

@aminghadersohi
Copy link
Copy Markdown
Contributor

SUMMARY

Replaces ALL CAPS button labels with Title Case to align with the Superset design system convention. Six labels across five files were using uppercase strings that violate the established button label style.

Changes:

  • DateFilterLabel.tsx: CANCELCancel, APPLYApply
  • AnnotationLayer.tsx: OKConfirm
  • DatasourceModal/index.tsx: OKConfirm
  • Tabs.tsx: DELETEDelete
  • ResultSet/index.tsx: OKConfirm

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before: Button labels displayed in ALL CAPS (e.g. CANCEL, APPLY, OK, DELETE)
After: Button labels displayed in Title Case (e.g. Cancel, Apply, Confirm, Delete)

TESTING INSTRUCTIONS

  1. Open the Date Filter control → verify Cancel and Apply buttons are title case
  2. Open an Annotation Layer → verify the submit button shows "Confirm"
  3. Open a Datasource modal and trigger the confirm save dialog → verify "Confirm" button
  4. On a dashboard with tabs, delete a tab → verify the danger button shows "Delete"
  5. In SQL Lab, run a large query and export → verify the confirmation dialog shows "Confirm"

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
  • Introduces new feature or API
  • Removes existing feature or API

…, OK→Confirm, DELETE→Delete)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dosubot dosubot Bot added the change:frontend Requires changing the frontend label May 11, 2026
Copy link
Copy Markdown
Contributor

@bito-code-review bito-code-review Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review Agent Run #ee6107

Actionable Suggestions - 1
  • superset-frontend/src/explore/components/controls/DateFilterControl/DateFilterLabel.tsx - 1
Review Details
  • Files reviewed - 5 · Commit Range: 0b89968..0b89968
    • superset-frontend/src/SqlLab/components/ResultSet/index.tsx
    • superset-frontend/src/components/Datasource/DatasourceModal/index.tsx
    • superset-frontend/src/dashboard/components/gridComponents/Tabs/Tabs.tsx
    • superset-frontend/src/explore/components/controls/AnnotationLayerControl/AnnotationLayer.tsx
    • superset-frontend/src/explore/components/controls/DateFilterControl/DateFilterLabel.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

data-test={DateFilterTestKey.CancelButton}
>
{t('CANCEL')}
{t('Cancel')}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test expectation mismatch

Update DateFilterLabel.test.tsx to expect 'Cancel' instead of 'CANCEL' and 'Apply' instead of 'APPLY' in the popover tests.

Code Review Run #ee6107


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

@kasiazjc
Copy link
Copy Markdown
Contributor

Closing to reopen under the correct author (kasiazjc).

@kasiazjc kasiazjc closed this May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:frontend Requires changing the frontend size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants