Skip to content

fix(native-chat): drop the question card's step bar; the count and arrows show progress - #47959

Merged
AmethystLiang merged 2 commits into
mainfrom
AmethystLiang/remove-question-card-step
Nov 24, 2026
Merged

AmethystLiang merged 2 commits into
mainfrom
AmethystLiang/remove-question-card-step

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

When an agent asks several questions at once, the question card showed a row of colored bars under its title. It was louder than it needed to be. The card already says "1 of 3" and has arrows, so the bars are gone.

Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​19 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​7
Prod 14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​79 $\color{#cf222e}{\Huge{\mathbf{−}}}$​141 $\color{#cf222e}{\Huge{\mathbf{−}}}$​62

What Changed

  • Removes the segmented step bar under the header of multi-question cards. The header still shows the title, "· N of M", the answered check, previous/next arrows, collapse and cancel. No color changes.
  • With the bar gone, the question sits the same distance below the header on single- and multi-question cards (pt-3 for both).
  • Removes the code only the bar used (its tooltips and the stepAnswered string in every locale). Tests and fixtures that jumped by clicking a bar segment now use the arrows.

Why

People asked for a calmer progress indicator. The count and arrows already show where you are and let you move, so a second indicator adds noise without adding information. Checked against comparable products.

Linked Issue

No separate issue; internal design request.

Visual Proof

Three questions, before and after:

three questions, before and after

Narrowest pane (320px), and a short window where the card still shows the question and option 1:

320px short window

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns
  • Drove the card in Chromium from its component fixture: arrows, ←/→ from the card and from a focused arrow, Enter on an arrow, digit pick with auto-advance, answered check, Back, Skip, Skip and submit, typed answer + Enter, collapse, × and Escape all work.
  • New assertion: a multi-question card has only the two arrow step controls (fails on main, which also renders one button per step).
  • pnpm typecheck:web and pnpm lint pass locally. The machine was too loaded to finish Vitest after the change, so CI is the unit-test gate.

Performance

None, because this removes one row of elements and its tooltips from the card; nothing new runs.

Risk

Level: Low

Renderer-only; no saved data, settings or IPC. The riskiest part is that jumping straight to a non-adjacent question now takes arrow presses instead of one click. To back it out, revert this PR.

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

…rows show progress

The colored segment row under the header of a multi-question card is gone.
The header keeps its title, the "N of M" count, the answered check and the
previous/next arrows. The question now sits at the same distance below the
header on single- and multi-question cards.

Tests and fixtures that jumped by a step segment now use the arrows; the
step tooltip's locale key is removed.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The question card header no longer renders a separate multi-step progress bar or clickable step segments. Question-step records no longer include positional IDs. The title uses consistent sizing across single- and multi-question prompts. Tests and focus fixtures navigate with the Previous question and Next question controls. Locale files remove the stepAnswered translation.

Merge Risk: Minimal · up to 13a5a

This renderer-only change removes the progress bar from multi-question cards and leaves the count and arrows for navigation. The change is small and easy to revert. The only tradeoff is that jumping to a non-adjacent question now takes several arrow presses. Merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: removing the step bar from the native-chat question card. It also names the replacement, the count and arrows. The title uses the fix(native-chat) prefix and is one se…
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.
Description check Passed The description follows the template well. It has a clear ELI5, a What Changed section, a Why section, Testing, Performance, and Risk with a level. The change is well explained and the author gives a …
Full details: Title check

Explanation

The title names the main change: removing the step bar from the native-chat question card. It also names the replacement, the count and arrows. The title uses the fix(native-chat) prefix and is one sentence. The title is specific, and a teammate scanning history would understand the primary change. The title is 87 characters, which is slightly long but acceptable.

Full details: Description check

Explanation

The description follows the template well. It has a clear ELI5, a What Changed section, a Why section, Testing, Performance, and Risk with a level. The change is well explained and the author gives a concrete reason for the removal. Visual proof is provided with before and after images. Two gaps remain. The Linked Issue section says there is no issue, and the template asks for one, so this is a deviation. The Why section says 'Checked against comparable products' without naming them. The AI Disclosure section is blank, and the Review section is empty. The Performance section is filled in. The Agent skill upstream boundary box is checked. The Testing section says Vitest did not finish, so the unit tests were not verified locally. Most required content is present, so the check passes.

  • 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: 3dd45d21-e7b6-4a9c-b045-d66dfdb4e6a0
Commits

Reviewing files that changed from the base of the PR and between 0b7fe2f and 13a5a5e.

Files selected for processing: 16

  • src/renderer/src/components/native-chat/prompts/NativeChatQuestionCard.test.tsx
  • src/renderer/src/components/native-chat/prompts/NativeChatQuestionCard.tsx
  • src/renderer/src/components/native-chat/prompts/NativeChatQuestionCardFocus.fixture.tsx
  • src/renderer/src/components/native-chat/prompts/NativeChatQuestionCardHeader.tsx
  • src/renderer/src/components/native-chat/prompts/NativeChatStructuredQuestionCard.test.tsx
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
Files with no reviewable changes: 11

  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json

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

@AmethystLiang
AmethystLiang merged commit 925bcc7 into main Nov 24, 2026
55 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