Skip to content

fix(bots): read held answers as "N answers not sent yet, send anyway" - #47206

Merged
AmethystLiang merged 4 commits into
mainfrom
AmethystLiang/item-1260-send-anyway
Nov 23, 2026
Merged

AmethystLiang merged 4 commits into
mainfrom
AmethystLiang/item-1260-send-anyway

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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.

Files Added Deleted Net
Test 0 0 0 0
Prod 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​93 $\color{#cf222e}{\Huge{\mathbf{−}}}$​28 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​65

What Changed

  • Before: "2 answers not sent yet" followed by a separate "↑ Send now" button that only underlined on hover.
  • After: "1 answer not sent yet, send anyway" / "2 answers not sent yet, send anyway". "send anyway" is an inline button, always underlined, in the foreground color, kept on one line, with the keyboard focus ring. It calls the same handler as before. The arrow icon is gone.
  • The sentence is one i18n string per plural form (bots.items.ask.heldCount_one/_other) with the link as a <send> tag, so translators see it whole; bots.items.ask.sendHeld is removed. No other locale had these keys yet.
  • Button gains a link-underlined variant (foreground, always underlined, sentence weight, 2px ring) and an inlineInherit size (inlineText at the surrounding text's size and line height), because the design system does not allow restyling Button through className. Existing variants and sizes are unchanged.
  • Component fixtures for 1 and 2 held answers at 340px and 600px, plus keyboard focus.

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

Before After
2 held, light, 340px before-two-light.png after-two-light.png
1 held, dark, 340px before-one-dark.png after-one-dark.png

Keyboard focus on "send anyway":

after-focus-light.png

All captures are component fixtures with invented data.

Testing

  • I manually tested these changes locally (component fixtures at 340px and 600px, light and dark, keyboard focus; macOS)
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

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 Button additions 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

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.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The held-answer notice now displays the unsent-answer count and a “send anyway” action in one translated sentence. The action uses an underlined inline button and calls steps.sendHeld. Fixtures cover one or two held answers at narrow and wide widths, plus keyboard focus. Related fixture and documentation text now uses “send anyway.”

Merge Risk: Minimal · up to 74007

The held-answer notice now reads "N answers not sent yet, send anyway" with an inline action that calls the existing send handler. No concrete defect was found, and the English catalogs include the action in both plural forms. The change is low risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the held-answer note in bot multi-question asks now reads as one sentence, "N answers not sent yet, send anyway". The changeset matches this: the sentence replaces the…
Description check Passed The description follows the template well. It has ELI5, What Changed, Why, Visual Proof, Testing, Performance, and Risk sections, with a clear before/after account and a Performance line that complete…
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.
Full details: Title check

Explanation

The title names the main change: the held-answer note in bot multi-question asks now reads as one sentence, "N answers not sent yet, send anyway". The changeset matches this: the sentence replaces the count and separate "Send now" button with an inline "send anyway" link, backed by new i18n strings and a Button link-underlined variant. The title's "fix(bots)" prefix is a conventional-commit scope and type, and it is accurate enough for a teammate scanning history.

Full details: Description check

Explanation

The description follows the template well. It has ELI5, What Changed, Why, Visual Proof, Testing, Performance, and Risk sections, with a clear before/after account and a Performance line that completes the template sentence. The Linked Issue section is marked N/A (maintainer change), which the template allows for maintainers. Gaps: the Testing checklist leaves the anti-pattern item unchecked, which the author explains by saying no test was added. The Risk section does not give a Level-specific rationale beyond 'Low' and a plain revert, which is acceptable. The AI Disclosure and Review sections are empty headings. The Agent skill upstream boundary and Checklist sections are absent, and the Notes section is not addressed. These are non-critical omissions. The description is mostly complete.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7ca06b53-1e46-4a9c-ac80-3b99f80aa85e
Commits

Reviewing files that changed from the base of the PR and between c29a55c and 7400745.

Files selected for processing: 7

  • src/renderer/src/components/bots/items/BotItemQuestionStep.fixture.tsx
  • src/renderer/src/components/bots/items/BotItemQuestionStep.tsx
  • src/renderer/src/components/bots/items/BotItemViewSeveralQuestions.fixture.tsx
  • src/renderer/src/components/bots/items/use-bot-item-question-steps.ts
  • src/renderer/src/components/ui/button.tsx
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

@AmethystLiang
AmethystLiang merged commit a6bbb07 into main Nov 23, 2026
32 checks passed
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