Commit graph

596 commits

Author SHA1 Message Date
codex-bot
42942350dc feat(admin): exibir mensagem de erro no detalhe da máquina quando Convex/fallback falham e oferecer retry; prioriza caminho Convex e esclarece 404 2025-10-22 11:15:20 -03:00
codex-bot
ee1f19f7f2 fix(machines): reduce HTTP fallback delay on admin machine details to 300ms to bypass Convex client loading edge cases; Convex already returns full data for machine id 2025-10-22 10:22:23 -03:00
codex-bot
7a7154775c fix(web): suppress hydration mismatch at root html to avoid React 418 on production (extensions/content-scripts DOM changes) 2025-10-22 10:16:59 -03:00
codex-bot
a18536dd5f fix(api): Next.js 16 route handler types — params is Promise in context
- Update GET signature to (req: NextRequest, ctx: { params: Promise<{id:string}> })
- Await ctx.params and pass id to Convex client
- Keeps NextResponse return type
2025-10-22 09:46:50 -03:00
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
e0f65cc774 chore(convex): no-op touch to trigger Convex functions deploy (fix prod detail view loading) 2025-10-22 09:03:29 -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
6333a3fc07 chore: trigger convex rebuild 2025-10-22 02:16:32 -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
dbb8d7fa63 feat(alerts): format hours in admin alert emails using minutes when <1h; minor null-safe for contracted/month 2025-10-21 15:20:05 -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
4a30a1b564 chore(convex): bump revision to force functions deploy 2025-10-21 11:34:14 -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
89c8e0cdb3 Docs: add Phase 2 (multi-user links) semantics and admin API; clarify email-as-identity for reinstall 2025-10-21 11:06:43 -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
a96cb1747e Remove ticket share button 2025-10-21 00:15:51 -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
49496f3663 Run PowerShell commands via script blocks 2025-10-20 22:21:37 -03:00
Esdras Renan
680d49ddc5 Log PowerShell raw output preview in tests 2025-10-20 22:18:44 -03:00
Esdras Renan
8312330c2e Log PowerShell stdout in Windows tests 2025-10-20 22:15:15 -03:00
Esdras Renan
6234924878 Log PowerShell stderr in Windows tests 2025-10-20 22:05:58 -03:00
Esdras Renan
0a0106c0f3 Use encoded PowerShell commands for Windows inventory 2025-10-20 21:55:54 -03:00
Esdras Renan
0aa474c88e Handle PowerShell UTF-16 output and show Windows edition 2025-10-20 21:52:17 -03:00
Esdras Renan
459bd53693 Fix Windows PowerShell UTF-16 parsing 2025-10-20 21:43:11 -03:00
Esdras Renan
04a0127c6b Add Windows diagnostics test 2025-10-20 21:36:57 -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