Skip to content

Revert "Polish question carousel (#298377)" - #299096

Merged
David Dossett (daviddossett) merged 1 commit into
mainfrom
daviddossett/question-carousel-polish-2
Mar 4, 2026
Merged

David Dossett (daviddossett) merged 1 commit into
mainfrom
daviddossett/question-carousel-polish-2

Conversation

@daviddossett

@daviddossett David Dossett (daviddossett) commented Mar 4, 2026 •

Copy link
Copy Markdown
Collaborator

Reverts the UI changes from #298377 (tab bar, review tab, Cmd+Enter shortcut, etc.) while retaining Megan's scrollable changes from #298786.

Copilot AI 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.

Pull request overview

This PR polishes the chat question carousel UI by replacing the multi-question tab bar/review flow with a simpler footer-based previous/next navigation + step indicator, and moving the question prompt into the header to simplify layout and interaction.

Changes:

  • Replaces the multi-question tab bar with footer navigation arrows and a “{n} of {m}” step indicator; updates focus and aria-label/hover text to include keybinding info.
  • Simplifies the question layout by rendering the full prompt in the header and removing the separate message area and internal scrollable wrapper.
  • Updates styling for tighter option rows and improved freeform input visuals (padding, border, focus outline, alignment).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css Updates carousel styling for the new header/footer layout, navigation buttons, and freeform input alignment.
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.ts Removes tab/review UI, adds footer nav + keybinding-aware labels/hover, updates submission flow and summary rendering.
Comments suppressed due to low confidence (2)

src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css:16

  • Similarly, the input-specific styling selector dropped the .interactive-input-and-edit-session > .chat-question-carousel-widget-container variant. In compact mode this will skip border/background/radius styling for the carousel. Consider restoring the compact-mode selector (or refactoring to a selector that matches both DOM structures).
.interactive-session .interactive-input-part > .chat-question-carousel-widget-container .chat-question-carousel-container {
	margin: 0;
	border: 1px solid var(--vscode-input-border, transparent);
	background-color: var(--vscode-chat-list-background);
	border-radius: var(--vscode-cornerRadius-large);

src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatQuestionCarouselPart.ts:260

  • On the last question, handleNextOrSubmit() calls onSubmit(this._answers) directly, bypassing the filtering behavior in submit() and potentially changing what gets submitted depending on whether the user submits via Enter vs Cmd/Ctrl+Enter. Consider routing the last-question path through a single submission codepath to keep semantics consistent.
		} else {
			// Last or single question: submit directly
			this._options.onSubmit(this._answers);
			this.hideAndShowSummary();
		}

@daviddossett
David Dossett (daviddossett) force-pushed the daviddossett/question-carousel-polish-2 branch 4 times, most recently from 78473d3 to 6495844 Compare March 4, 2026 01:06
@daviddossett
David Dossett (daviddossett) force-pushed the daviddossett/question-carousel-polish-2 branch from 6495844 to ed212ff Compare March 4, 2026 17:33
@daviddossett David Dossett (daviddossett) changed the title Polish question carousel: replace tabs with footer nav, simplify layout Revert "Polish question carousel (#298377)" Mar 4, 2026
@daviddossett
David Dossett (daviddossett) marked this pull request as ready for review March 4, 2026 17:41
@vs-code-engineering vs-code-engineering Bot added this to the 1.111.0 milestone Mar 4, 2026
@daviddossett
David Dossett (daviddossett) merged commit 450351e into main Mar 4, 2026
19 checks passed
@daviddossett
David Dossett (daviddossett) deleted the daviddossett/question-carousel-polish-2 branch March 4, 2026 17:53
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Apr 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants