docs(ccui): CCui V2 - Guia Completo para Onboarding - #118
Open
PedroGiudice wants to merge 1 commit into
Open
Conversation
- Complete architecture documentation with diagrams - File structure and component mapping - WebSocket message flow explanation - Known issues and proposed solutions - Next steps and priorities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CCui V2 - Onboarding para LGP
Resumo Executivo
Este PR adiciona documentação completa do CCui V2 (Claude Code UI), uma interface de chat integrada ao Legal Workbench que replica a experiência do Claude Code CLI na web.
O Que Foi Implementado
Backend (FastAPI + WebSocket)
api-ccui-wsrodando na porta 8005GET /health- Health checkPOST /api/chat- Recebe mensagens, faz streaming via WSWS /ws?token=<token>- WebSocket para streaming/help,/status,/clear,/modelFrontend (React + TypeScript)
/ccui-v2CCuiApp- Container principalCCuiHeader- Header com path e modeloCCuiIconRail- 5 botões (Chats, Explorer, Search, Controls, Theme)CCuiSidebar- Sidebar dinâmicaCCuiChatArea- Área de mensagensCCuiInputTerminal- Input estilo terminal (>_)CCuiStatusBar- Status bar inferiorHooks
useChatWebSocket- Gerencia conexão WS com retry automáticouseChatMessages- Estado de mensagensArquitetura
Routing (Traefik):
/ws→ api-ccui-ws:8005 (priority 20)/api/chat→ api-ccui-ws:8005 (priority 15)/ccui-v2→ frontend-react:3000Como Testar
Issues Conhecidos (Para Próximas Iterações)
P0: Problema de Proporções
CCui dentro do shell do LW causa redundância de sidebars (~350px ocupados). Soluções propostas:
P1: Views Não Implementadas
P2: Backend Mock
generate_response()é mock. Para produção:Arquivos Chave
docker/services/ccui-ws/main.pyfrontend/src/components/ccui-v2/frontend/src/hooks/useChatWebSocket.tsfrontend/src/pages/CCuiV2Module.tsxdocs/CCUI-V2-DEVELOPER-GUIDE.mddocs/e2e-tests/CCUI-V2-E2E-REPORT.mdChecklist para LGP
docs/CCUI-V2-DEVELOPER-GUIDE.mddocker compose up -de testar em/ccui-v2docker compose logs -f api-ccui-wsScreenshots
Screenshots dos testes E2E disponíveis em
docs/e2e-tests/:🤖 Generated with Claude Code