Commit graph

772 commits

Author SHA1 Message Date
Esdras Renan
b51d0770d3 Restore client user editing sheet and tweak pagination copy 2025-10-24 09:50:40 -03:00
Esdras Renan
c7aaa60d9a Fix admin cleanup hook order and lint setup 2025-10-24 09:21:31 -03:00
Esdras Renan
37c32149a6 feat: improve requester combobox and admin cleanup flows 2025-10-24 00:45:41 -03:00
codex-bot
788f6928a1 Garante tipos no timeline de solicitante 2025-10-23 18:31:54 -03:00
codex-bot
a7c3c743d7 Corrige flag de alteração de solicitante 2025-10-23 18:00:12 -03:00
codex-bot
4aee7d7719 Permite selecionar solicitante e empresa nos tickets 2025-10-23 17:47:23 -03:00
codex-bot
25321224a6 Redesenha top clientes por horas 2025-10-23 16:54:43 -03:00
codex-bot
34018bed04 Centraliza coluna de empresa na lista 2025-10-23 16:37:30 -03:00
codex-bot
aef5e66718 Exibe loading em máquinas e moderniza time picker 2025-10-23 15:06:41 -03:00
codex-bot
9bfdb451bc fix(editor/mentions): do not cache empty results so numeric queries like @41005 revalidate after deploy 2025-10-23 10:37:09 -03:00
codex-bot
66fe34868c feat(mentions): switch to Convex-backed search so @<ref> and text queries return visible tickets for the current user; keep permissions 2025-10-23 10:34:32 -03:00
codex-bot
e6c841383e fix(mentions): search numeric references directly in DB and avoid Tiptap duplicate 'link' extension by configuring link via StarterKit 2025-10-23 10:17:24 -03:00
codex-bot
4374b1c777 fix(new-ticket-dialog): place allowTicketMentions inside component to satisfy TS and restore build 2025-10-23 10:05:14 -03:00
codex-bot
904134604c feat(editor): enable ticket mentions on new-ticket forms and fix @mention popup layering\n\n- New Ticket page/dialog/portal now support @ to link tickets\n- Mention popup uses fixed strategy + high z-index\n- Add minimal Tippy box styling to globals.css\n- Keeps existing server-side permissions for mentions 2025-10-23 09:48:16 -03:00
Esdras Renan
b0f57009ac feat: link tickets in comments and align admin sidebars 2025-10-23 00:46:50 -03:00
Esdras Renan
c35eb673d3 fix(machines): hydrate company name without slug flash 2025-10-22 22:39:17 -03:00
Esdras Renan
20a5c902bc docs: add admin machines skeleton troubleshooting 2025-10-22 22:19:49 -03:00
Esdras Renan
2a359b7a65 fix(machines): derive machine id from router params 2025-10-22 22:08:53 -03:00
Esdras Renan
1017d563b5 fix(machines): guard hydration before loading machine details 2025-10-22 21:56:28 -03:00
Esdras Renan
3417388cb0 chore(machines): verbose probe diagnostics 2025-10-22 21:24:32 -03:00
Esdras Renan
a1f456a5fd chore(machines): add probe logging 2025-10-22 21:10:09 -03:00
Esdras Renan
55316e51c6 fix(machines): ensure machine details probe resolves 2025-10-22 20:49:43 -03:00
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
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