Commit graph

30 commits

Author SHA1 Message Date
esdrasrenan
58a1ed6b36 feat: automações com envio de e-mail 2025-12-13 12:38:08 -03:00
esdrasrenan
8ab510bfe9 feat: automações de tickets e testes de regressão 2025-12-13 10:30:29 -03:00
esdrasrenan
48d9de8dd1 test(machines): atualizar mock para suportar tabela machineHeartbeats
Adicionar mock da nova tabela machineHeartbeats com metodo first()
para corrigir teste getById apos refatoracao do heartbeat.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 23:30:25 -03:00
esdrasrenan
508f915cf9 fix: corrigir memory leaks e testes de mocks
- Fechar ConvexClient antigo antes de criar novo (evita memory leak)
- Adicionar flag disposed para prevenir race condition em useEffect
- Reduzir polling SSE de 1s para 5s (balanco entre responsividade e carga)
- Adicionar .take() aos mocks de testes para compatibilidade

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 21:49:04 -03:00
esdrasrenan
d01c37522f feat: SSE para chat desktop, rate limiting, retry, testes e atualizacao de stack
- Implementa Server-Sent Events (SSE) para chat no desktop com fallback HTTP
- Adiciona rate limiting nas APIs de chat (poll, messages, sessions)
- Adiciona retry com backoff exponencial para mutations
- Cria testes para modulo liveChat (20 testes)
- Corrige testes de SMTP (unit tests para extractEnvelopeAddress)
- Adiciona indice by_status_lastActivity para cron de sessoes inativas
- Atualiza stack: Bun 1.3.4, React 19, recharts 3, noble/hashes 2, etc

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-07 16:29:18 -03:00
Esdras Renan
2e735a7df4 Avoid recursive import in api mock for bun tests 2025-11-27 08:38:11 -03:00
Esdras Renan
09711d0465 Fix api mock import for bun test 2025-11-27 08:32:16 -03:00
Esdras Renan
cb0ee989c0 Make api mock preserve other Convex routes in rename test 2025-11-27 08:31:53 -03:00
Esdras Renan
f7ad7f6a17 Fix admin rename payload and harden RustDesk ID sync 2025-11-26 21:00:08 -03:00
Esdras Renan
a62f3d5283 feat: add SLA category breakdown report 2025-11-08 02:47:39 -03:00
Esdras Renan
d8eb38fe52 Update Prisma and harden tests 2025-11-08 00:28:52 -03:00
Esdras Renan
07d631de40 feat: integrar credenciais rustdesk aos acessos remotos 2025-11-07 15:39:36 -03:00
Esdras Renan
775956c160 Switch workflows to Bun install/test and update pnpm 2025-11-04 23:21:41 -03:00
codex-bot
a8333c010f fix(reports): remove truncation cap in range collectors to avoid dropped records
feat(calendar): migrate to react-day-picker v9 and polish UI
- Update classNames and CSS import (style.css)
- Custom Dropdown via shadcn Select
- Nav arrows aligned with caption (around)
- Today highlight with cyan tone, weekdays in sentence case
- Wider layout to avoid overflow; remove inner wrapper

chore(tickets): make 'Patrimônio do computador (se houver)' optional
- Backend hotfix to enforce optional + label on existing tenants
- Hide required asterisk for this field in portal/new-ticket

refactor(new-ticket): remove channel dropdown from admin/agent flow
- Keep default channel as MANUAL

feat(ux): simplify requester section and enlarge combobox trigger
- Remove RequesterPreview redundancy; show company badge in trigger
2025-11-04 11:51:08 -03:00
codex-bot
e0ef66555d feat: dispositivos e ajustes de csat e relatórios 2025-11-03 19:29:50 -03:00
codex-bot
8b82284e8c chore: expand reports coverage and upgrade next 2025-10-31 17:27:51 -03:00
codex-bot
296e02cf0c Normalize ticket mentions in editor and server 2025-10-24 16:35:55 -03:00
Esdras Renan
b0f57009ac feat: link tickets in comments and align admin sidebars 2025-10-23 00:46:50 -03:00
Esdras Renan
eee0f432e7 chore: document and stabilize vitest browser setup 2025-10-22 17:19:12 -03:00
codex-bot
49173cdf69 fix(machines): guard Convex getById calls with 'skip' when missing id to avoid ArgumentValidationError; add unit test for getById metadata; fix build by loosening Prisma types in company service 2025-10-22 08:47:55 -03:00
Esdras Renan
2e3b46a7b5 feat: expand admin companies and users modules 2025-10-22 01:27:43 -03:00
Esdras Renan
090ebb9607 fix: align ticket timers to server clock 2025-10-19 20:27:11 -03:00
Esdras Renan
3b5676ed35 fix: reconcile ticket timer with server start 2025-10-19 19:52:42 -03:00
Esdras Renan
30dd503082 fix: clear persona links and use esm vitest config 2025-10-19 15:00:25 -03:00
Esdras Renan
63d6a65334 chore: snapshot comment authors before user deletion 2025-10-19 14:30:59 -03:00
Esdras Renan
a69d37a672 feat: refine admin access management 2025-10-18 01:32:19 -03:00
Esdras Renan
68ace0a858 refactor: quality workflow, docs, tests 2025-10-16 19:14:46 -03:00
Esdras Renan
037970d52b chore: update SMTP module and tests; remove unused assets 2025-10-07 16:15:46 -03:00
Esdras Renan
81fd572e48 SMTP: extend env parsing (domain/auth/starttls); add unit test with mocked TLS for sendSmtpMail; extend SmtpConfig; docs to set .env locally 2025-10-07 16:01:56 -03:00
Esdras Renan
08cc8037d5 Hours by client: add search and CSV filtering; add alerts cron (BRT 08:00 guard) + alerts panel filters; admin companies shows last alert; PDF Inter font from public/fonts; fix Select empty value; type cleanups; tests for CSV/TZ; remove Knowledge Base nav 2025-10-07 15:39:55 -03:00