Repository navigation
Change question card submit button label to 'Submit' - #12782
Conversation
- Replace 'Send answer' with 'Submit' for clarity and consistency - Update all locale translations (en, es, ja, ko, zh) - Remove fixed button width and add whitespace-nowrap for flexible sizing - Update component and test references
📝 WalkthroughWalkthroughNative chat final-step buttons now use 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: fbedc0ab-e83b-4fb9-9465-f092c7b4565d
📒 Files selected for processing (10)
mobile/src/session/MobileNativeChatAsk.tsxsrc/renderer/src/components/native-chat/NativeChatInteractiveCard.test.tsxsrc/renderer/src/components/native-chat/NativeChatQuestionCard.test.tsxsrc/renderer/src/components/native-chat/NativeChatQuestionCard.tsxsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsontests/e2e/native-chat-ask-user-question-card.spec.ts
| : currentAnswered | ||
| ? isLast | ||
| ? translate('components.native-chat.question.send', 'Send answer') | ||
| ? translate('components.native-chat.question.send', 'Submit') |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Update the stale button-label comment.
The comment at Line [86] still calls this the “Send/Next” button. The action now uses “Submit/Next”. Update the comment to match the current labels.
Proposed fix
- // trailing Send/Next button.
+ // trailing Submit/Next button.- Replace 'Send answer' with 'Submit' for clarity and consistency - Update all locale translations (en, es, ja, ko, zh) - Remove fixed button width and add whitespace-nowrap for flexible sizing - Update component and test references
Problem
The question card submit button uses 'Send answer' label which is verbose and inconsistent with standard UI conventions for form submission.
Solution
Renamed the submit button from 'Send answer' to 'Submit' for clarity and consistency. Removed the fixed width constraint (
w-24) and addedwhitespace-nowrapto ensure proper text rendering across locales. Updated all 5 language localizations and corresponding test assertions.Screenshots
No visual change beyond button label text.
Testing
NativeChatQuestionCard.test.tsx,NativeChatInteractiveCard.test.tsx) updatednative-chat-ask-user-question-card.spec.ts) updatedpnpm lintpnpm typecheckpnpm testpnpm buildAI Review Report
TODO
Security Audit
TODO
Notes
Button styling improved to use
whitespace-nowrapinstead of fixed width for better text wrapping behavior across locales.