Esdras Renan
307a291c71
Upgrade Prisma to v7
2025-11-19 13:24:08 -03:00
Esdras Renan
2c975edd09
Update Next.js and dependencies
2025-11-19 11:07:47 -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
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
7a3eca9361
feat: sync convex companies and dashboard metrics
2025-10-18 21:14:01 -03:00
Esdras Renan
91d0608838
fix: align next config with next 15.5.5
2025-10-16 21:39:43 -03:00
Esdras Renan
f60a48e7b3
admin/companies: melhorar criação/edição\n\n- Aceita isAvulso e contractedHoursPerMonth no POST\n- Retorna 409 para duplicidade (slug/provisioningCode)\n- Retorna 409 para duplicidade no PATCH
2025-10-16 17:29:08 -03:00
Esdras Renan
2cba553efa
Implement company provisioning codes and session tweaks
2025-10-15 20:45:25 -03:00
Esdras Renan
cf31158a9e
Allow staff access to admin UI with scoped permissions
2025-10-13 16:30:52 -03:00
Esdras Renan
c0228c0dad
docs(todo): add TODOs for Prisma client/type sync and desktop TS notes; remove unused vars in companies create route
2025-10-09 23:05:11 -03:00
Esdras Renan
b801ebd44f
fix(build): adjust create company payload to known Prisma fields; locally suppress single any cast for update due to out-of-sync Prisma types
2025-10-09 23:02:56 -03:00
Esdras Renan
6ffd6c6392
chore(types): remove explicit any, fix hook deps, and unused vars across admin/api/tickets; tighten zod server schemas; adjust UI types; fix pdf export expression; minor cleanup
2025-10-09 22:43:39 -03:00
Esdras Renan
70f91f5bbd
feat(reports): hours by client (CSV + UI), company contracted hours, UI to manage companies; adjust ticket list spacing
2025-10-07 14:04:36 -03:00
Esdras Renan
3bafcc5a0a
feat: CSV exports, PDF improvements, play internal/external with hour split, roles cleanup, admin companies with 'Cliente avulso', ticket list spacing/alignment fixes, status translations and mappings
2025-10-07 13:42:45 -03:00