Skip to content

Change question card submit button label to 'Submit' - #12782

Merged
AmethystLiang merged 1 commit into
mainfrom
improve-send-answer-button
Aug 5, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
improve-send-answer-button

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

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 added whitespace-nowrap to ensure proper text rendering across locales. Updated all 5 language localizations and corresponding test assertions.

Screenshots

No visual change beyond button label text.

Testing

  • Button label updated across mobile and desktop implementations
  • All 5 locale files (en, es, ja, ko, zh) updated with shorter translations
  • Unit tests (NativeChatQuestionCard.test.tsx, NativeChatInteractiveCard.test.tsx) updated
  • E2E tests (native-chat-ask-user-question-card.spec.ts) updated
  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • pnpm build

AI Review Report

TODO

Security Audit

TODO

Notes

Button styling improved to use whitespace-nowrap instead of fixed width for better text wrapping behavior across locales.

- 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
@AmethystLiang
AmethystLiang merged commit 2c2a326 into main Aug 5, 2026
6 of 44 checks passed
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Native chat final-step buttons now use Submit or shorter localized equivalents instead of answer-specific labels. The renderer question card uses content-based button sizing. Mobile intermediate steps still use Next. Unit and end-to-end tests now locate and verify the updated submit action.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers the change, screenshots, and updated tests, but the required AI Review Report and Security Audit are TODO and verification commands are unchecked. Complete the AI Review Report and Security Audit, and record results for lint, typecheck, tests, and build before merging.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the primary change to the question card submit button label.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

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.

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

📥 Commits

Reviewing files that changed from the base of the PR and between de15250 and 39b8122.

📒 Files selected for processing (10)
  • mobile/src/session/MobileNativeChatAsk.tsx
  • src/renderer/src/components/native-chat/NativeChatInteractiveCard.test.tsx
  • src/renderer/src/components/native-chat/NativeChatQuestionCard.test.tsx
  • src/renderer/src/components/native-chat/NativeChatQuestionCard.tsx
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • tests/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')

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.

📐 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.

enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant