Plataforma SaaS Multi-Entidade para Gestao Publica Municipal
| Fase | Nome | Commit | Destaques | Status |
|---|---|---|---|---|
| F0 | Arquitetura & Validacao | 87e6e22 | 29 itens validados, 14 PRDs, 5 validacoes cruzadas | DONE |
| F1 | Componentes P0 | 87e6e22 | GenericCRUD, BrazilianFields, ReportViewer, FormBuilder | DONE |
| F2 | Setup Theme + Deploy | 56b6145 | SaasAble seed, 29 rotas, menu sidebar 7 dominios | DONE |
| F3 | Database Schema | 56b6145 | 7 schemas, 363 tabelas, RLS + audit em todas | DONE |
| F3-real | Supabase Real Connection | 4fee33a | mock-store eliminado, 100% PostgreSQL real | DONE |
| F4 | Auth + Layout + Dashboards | ef57477 | Login Supabase, RBAC, org-context, 33 dashboards | DONE |
| F5+F6+F7 | 155 Entity Configs (29 modulos) | b7d5d4c | Todos os 7 dominios com TR compliance | DONE |
| F8 | 18 Mock Integrations | 44e0d89 | eSocial, SICONFI, SIM-AM, PNCP, NFS-e, etc. | DONE |
| F9 | 295 Relatorios | 6a61c81 | 120 LEGAL + 175 ROTINA, 5 templates | DONE |
| F10 | Seed Data + QA | 86ec56c | 4K+ records, 1.336 QA checks, 10 E2E flows | DONE |
| F11 | Simulacao PoC | b41f11e | 29-module checklist, GO/NO-GO verdict | DONE |
| FIX | Cleanup Wave (esta sessao) | pendente | i18n removal, 200+ config fixes, LGPD migration | FIX WAVE |
| Categoria | Problema | Qtd | Fix | Status |
|---|---|---|---|---|
| i18n | react-intl + 5 locale JSONs + language switcher | 19 files | Removido completamente, 100% pt-BR | DONE |
| Traducao | Strings em ingles (Settings, Logout, Delete, etc.) | 30+ strings | Traduzido para portugues | DONE |
| Acentos | Portugues sem acentos (Confirmacao, Historico) | 16+ strings | Acentos corrigidos | DONE |
| Layout | Container maxWidth="lg" cortava tabelas | 1 file | Full-width com padding | DONE |
| Flickering | Skeleton piscava a cada refetch | 2 files | isLoading so no primeiro load | DONE |
| softDelete | Configs com softDelete:true, tabelas sem deleted_at | 150 configs | softDelete: false em todos | DONE |
| Sort fields | defaultSort referenciando colunas inexistentes | 95 configs | Todos mudados para created_at | DONE |
| Schema 406 | infra.* → public.*, bot.* → cid.* | 7 configs | Schema + plural→singular corrigido | DONE |
| Route encoding | /fin/cobrança URL-encoded quebrando rota | 1 file | Removido acento da URL | DONE |
| Table names | adm.veículo com acento → 404 | 2 configs | Acento removido do supabaseTable | DONE |
| orgScoped | permissao com orgScoped:true sem org_id | 1 config | orgScoped: false | DONE |
| LGPD | 3 tabelas LGPD nao existiam | 1 migration | 00021_schema_lgpd.sql criada | DONE |
| Crash | tce-siconfi.ts circular dependency | 6 files | params.ts extraido | DONE |
| Schema | Tabelas | Migration | Seeds | RLS | Audit |
|---|---|---|---|---|---|
| fin (Financeiro) | 79 | 00010 | 8 inserts | ✅ | ✅ |
| pes (Pessoas) | 83 | 00012 + 00019 | 5 inserts | ✅ | ✅ |
| set (Setoriais) | 78 | 00014 | 0 inserts | ✅ | ✅ |
| adm (Administrativo) | 67 | 00013 | 3 inserts | ✅ | ✅ |
| trb (Tributario) | 66 | 00011 | 6 inserts | ✅ | ✅ |
| fis (Fiscal) | 39 | 00016 | 0 inserts | ✅ | ✅ |
| cid (Cidadao) | 25 | 00015 | 0 inserts | ✅ | ✅ |
| lgpd (LGPD) | 3 | 00021 | 3 inserts | ✅ | ✅ |
| public (Core/Auth) | 5+ | 00000-00004 | core | ✅ | ✅ |
| TOTAL | 363+ | 17 migrations |
| # | Acao | Prioridade | Esforco |
|---|---|---|---|
| 1 | Commit da Cleanup Wave (~348 files) | IMEDIATO | 5min |
| 2 | Seed data para set, cid, fis schemas | ALTA | ~4h |
| 3 | Alinhar DB migrations com entity configs (colunas ricas) | ALTA | ~8h |
| 4 | Reverter sort fields de created_at para colunas de dominio | MEDIA | ~2h |
| 5 | E2E tests para fluxo completo (login → CRUD → export) | MEDIA | ~4h |
| 6 | Deploy Vercel + Supabase Cloud (sa-east-1) | MEDIA | ~2h |
| 7 | Simulacao PoC D-7 → D-1 (dress rehearsal) | QUANDO PRONTO | 7d |
| Commit | Mensagem | Wave |
|---|---|---|
87e6e22 | feat: initial project setup — Edital 11/2026 Agudo/RS | F0+F1 |
657a047 | feat: setup theme, database scripts, 12 epics | F2 |
56b6145 | feat: routes, menu, 7 domain schemas — F2+F3 wave | F2+F3 |
3247217 | docs: roadmap v2 — handoff session | docs |
ef57477 | feat: F4 wave — auth, org-context, RBAC, layout, 33 dashboards | F4 |
44e0d89 | feat: F8 wave — 18 mock integration services | F8 |
6a61c81 | feat: F9 wave — reports engine (295 definitions) | F9 |
86ec56c | feat: F10 wave — seed data (4K+) + QA validation | F10 |
b41f11e | feat: F11 wave — PoC simulation system | F11 |
b7d5d4c | feat: F5+F6+F7 wave — enrich 155 entity configs | F5+F6+F7 |
1e35db1 | feat: F12 wave — enrich seed data (8K+) | F12 |
4fee33a | feat: F3-real — connect frontend to Supabase local | F3-real |
pendente | fix: cleanup wave — i18n removal, 200+ config fixes, LGPD migration | FIX |
87e6e22
657a047
56b6145
ef57477
b7d5d4c
4fee33a