fix(ux): use title case for button labels#40022
Conversation
…, OK→Confirm, DELETE→Delete) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Code Review Agent Run #ee6107
Actionable Suggestions - 1
-
superset-frontend/src/explore/components/controls/DateFilterControl/DateFilterLabel.tsx - 1
- Test expectation mismatch · Line 331-331
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
| data-test={DateFilterTestKey.CancelButton} | ||
| > | ||
| {t('CANCEL')} | ||
| {t('Cancel')} |
There was a problem hiding this comment.
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
|
Closing to reopen under the correct author (kasiazjc). |
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:CANCEL→Cancel,APPLY→ApplyAnnotationLayer.tsx:OK→ConfirmDatasourceModal/index.tsx:OK→ConfirmTabs.tsx:DELETE→DeleteResultSet/index.tsx:OK→ConfirmBEFORE/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
ADDITIONAL INFORMATION