Skip to content

[FEATURE] Add collapse/expand functionality to question tool dialog #19400

Description

@mekrina

Feature Request

Add a collapse/expand button to the question tool dialog, similar to the existing functionality in the todo dock.

Problem

The question tool dialog takes up significant screen space and cannot be temporarily minimized. Users need to:

  • Review conversation history or code context before answering
  • Temporarily hide the dialog without dismissing it
  • Preserve their selected answers while collapsed

Proposed Solution

Implement the same collapse pattern used in session-todo-dock.tsx:

  • Clickable header with chevron icon button
  • When collapsed: show progress ("Question 1 of 3") + question preview
  • When expanded: show full question with all options
  • Smooth animation (0.3s transition)
  • Preserve user's selected answers

Reference Implementation

packages/app/src/pages/session/composer/session-todo-dock.tsx (lines 42-219)

This component already implements:

  • IconButton with rotating chevron icon
  • Spring-based collapse animation
  • State management for collapsed state
  • Preview text display when collapsed

Benefits

  • Better screen space management
  • Consistent UI pattern across dock components
  • Improved UX for complex questions

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions