Remove legacy vanilla HTML UIs, keep only React SPA - #15
Open
breno23augusto wants to merge 1 commit into
Open
Conversation
Author
|
@igorhvr veja o que acha, achei que deu uma visibilidade melhor no kanban. |
breno23augusto
force-pushed
the
remove-legacy-html
branch
3 times, most recently
from
July 9, 2026 01:56
5a617ad to
3d9710c
Compare
- remove legacy vanilla HTML UIs, keep only React SPA - redesign dashboard UI with forest-canopy design system - add Markdown rendering support and event filtering - update docs and workflow for new React SPA structure - fix daemon default port, null guards, date formatting - add kanban features: pause/resume/cancel, live activity feed, card filter - replace serif headings with sans-serif, add chat-style activity panel - add dashboard API tests and DashboardCharts component - refactor code structure for readability and maintainability
breno23augusto
force-pushed
the
remove-legacy-html
branch
from
July 9, 2026 02:07
3d9710c to
72053d8
Compare
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.
O que mudou
Substituição do dashboard HTML monolítico inline (
src/server/index.htmlesrc/server/kanban.html) por uma SPA React com Vite emfrontend/, servida pelo mesmodashboard.ts.🏗️ Novo frontend (Vite + React + MUI)
frontend/— SPA React com TypeScript, Vite, MUI (Material UI)frontend/src/App.tsx— rotas:/(Dashboard) e/runs/:id/kanban(Kanban)frontend/src/pages/Dashboard.tsx— tabela de runs, gráficos, status MCPfrontend/src/pages/Kanban.tsx— swim-lane view com cards expansíveisfrontend/src/components/— Layout, DashboardCharts, MarkdownRendererfrontend/src/api/client.ts— cliente HTTP para API do dashboardfrontend/vite.config.ts— proxy/api→http://localhost:3334frontend/dist/— build output servido pelodashboard.ts🎨 Design System — Forest Canopy
#2d4a2d,#3d5e3d) e tons quentes de terra🔥 Arquivos removidos
src/server/index.html(1178 linhas) — dashboard inline HTML+CSS+JSsrc/server/kanban.html(1335 linhas) — kanban inline HTML+CSS+JS🔧 Alterações no servidor (
src/server/dashboard.ts)GET /agora servefrontend/dist/index.html(React SPA)GET /runs/:id/kanbanserve a mesma SPA (client-side routing via React Router)GET /assets/*para servir assets estáticos do frontend (JS, CSS, imagens, fontes)GET /api/runs/:id/events— expõe eventos de uma run específica3333para3334(consistente com a documentação)📦 Build (
package.json)npm run buildagora compila o frontend (cd frontend && npm install && npx vite build)cpdos HTMLs legados paradist/server/🧪 Testes
src/server/kanban-html.test.ts— reescrito para validar SPA React (root div, script tag, fontes)tests/dashboard-kanban.test.ts— reescrito: valida API + SPA em vez de HTML inlinetests/dashboard-run-token-spend.test.ts— removeu teste que liaindex.htmllegadotests/dashboard-status-mcp.test.ts— valida SPA em vez de HTML inlinetests/system-token-spend-counter.test.ts— novo: teste e2e do contador de tokens do sistematests/serial-files.txt— adicionadosystem-token-spend-counter.test.tsà lane serialtests/www-content-sync.test.ts— assertions mais flexíveis para o www redesigntests/www-index.test.ts— adaptado para nova estrutura de seções e navegação do wwwtests/www-styles.test.ts— adaptado para novas classes CSS (.why-card,.pipeline-flow, etc.)tests/agentsmd-skill-update-warning.test.ts— atualizado para referenciarfrontend/tests/audit-agents-md.test.ts— atualizado para remover referência aindex.html🌐 Site www (
www/)www/styles.css— refatorado: novas classes (.why-card,.pipeline-flow,.terminal-*,.why-grid), breakpoints ajustados, classes legadas removidas (.feature-icon,.arch-step,.why-list,.yaml-code)www/scripts.js— scroll spy atualizado para novos IDs de seção📝 Workflow de teste de frontend
workflows/frontend-test/— agent instructions e workflow YAML atualizados para validar a SPA React em vez dos HTMLs legados📚 Documentação
AGENTS.md— estrutura do projeto atualizada (removeindex.html/kanban.html, adicionafrontend/)skills/tamandua-agents/SKILL.md— artefatos para revisar:frontend/no lugar desrc/server/index.htmlaudit-agents-md.md— tabela de artefatos:frontend/no lugar desrc/server/index.html🐛 Fix extra
src/server/daemon.ts— porta padrão do dashboard corrigida de3333para3334src/server/kanban-data.ts— formatação de datas legível (DD/MM HH:mm), indicador "retries exhausted" nos cardsPor que
O HTML inline em
src/server/era difícil de manter, sem type safety, sem componentização, e impedia evoluções mais complexas da UI (gráficos interativos, lazy loading, estado global). A migração para React + Vite + MUI traz:Breaking changes
frontend/dist/compilado3334(era3333)GET /assets/*é uma nova rota reservada para assets do frontendComo testar
Artefatos revisados
docs/creating-workflows.md— sem referências aos HTMLs removidosskills/tamandua-agents/SKILL.md— atualizadosrc/server/mcp-server.ts— sem referênciassrc/cli/cli.ts— sem referênciasfrontend/— novo (SPA React)README.md— sem referências aos HTMLs removidosAGENTS.md— atualizadoaudit-agents-md.md— atualizado