Repository navigation
fix(bots): read held answers as "N answers not sent yet, send anyway" - #47206
Conversation
The held-answers row of a several-question ask now reads as one sentence with an underlined inline "send anyway" link instead of a separate "↑ Send now" button. Copy and style only; the link calls the same handler.
…p the copy test The inline action uses Button variant=link size=inlineText, keeping the 13px foreground text, always-on underline, no-wrap and 2px focus ring. The UI-copy test goes per the repo test rule; fixtures cover the row.
…the inline "send anyway" The design-system lint forbids restyling Button through className, and no existing variant is foreground and always underlined at the sentence's weight, nor does any inline size keep the sentence's own 13px. Same pixels as before.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ELI5
When you answer some questions in a multi-question ask, the answers wait until the last one. The note under the questions now reads as one sentence, "2 answers not sent yet, send anyway", with "send anyway" underlined so it is clearly the thing to click.
What Changed
bots.items.ask.heldCount_one/_other) with the link as a<send>tag, so translators see it whole;bots.items.ask.sendHeldis removed. No other locale had these keys yet.Buttongains alink-underlinedvariant (foreground, always underlined, sentence weight, 2px ring) and aninlineInheritsize (inlineTextat the surrounding text's size and line height), because the design system does not allow restylingButtonthroughclassName. Existing variants and sizes are unchanged.Copy and style only: the held-answer logic is untouched.
Why
The separate "Send now" button did not read as connected to the count, and it was not obvious that clicking it sends the held answers early. One sentence with an underlined link says what is pending and what you can do about it. Checked against how comparable products handle this.
Linked Issue
N/A (maintainer change)
Visual Proof
Keyboard focus on "send anyway":
All captures are component fixtures with invented data.
Testing
No test added: this is copy and styling, which the repo test rules exclude. Web typecheck, the changed-code quality gate and formatting pass.
Performance
None, because this only changes the text and styling of one row that renders while an ask has held answers.
Risk
The
Buttonadditions are new keys, so existing buttons keep their classes. The worst case is the link looking slightly off in one theme. Back out with a plain revert.Level: Low
AI Disclosure
Review