codex-bot
4cfbd22cf2
admin(machines): add resilient fallback for details page
...
- Keep Convex useQuery for machines.getById
- Add HTTP fallback via /api/admin/machines/[id]/details if query stays loading (>1.2s)
- Helps when websocket/convex-react doesn’t initialize and avoids permanent skeleton
2025-10-22 09:39:51 -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
codex-bot
5ff37195f5
admin(machines): fix machine detail not loading by switching to server-side fetch by ID
...
- Add Convex query machines.getById with full payload (metrics/inventory)
- Update AdminMachineDetailsClient to use getById instead of listByTenant+find
- Update MachineBreadcrumbs to fetch hostname by ID
This prevents the empty state when the list query hasn’t loaded or filtered out the machine.
2025-10-22 08:25:12 -03:00
Esdras Renan
dad84d7d0e
refactor: align routes with next 16 and local fonts
2025-10-22 02:08:18 -03:00
Esdras Renan
2e3b46a7b5
feat: expand admin companies and users modules
2025-10-22 01:27:43 -03:00
codex-bot
a043b1203c
Ajusta layout dos detalhes de atualizações do Windows
2025-10-21 15:58:53 -03:00
codex-bot
3e5e1c759e
Refina espaçamento e tooltip do gráfico de horas
2025-10-21 15:44:00 -03:00
codex-bot
c4620102ae
Ajusta tooltips e espaçamento nos gráficos de backlog
2025-10-21 15:30:19 -03:00
codex-bot
0a3e1a0130
chore(ui): finalize hour/date formatting rollout; adjust contracted hours display; clean up unused formatter
2025-10-21 15:06:38 -03:00
codex-bot
f255a4c780
feat(ui): improve chart spacing and labels; format hours <1h as minutes; unify date format to dd/MM (ticks) and dd/MM/yyyy (tooltips); fix tooltips labels ('Total', 'Resolvidos')
2025-10-21 14:52:57 -03:00
codex-bot
4b4c0d8e69
fix(reports): gate report queries behind staff check; prevent non-staff crashes; trigger Convex deploy by touching convex/reports.ts
2025-10-21 14:29:31 -03:00
codex-bot
2cdc856009
fix(dashboard): guard nested fields (resolution, firstResponse, awaitingAction) to prevent undefined access and runtime crash; add safe fallbacks in UI
2025-10-21 14:12:41 -03:00
codex-bot
68b897c30c
Reports: add charts to Produtividade (areas + channels), CSAT (bar), Backlog (pie+bar), Horas (stacked bar); deploy Convex reports agent productivity
2025-10-21 13:35:06 -03:00
codex-bot
67df0d4308
Rename menus: 'Acessos', 'Filas', 'Produtividade'; add agent productivity section with bar chart; adjust CSV label; update channels page title
2025-10-21 13:17:41 -03:00
codex-bot
347609a186
Remove tenant UI; restrict machine links to non-admin users; polish Users/Machines UX
2025-10-21 11:55:05 -03:00
codex-bot
e5d395208d
Users list: default filter to 'Pessoas'; finalize cleanup
2025-10-21 11:17:41 -03:00
codex-bot
8b02b8a564
Fix types: remove any; clean unused states; add machines summary in unified Users list; capitalize 'Gerenciar usuários'; correct Convex linkUser typing
2025-10-21 11:16:31 -03:00
codex-bot
22f0768492
Phase 2: multi-user links for machines (Convex schema + mutations + admin API); UI to add/remove links; user editor lists machines via linkedUsers
2025-10-21 11:06:21 -03:00
codex-bot
6653ef250e
Machines: show 'Usuários vinculados' in details; Cards show linked user chip; Users editor shows 'Máquinas vinculadas' via Convex listByTenant filter
2025-10-21 10:56:04 -03:00
codex-bot
af0658af26
Docs: document Users/Machines unification, company filter in Machines, Windows OS label, and identity/email/history guidance in OPERATIONS.md
2025-10-21 10:55:07 -03:00
codex-bot
231310a9fe
Admin Users: unify People and Machine Agents into single 'Usuários' tab with type filter; keep Team/Convites tabs
2025-10-21 10:41:38 -03:00
codex-bot
e04888ff4d
Machines: replace OS filter with searchable company dropdown; remove OS filter logic
2025-10-21 09:52:36 -03:00
codex-bot
904c2ef457
UI: Avoid duplicate Windows major version in machine OS label (e.g., 'Windows 11 Pro (26100)')
2025-10-21 09:08:59 -03:00
codex-bot
66bf0cd9e1
Ajusta layout das atualizações do Windows
2025-10-21 08:40:11 -03:00
codex-bot
6e3df454d6
Adjust login page copy for first access
2025-10-21 08:11:31 -03:00
Esdras Renan
6007babad3
Align ticket status colors and polish Windows insights
2025-10-21 00:12:39 -03:00
Esdras Renan
6a8f7a63aa
Normalize Windows edition and install date parsing
2025-10-20 23:23:46 -03:00
Esdras Renan
694bda22cd
Guard Windows defender checks
2025-10-20 23:02:22 -03:00
Esdras Renan
374c60ce79
Fix Windows extended type fallback
2025-10-20 22:54:16 -03:00
Esdras Renan
037891485d
Enrich Windows diagnostics and admin UI
2025-10-20 22:43:42 -03:00
Esdras Renan
0aa474c88e
Handle PowerShell UTF-16 output and show Windows edition
2025-10-20 21:52:17 -03:00
Esdras Renan
2e7f575682
feat: standardize table pagination styling
2025-10-20 21:05:50 -03:00
Esdras Renan
50f6796ffa
feat: paginate ticket timeline
2025-10-20 20:39:16 -03:00
Esdras Renan
96a6f73e30
style: restyle ticket details panel
2025-10-20 19:54:36 -03:00
Esdras Renan
3972f66c92
feat: enforce ticket ownership during work sessions
2025-10-20 19:46:20 -03:00
Esdras Renan
81657e52d8
fix: improve closure templates and hover styling
2025-10-20 19:00:38 -03:00
Esdras Renan
3012ad4348
fix: align ticket timer icon size
2025-10-20 18:28:15 -03:00
codex-bot
d5a11d0536
Login: aumentar levemente o espaçamento do subtítulo ('Por Rever Tecnologia')
2025-10-20 17:51:23 -03:00
codex-bot
2f798d934a
UI: corrigir duplicidade do Encerrar, padronizar ciano, ajustar tamanho do ícone de tempo; atualizar cabeçalho do login; inverter ordem (Novo ticket à esquerda, Compartilhar à direita) no ticket individual
2025-10-20 17:40:17 -03:00
codex-bot
741a0b5b70
ui: keep close dialog content unchanged; refactor to shared component; layout tweaks per request
2025-10-20 17:16:29 -03:00
codex-bot
040965b148
ui(header): reorder tempo total before edit icon; status close as icon with tooltip
2025-10-20 17:01:36 -03:00
codex-bot
9b31a47f82
ui: header cleanup (edit icon, time tooltip), delete button style; filters: server-side assignee + company mapping; UX: toasts on save/clear default filter
2025-10-20 16:40:27 -03:00
codex-bot
0dd0e67458
feat(filters): usar filtro por responsável no servidor (assigneeId)\n\nci: tocar convex/tickets para forçar deploy das funções
2025-10-20 16:07:54 -03:00
codex-bot
7f5a2668b7
fix(filters): não enviar assigneeId ao Convex; filtrar no cliente até o backend atualizar
...
- Evita erro de validação em produção enquanto as funções Convex não estão publicadas
- Mantém UX do filtro por responsável funcionando
2025-10-20 15:21:34 -03:00
codex-bot
7ed7775c05
fix(editor): reativar edição ao atribuir responsável
...
- Atualiza RichTextEditor para refletir mudanças de disabled (setEditable)
- Corrige bug onde editor permanecia travado até F5 após atribuição
2025-10-20 15:06:30 -03:00
codex-bot
5535ba81e6
feat: status + queue updates, filters e UI
...
- Status renomeados e cores (Em andamento azul, Pausado amarelo)
- Transições automáticas: iniciar=Em andamento, pausar=Pausado
- Fila padrão: Chamados ao criar ticket
- Admin/Empresas: renomeia ‘Slug’ → ‘Apelido’ + mensagens
- Dashboard: últimos tickets priorizam sem responsável (mais antigos)
- Tickets: filtro por responsável + salvar filtro por usuário
- Encerrar ticket: adiciona botão ‘Cancelar’
- Strings atualizadas (PDF, relatórios, badges)
2025-10-20 14:57:22 -03:00
Esdras Renan
216feca971
feat(tickets): preserve requester/assignee/company snapshots + timeline fallbacks; chore: add requester index\n\n- Add requesterSnapshot, assigneeSnapshot, companySnapshot to tickets\n- Use snapshots as fallback in list/get/play\n- Update snapshots on assignee changes/startWork\n- Preserve snapshots before deleting users/companies\n- Add index tickets.by_tenant_requester\n- Add migrations.backfillTicketSnapshots\n\nchore(convex): upgrade to ^1.28.0 and run codegen\nchore(next): upgrade Next.js to 15.5.6 and update React/eslint-config-next\nfix: remove any and lint warnings; tighten types across API routes and components\ndocs: add docs/ticket-snapshots.md
2025-10-20 10:13:37 -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
1df7e13c8f
tickets: prevent inflated running time by clamping session start to max(remote, local click); reset on pause; tighten interval deps
2025-10-19 19:12:57 -03:00