refactor(docs): phase 2 — extract slash-menu-ui, suggesting-ui, comments-sidebar, ai-chat-wiring, collaboration-ui, sidebar-wiring from main.ts
Reduces main.ts from 1,706 to 745 lines by extracting six focused modules:
- slash-menu-ui.ts: slash command popup rendering, positioning, selection
- suggesting-ui.ts: suggesting mode toggle, popover, accept/reject, dispatch wrapper
- comments-sidebar-ui.ts: threaded comments sidebar, Yjs sync, reply/resolve
- ai-chat-wiring.ts: AI chat panel creation, streaming message send
- collaboration-ui.ts: collab avatars, follow mode, typewriter/focus mode
- sidebar-wiring.ts: outline sidebar, table toolbar, link preview, minimap
All modules use dependency injection (typed *Deps interfaces, exported
functions) consistent with the phase 1 extraction pattern.