Skip to content

refactor(ui): Phase 1 — extract shared SidebarChat modules#73

Merged
Pterjudin merged 1 commit into
mainfrom
feat/phase1-split-sidebar-chat
Jul 22, 2026
Merged

refactor(ui): Phase 1 — extract shared SidebarChat modules#73
Pterjudin merged 1 commit into
mainfrom
feat/phase1-split-sidebar-chat

Conversation

@Pterjudin

Copy link
Copy Markdown

Summary

Continues Phase 1 Sprint 1 after composer tabs (#72):

  • Extract `shared/icons.tsx`, `shared/pathUtils.ts`, `tools/ToolPrimitives.tsx`, `common/pathDisplay.ts`
  • Point Settings / markdown / inputs / thread selector at the new modules
  • Keep re-exports from `SidebarChat.tsx` for remaining consumers (`VoidChatArea`, etc.)
  • `SidebarChat.tsx`: 5055 → 4787 lines

Next (same sprint)

  • Extract `VoidChatArea` / buttons → `composer/`
  • Extract message bubbles + tool renderers → `chat/`
  • Extract landing page → `landing/`

Test plan

  • `npm run buildreact`
  • `npm run test-node -- --runGlob "**/pathUtils.test.js"` (3 tests)
  • Smoke: open chat, attach file chip, tool list items, settings warning icon

Made with Cursor

Split icons, path helpers, and tool primitives out of the 5k-line
SidebarChat.tsx so consumers no longer depend on the monolith, with
pathDisplay unit tests and re-exports for compatibility.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 22, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@Pterjudin
Pterjudin merged commit 6b0b7fa into main Jul 22, 2026
14 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant