qwen-code/packages/cli/src/ui/components/messages
Taylor Mullen 9c46acc793 Refactor: Improve UI rendering and address code review comments
This commit addresses several code review comments primarily focused on improving the rendering and stability of the CLI UI.

Key changes include:
- Passing `isPending` and `availableTerminalHeight` props to `MarkdownDisplay` to enable more intelligent rendering of content, especially for pending messages and code blocks.
- Adjusting height calculations in `ToolGroupMessage` and `ToolMessage` to more accurately reflect available space.
- Refining the logic in `App.tsx` for measuring and utilizing terminal height, including renaming `footerRef` to `mainControlsRef` for clarity.
- Ensuring consistent prop drilling for `isPending` and `availableTerminalHeight` through `HistoryItemDisplay`, `GeminiMessage`, and `GeminiMessageContent`.
- In `MarkdownDisplay`, when `isPending` is true and content exceeds `availableTerminalHeight`, the code block will now be truncated with a "... generating more ..." message. If there's insufficient space even for the
message, a simpler "... code is being written ..." will be shown.
2025-05-15 22:57:28 -07:00
..
DiffRenderer.tsx feat(cli): Improve new file diff rendering with syntax highlighting 2025-04-27 23:25:08 -07:00
ErrorMessage.tsx feat: Fix flickering in iTerm + scrolling + performance issues. 2025-04-26 16:08:05 -07:00
GeminiMessage.tsx Refactor: Improve UI rendering and address code review comments 2025-05-15 22:57:28 -07:00
GeminiMessageContent.tsx Refactor: Improve UI rendering and address code review comments 2025-05-15 22:57:28 -07:00
InfoMessage.tsx Make cancel not explode. 2025-05-09 22:49:32 -07:00
ToolConfirmationMessage.tsx refactor: remove unused props clearItems, openThemeDialog, onSubmit (#357) 2025-05-15 09:12:15 -07:00
ToolGroupMessage.tsx Refactor: Improve UI rendering and address code review comments 2025-05-15 22:57:28 -07:00
ToolMessage.tsx Refactor: Improve UI rendering and address code review comments 2025-05-15 22:57:28 -07:00
UserMessage.tsx Follow up fixes from flickering PR. 2025-04-26 19:32:56 -07:00