Commit graph

1081 commits

Author SHA1 Message Date
rever-tecnologia
01a16b7e5e Fix lint error: replace Spinner with IconRefresh
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 14:01:41 -03:00
rever-tecnologia
ff90f16cef Replace spinner with skeleton loading in emprestimos page
- Remove initial spinner and show skeleton layout immediately
- Add skeleton to stats cards during loading
- Show skeleton rows in table while data loads
- Provides better visual feedback with layout structure

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 13:55:55 -03:00
rever-tecnologia
b5b74a674d Fix emprestimos table column widths consistency
- Use colgroup with fixed pixel widths instead of percentages
- Add tableLayout: fixed with minWidth for stable layout
- Add truncate to cells to prevent content overflow
- Show placeholder in Actions column for non-active items
- Column widths now stay consistent across all filter states

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 13:44:55 -03:00
rever-tecnologia
51ce3e61c7 Fix emprestimos page accents and table layout
- Fix Portuguese accents in UI text (devolucao -> devolução, emprestimo -> empréstimo, etc.)
- Restructure table to always show header with fixed column widths
- Move empty state inside TableBody with colSpan to maintain layout consistency
- Column widths now stay consistent regardless of filter selection

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 13:40:18 -03:00
rever-tecnologia
0054b93d3c Improve emprestimos UX with skeleton loading and optimistic devolver
- Replace spinner with skeleton table rows during loading
- Apply optimistic closing for devolver dialog (instant feedback)
- Use toast.promise for background mutation with loading state
- Remove unnecessary isSubmitting state from devolver button
- Maintain table layout during filter changes (no layout shift)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 10:24:53 -03:00
rever-tecnologia
b7e7f99f99 Fix emprestimos table layout shift during filter changes
- Replace centered spinner with skeleton table rows
- Maintain table structure and width during loading
- Show 5 skeleton rows with proper column widths
- Prevents layout collapse when changing filters

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 10:11:43 -03:00
rever-tecnologia
7c5bc828cf Fix getById not returning USB policy fields
The getByIdHandler was missing usbPolicy, usbPolicyStatus,
and usbPolicyError fields, causing the chip to always show
"Permitido" instead of the actual policy value.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 10:06:18 -03:00
rever-tecnologia
4d158237c6 Fix X button focus ring showing on modal open
Change focus: to focus-visible: so the ring only appears
during keyboard navigation, not on initial modal open

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 09:51:40 -03:00
rever-tecnologia
1ee5b34158 Refactor USB control to modal with improved UX
- Move USB policy control from bottom of page to modal dialog
- Add "Controle USB" button in device controls section
- Show USB chip for all Windows devices (default to ALLOW)
- Add close button (X) with hover effect in modal header
- Fix all Portuguese accents in USB control component
- Position status badge at top of modal content
- Add variant prop to UsbPolicyControl (card/inline)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 09:50:11 -03:00
rever-tecnologia
06ebad930c Move USB policy control to modal dialog
- Add USB modal state and clickable InfoChip for USB policy chip
- Create Dialog with UsbPolicyControl component for USB management
- Add variant prop to UsbPolicyControl (card/inline) for flexible rendering
- Remove inline UsbPolicyControl from bottom of device page
- USB control now accessible by clicking USB chip in device summary

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 09:36:50 -03:00
rever-tecnologia
6007cf6740 Fix USB policy token hash bug
The getPendingUsbPolicy and reportUsbPolicyStatus functions were
comparing the plain token against the tokenHash in the database,
which would never match. Now properly hashing the token before
database lookup.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 09:12:30 -03:00
rever-tecnologia
7469d3b5e6 Add USB policy improvements and emprestimos details modal
- Add cron job to cleanup stale pending USB policies every 30 min
- Add cleanupStalePendingPolicies mutation to usbPolicy.ts
- Add USB policy fields to machines listByTenant query
- Display USB status chip in device details and bulk control modal
- Add details modal for emprestimos with all loan information
- Add observacoesDevolucao field to preserve original observations
- Fix status text size in details modal title

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 08:24:56 -03:00
rever-tecnologia
e493ec9d5d Fix better-sqlite3 binding for Prisma adapter
- Force SKIP_SQLITE_REBUILD=false in stack.yml
- Copy binding to multiple locations including @prisma/client paths
- Include version-specific paths for Node.js compiled bindings

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 16:31:51 -03:00
rever-tecnologia
e9a658341f Fix auth trustedOrigins and improve emprestimos page layout
- Add production domain to trustedOrigins explicitly
- Add health API endpoint for diagnostics
- Improve emprestimos page layout to match tickets design
- Use correct primary color for buttons
- Fix segmented control styling with rounded borders
- Use Empty component for empty state

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 16:20:04 -03:00
rever-tecnologia
326da8dae6 Skip TypeScript checking in production build
Adds typescript.ignoreBuildErrors to prevent OOM during build
on production server with limited memory.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 15:49:43 -03:00
rever-tecnologia
79bda730d5 Fix accent on page title "Empréstimos de Equipamentos"
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 14:53:45 -03:00
rever-tecnologia
38995b95c6 Improve loan page and add company filter to USB bulk control
- Update Next.js to 16.0.7
- Fix accent on menu item "Emprestimos" to "Empréstimos"
- Standardize loan page with project patterns (DateRangeButton, cyan color scheme, ToggleGroup)
- Add company filter to USB bulk policy dialog
- Update CardDescription text in devices overview
- Fix useEffect dependency warning in desktop main.tsx

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 14:52:27 -03:00
rever-tecnologia
063c5dfde7 Add equipment loan feature and USB bulk control
- Add emprestimos (equipment loan) module in Convex with queries/mutations
- Create emprestimos page with full CRUD and status tracking
- Add USB bulk control to admin devices overview
- Fix Portuguese accents in USB policy control component
- Fix dead code warnings in Rust agent
- Fix tiptap type error in rich text editor
2025-12-04 14:23:58 -03:00
rever-tecnologia
49aa143a80 Add USB storage device control feature
- Add USB policy fields to machines schema (policy, status, error)
- Create usbPolicyEvents table for audit logging
- Implement Convex mutations/queries for USB policy management
- Add REST API endpoints for desktop agent communication
- Create Rust usb_control module for Windows registry manipulation
- Integrate USB policy check in agent heartbeat loop
- Add USB policy control component in admin device overview
- Add localhost:3001 to auth trustedOrigins for dev

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 13:30:59 -03:00
Esdras Renan
0e9310d6e4 Handle RustDesk ID fallback to reported ID 2025-11-27 09:21:32 -03:00
Esdras Renan
2e735a7df4 Avoid recursive import in api mock for bun tests 2025-11-27 08:38:11 -03:00
Esdras Renan
09711d0465 Fix api mock import for bun test 2025-11-27 08:32:16 -03:00
Esdras Renan
cb0ee989c0 Make api mock preserve other Convex routes in rename test 2025-11-27 08:31:53 -03:00
Esdras Renan
35de633b6f Delay RustDesk provisioning until machineId is loaded 2025-11-27 08:29:33 -03:00
Esdras Renan
59e68b0032 Use RustDesk key param in launch URI 2025-11-27 08:20:30 -03:00
Esdras Renan
040a9e4569 Improve RustDesk connect button fallback 2025-11-27 08:14:18 -03:00
Esdras Renan
f7ad7f6a17 Fix admin rename payload and harden RustDesk ID sync 2025-11-26 21:00:08 -03:00
Esdras Renan
bd1bd4bef1 Expose visit status and performedAt in ticket list 2025-11-26 16:54:25 -03:00
Esdras Renan
66559eafbf feat(visits): concluir/reabrir visita sem poluir agenda 2025-11-26 14:21:31 -03:00
Esdras Renan
8f2c00a75a fix: stabilize web build path e cores do SLA 2025-11-25 17:32:40 -03:00
Esdras Renan
99b4d50589 chore(tray): adiciona tooltip 'Raven' 2025-11-25 16:34:33 -03:00
Esdras Renan
a1bd41c6db fix(tray): usa items sem ? e build()? direto 2025-11-25 15:00:49 -03:00
Esdras Renan
d65c0b9920 fix(tray): usa items()? com map_err para menu build 2025-11-25 14:56:21 -03:00
Esdras Renan
ffd42bd719 fix(tray): evita uso de ? em MenuBuilder (E0277) 2025-11-25 14:54:54 -03:00
Esdras Renan
54a07bc281 fix(tray): ajusta tipos para AppHandle e build do menu 2025-11-25 14:29:39 -03:00
Esdras Renan
06bb1133a8 feat(raven): adiciona tray, hide-on-close e autostart no Windows 2025-11-25 14:25:34 -03:00
Esdras Renan
e8b58187c9 feat(rustdesk): remove auto-run/atalho para evitar abrir GUI ao iniciar Raven 2025-11-25 14:16:45 -03:00
Esdras Renan
ccd8642629 chore(rustdesk): consome resultado de start_sequence para evitar warning 2025-11-25 14:02:43 -03:00
Esdras Renan
6329949c64 fix(rustdesk): evita inferência ambígua e ignora erros de start de serviço 2025-11-25 14:00:30 -03:00
Esdras Renan
f63dc1f2b8 fix(rustdesk): consome resultado do start_sequence para ajustar tipo 2025-11-25 13:58:58 -03:00
Esdras Renan
d01e28f481 fix(tauri): remove aspas no cmd /C para tauri.cmd com espaços 2025-11-25 13:57:52 -03:00
Esdras Renan
a5acc87588 fix(tauri): no Windows usa cmd /C tauri.cmd para evitar EINVAL 2025-11-25 13:56:35 -03:00
Esdras Renan
ff68348442 fix(tauri): usa tauri.cmd real via node_modules/.bin e cwd correto 2025-11-25 13:54:05 -03:00
Esdras Renan
bb6c3c16a1 fix: resolve tauri spawn path e alinhar cor do texto ao SLA 2025-11-25 13:52:16 -03:00
Esdras Renan
153b05efc8 chore(tauri): evita shell=true no stub para suprimir DEP0190 2025-11-25 13:47:47 -03:00
Esdras Renan
d76e9ed0cb fix(rustdesk): corrige retorno ao re-tentar start do serviço 2025-11-25 13:46:02 -03:00
Esdras Renan
24656afff3 fix(start-web): adiciona fallback de rebuild para better-sqlite3 2025-11-25 13:23:57 -03:00
Esdras Renan
e9ba1790fb fix(rustdesk): reaplica install-service e valida estado RUNNING 2025-11-25 13:18:10 -03:00
Esdras Renan
56cd5fa344 chore(web): força rebuild do better-sqlite3 em deploys 2025-11-25 13:05:00 -03:00
Esdras Renan
c871710826 fix(start-web): normaliza blocos if/else do rebuild sqlite 2025-11-25 12:14:12 -03:00