feat: gerador de relatórios de qualidade elétrica (entrada manual ou automática)#5
Merged
Conversation
- Add toggle "Colocar Valores" / "Gerar Valores" in GenerateReport - In manual mode: fields for R(00:15), R(00:30), R(00:45), R(01:00) - Make readings editable after automatic generation - Create export-excel.ts with Excel export functions (xlsx) - Add "Exportar Excel" button alongside PDF export Made-with: Cursor
- Update Tools.tsx with metadata fields (tag, client, operator) - Add PDF and Excel export buttons for Microhm and Hi-Pot - Create exportMicrohmPDF and exportHipotPDF in export.ts - Generate formatted PDF reports with parameters and results Made-with: Cursor
- Update Cable.tsx with metadata fields and export buttons - Update Breaker.tsx with metadata fields and export buttons - Add exportCablePDF and exportBreakerPDF templates - Both pages now support PDF and Excel report generation Made-with: Cursor
- Redesign Dashboard with prominent cards for Megger, Microhm, Hi-Pot, Cabo, Disjuntor - Reorganize sidebar navigation into "Relatórios" and "Sistema" sections - Add module-type filter chips in Reports page (Megger, Microhm, Hi-Pot, Cabo, Disjuntor, Multi-Fase) - Update descriptions to reflect quality report generator focus Made-with: Cursor
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 723f75fb43
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
- Remove --frozen-lockfile to allow install when package.json has new deps - Fix unused MultiPhaseReport import in export-excel.ts Made-with: Cursor
- Switch to npm ci (package-lock.json has xlsx) - Add package-lock.json to workflow paths - Update vercel-build to npm run build Made-with: Cursor
- Layout: sidebar mais limpa com indicador ativo à esquerda, logo com ícone, seções de labels, footer com IA ativa - Dashboard: cards de stats com bordas coloridas, módulos com layout de card horizontal, seção "Mais" + Recentes em grid 1/3 + 2/3 - GenerateReport: fundo corrigido (dark), notificação escura, erros escuros, categoria em radio list, form 2-col para identificação, botões 2x2 grid, inputs de leitura visíveis com fundo e borda - Tools: header limpo sem wrapper max-w, tabs com ícone, inputs menores, resultado com cards contrastados por status - Cable: mesma linguagem visual, grid 2-col para parâmetros, resultado com bordas coloridas por status - Breaker: layout 2-col, resultado em tempo real, status com card colorido - Reports: chips de filtro em rounded-full, lista mais compacta, empty state melhorado Made-with: Cursor
- Removed unused import of Category from database.ts - Updated import statement in cloud.ts for consistency - Cleaned up import in Cable.tsx to only include necessary types
Made-with: Cursor
- Remove imports/variáveis não usadas e código morto (generator, ai-engine). npm run lint e npm run build passam; eslint com --max-warnings 0 fica limpo.
Made-with: Cursor
Made-with: Cursor
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
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.
Resumo
Implementação do plano Relatórios separados: valores manuais ou gerados automaticamente, evoluindo o EletroLab para um gerador de relatórios de qualidade da parte elétrica, com cinco módulos, exportação PDF e Excel, e opção de entrada manual ou automática.
Commits
1.
feat(megger): modo manual + ExcelGenerateReport.tsxexport-excel.tscom exportação Excel (bibliotecaxlsx)2.
feat(microhm,hipot): relatório + PDF/ExcelTools.tsxcom metadados (Tag, Cliente, Operador)html2pdf.js3.
feat(cabo,disjuntor): PDF/ExcelCable.tsxeBreaker.tsxcom metadados e exportação4.
feat(nav): navegaçãoArquivos principais
src/pages/GenerateReport.tsxsrc/utils/export-excel.tssrc/pages/Tools.tsxsrc/utils/export.tsexportMicrohmPDF,exportHipotPDF,exportCablePDF,exportBreakerPDFsrc/pages/Cable.tsxsrc/pages/Breaker.tsxsrc/pages/Dashboard.tsxsrc/components/Layout.tsxsrc/pages/Reports.tsxpackage.jsonxlsxPlano de testes