Commit Graph

168 Commits

Author SHA1 Message Date
Sidney 470eb3163e chore: update Traefik certresolver to leresolver in docker-compose.yml
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 2m0s Details
2026-05-27 11:13:22 -03:00
Sidney 37d89d690c docs: update memory log and project rules with recent developments
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 2m31s Details
2026-05-27 09:05:47 -03:00
Sidney 4a922f43ec feat: enforce single attendance justification, automatic contract registration in SQL, default contract checks and class frequency PDF report
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 2m17s Details
2026-05-26 21:23:58 -03:00
Sidney 3d683ac68a Configura deploy automático via Gitea Actions
Build and Deploy (Gitea) / build-and-deploy (push) Successful in 2m18s Details
2026-05-26 20:16:49 -03:00
Sidney b76e2eeaa9 ci: ajusta sintaxe do workflow_dispatch com chaves vazias 2026-05-26 09:04:55 -03:00
Sidney 3cd39d5a8e ci: adiciona trigger manual workflow_dispatch no deploy.yml 2026-05-26 08:55:04 -03:00
Sidney 2dbe5d3c12 trigger deploy: refazendo push dos contratos e correcao de abas 2026-05-26 08:49:10 -03:00
Sidney 1dc753c9c9 feat: Contratos 100% SQL-First + cache-buster em todos os módulos + persistência de aba ativa no F5 2026-05-26 08:42:13 -03:00
Sidney 15a7a9fef2 fix: Corrige reagendamento de aula nao sincronizando com backend SQL 2026-05-25 20:16:03 -03:00
Sidney d1743a7188 feat: adiciona botao de exclusao permanente na lixeira de provas 2026-05-25 19:26:19 -03:00
Sidney b6c61ff070 fix: gera IDs unicos para questoes ao duplicar prova + tabela de migracao SQL 2026-05-25 19:23:08 -03:00
Sidney 4903bad94d feat: migra Provas/Atividades (Exams.tsx) para 100% SQL-First com questoes e reverse sync 2026-05-25 19:14:59 -03:00
Sidney a0810b691a fix: torna handleTransferStudent async para corrigir build 2026-05-25 19:05:01 -03:00
Sidney 7e05ef11dd feat: migra cadastro de alunos (Students.tsx) para 100% SQL-First com reverse sync 2026-05-25 18:59:39 -03:00
Sidney 094b180f77 fix: preserve face_descriptor during JSONB-relational synchronization 2026-05-25 18:21:44 -03:00
Sidney 6680202b11 feat(sync): add temporary endpoint to fix missing student data migration 2026-05-25 17:58:25 -03:00
Sidney b446283cc0 fix(sync): apply camelCase and snake_case fallbacks for student properties during SQL-first sync 2026-05-25 17:50:50 -03:00
Sidney 27364ca495 fix(portal): handle iso strings correctly in formatDate for birthDate rendering 2026-05-25 14:27:58 -03:00
Sidney bb4fbe6ebb fix(portal): complete camelCase mapping for student profile data 2026-05-25 11:21:54 -03:00
Sidney 3e5c9afda2 fix(timezone): enforce BRT explicitly on capture to prevent server UTC offset and restore TO_CHAR constraint 2026-05-25 11:10:49 -03:00
Sidney 6cdf609f62 fix(students): apply biometrics mapping in getAlunos, persist face_descriptor in postgres and document status in GEMINI.md 2026-05-25 09:35:07 -03:00
Sidney c5d2979b60 fix(frequencias): apply TO_CHAR for sql date formatting to prevent timezone shifts matching bugs 2026-05-25 09:03:54 -03:00
Sidney 1932807479 fix(attendance): remove orphaned auto-absences from postgres and auto-clean via processAutoAbsences 2026-05-25 08:26:28 -03:00
Sidney 3fe0d964a5 fix(attendance): complete SQL-First migration for frequencias and fix portal justification logic 2026-05-25 08:12:08 -03:00
Sidney d4b73df9b4 feat: edicao individual e propagacao de modelos de contratos e sync sql 2026-05-24 20:35:31 -03:00
Sidney e33a5aac3d fix: refatoracao para visualizacao de notas, provas na lixeira e listagem de funcionarios 2026-05-24 20:09:35 -03:00
Sidney bc440d7dbe fix: resolve bugs da tela de alunos, contratos vazios e salva aulas geradas no bd 2026-05-24 19:39:10 -03:00
Sidney 65119df2f2 feat: Migração SQL-First para Aulas e Contratos 2026-05-24 19:20:17 -03:00
Sidney b55633a191 refactor: Blindagem do Frontend contra JSON legado (Migrando Turmas, Cursos e Disciplinas para PostgreSQL nas abas restantes) 2026-05-24 18:26:24 -03:00
Sidney 2e0a041a26 feat: Migracao SQL-First (Fase 1 e Fase 3) - Funcionarios, Cursos, Turmas e Disciplinas 2026-05-24 17:57:37 -03:00
Sidney 9fe6882174 fix(attendance): resolve biometric presence showing as absence, fix timezone offset in processAutoAbsences, deduplicate auto-generated absences, prioritize presence in frontend matching, and sync aula_id 2026-05-23 16:20:39 -03:00
Sidney 2f2dec63d5 feat(schedule): automatically remove auto-generated absences when rescheduling past lessons 2026-05-21 09:41:38 -03:00
Sidney bd972deda3 fix(finance): fix deletion notification order race condition by delegating local deletion to webhook (Rule 34) 2026-05-21 09:22:43 -03:00
Sidney d9756fe4d4 docs: update MEMORY.md with today's financial migration accomplishments 2026-05-21 09:10:07 -03:00
Sidney 024ef1f088 feat(finance): configure global numeric parser and await SQL update in handleEditSave 2026-05-21 09:07:37 -03:00
Sidney 27fcbada35 feat(finance): migrate manually created payments to sql-first architecture with local_id support 2026-05-21 08:32:22 -03:00
Sidney a9f8559462 fix(sync): correct financial sync logic to prevent inflating installment values with discount 2026-05-20 10:06:36 -03:00
Sidney 054bd5ef7b feat(dashboard): correct revenue calculations to use actual received value 2026-05-20 09:42:27 -03:00
Sidney ed52d6a2fa feat: implement robust valor_pago architecture and financial sync hardening for Portal and Manager 2026-05-15 09:49:07 -03:00
Sidney f6022fd0fc feat(finance): add valor_pago column and implement robust gross/net separation logic 2026-05-15 08:55:02 -03:00
Sidney 8a42db3e58 fix(finance): implement gross amount recovery and protection against net value overwrites in portal and manager 2026-05-15 08:33:59 -03:00
Sidney cf1ad968ca Fix: restore and force amount recovery bugfix to run even for JSON values, preventing the Portal UI from double-discounting corrupted historical payments 2026-05-15 08:16:20 -03:00
Sidney 55c0a06a93 Fix: ensure Portal finance API prioritizes JSON amount/discount to strictly match Manager UI logic; Update GEMINI.md and MEMORY.md to enforce server.js obsolescence 2026-05-15 08:04:03 -03:00
Sidney c150c70472 Docs: mark original server.js files as obsolete in manager and portal 2026-05-15 07:56:44 -03:00
Sidney 8d29449666 Fix: synchronize server.js portal logic with server.selfhosted.js to include db.amount_original and db.discount in double discount recovery 2026-05-15 07:49:53 -03:00
Sidney e7ded2df80 Fix: cast json amount to Number in portal logic to ensure strict equality comparison works for recovering corrupted double discount 2026-05-14 22:11:26 -03:00
Sidney 58182ff53c Fix: preserve gross amount in webhook and reconstruct it in portal to fix double discount on paid items 2026-05-14 22:03:18 -03:00
Sidney 7bada2a4e7 Fix: use SELECT * in Portal financial query to prevent column-not-found crash before Phase 1 migration runs 2026-05-14 21:54:48 -03:00
Sidney ce82f30598 Phase 2: Dual-write for financial edits - new PUT /api/admin/cobrancas/:id route + Finance.tsx sync 2026-05-14 21:46:39 -03:00
Sidney b440023add Phase 1: Add rich columns to alunos_cobrancas and migrate JSON metadata to SQL on boot 2026-05-14 21:38:02 -03:00