From ee86e4a3d3438f4c563ae5832f705f3cee5b32bd Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 4 Apr 2026 12:11:23 +0000 Subject: [PATCH] huskies: create 473_refactor_split_chat_tsx_into_smaller_components --- ..._split_chat_tsx_into_smaller_components.md | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .huskies/work/1_backlog/473_refactor_split_chat_tsx_into_smaller_components.md diff --git a/.huskies/work/1_backlog/473_refactor_split_chat_tsx_into_smaller_components.md b/.huskies/work/1_backlog/473_refactor_split_chat_tsx_into_smaller_components.md new file mode 100644 index 00000000..e5651bd5 --- /dev/null +++ b/.huskies/work/1_backlog/473_refactor_split_chat_tsx_into_smaller_components.md @@ -0,0 +1,26 @@ +--- +name: "Split Chat.tsx into smaller components" +--- + +# Refactor 473: Split Chat.tsx into smaller components + +## Current State + +- TBD + +## Desired State + +Chat.tsx is 1513 lines and growing. ChatInput and ChatHeader are already split out. Break up the remaining monolith into focused components — likely candidates: message list/rendering, websocket connection management, message bubbles, typing indicators, and any other distinct UI concerns. + +## Acceptance Criteria + +- [ ] Chat.tsx reduced to under 500 lines by extracting components +- [ ] Message list/rendering extracted into its own component +- [ ] Message bubble rendering extracted into its own component +- [ ] WebSocket connection logic extracted (hook or provider) +- [ ] All existing Chat.test.tsx tests still pass +- [ ] No visual or behavioural regressions in the chat UI + +## Out of Scope + +- TBD