qwen-code/packages/cli/src/ui/components/messages
Jacob Richman b4c16d1f56
Code review comment fixes and some refactors. (#525)
No intentional different behavior aside for tweaks suggested from the code review of #506 Refactor: Extract console message logic to custom hook

This commit refactors the console message handling from App.tsx into a new custom hook useConsoleMessages.

This change improves the testability of the console message logic and declutters the main App component.

Created useConsoleMessages.ts to encapsulate console message state and update logic.
Updated App.tsx to utilize the new useConsoleMessages hook.
Added unit tests for useConsoleMessages.ts to ensure its functionality.
I deleted and started over on LoadingIndicator.test.tsx as I spent way too much time trying to fix it before just regenerating the tests as the code was easier to write tests for from scratch and the existing tests were not that good (I added them in the previous pull request).
2025-05-24 00:44:17 -07:00
..
DiffRenderer.test.tsx feat: Improve diff rendering with gap indicators 2025-05-20 23:32:06 -07:00
DiffRenderer.tsx feat: Improve diff rendering with gap indicators 2025-05-20 23:32:06 -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 fix: forward entire tool call confirmation object through useToolScheduler (#481) 2025-05-22 06:00:36 +00:00
ToolGroupMessage.tsx Code review comment fixes and some refactors. (#525) 2025-05-24 00:44:17 -07:00
ToolMessage.test.tsx Code review comment fixes and some refactors. (#525) 2025-05-24 00:44:17 -07:00
ToolMessage.tsx Code review comment fixes and some refactors. (#525) 2025-05-24 00:44:17 -07:00
UserMessage.tsx Follow up fixes from flickering PR. 2025-04-26 19:32:56 -07:00
UserShellMessage.tsx feat(cli): Introduce toggleable shell mode with enhanced UI 2025-05-18 01:25:50 -07:00