Esdras Renan
3fce36d4e5
fix(machines): remove artificial delay; always probe details immediately; fallback tri-state guarded only by fallback state
2025-10-22 20:07:08 -03:00
Esdras Renan
39726b360e
feat(machines): robust probe for machine details + clear error/not-found states\n\n- Probe Convex (browser) and server route when query is undefined or null\n- Tri-state fallback (undefined|null|data) to disambiguate not-found\n- Restore skeleton + not-found + error rendering with actionable retry\n- No behavior change when data is available
2025-10-22 19:40:07 -03:00
Esdras Renan
c640e288b1
chore(types): remove anys and harden Convex data fetch
...
- Strongly type company-service and API routes
- Fix Next.js searchParams (promise) in admin/machines page
- Add vitest module marker + stub for tsconfig-paths/register
- Use Convex query in client as primary fallback for machine details
- Replace any casts in admin machines components
Build + lint are clean locally; details page no longer skeleton-loops.
2025-10-22 19:19:38 -03:00
Esdras Renan
eee0f432e7
chore: document and stabilize vitest browser setup
2025-10-22 17:19:12 -03:00
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
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
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
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
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
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