feat: COM-port support for workstation devices + agent UI fixes

- EquipmentPage: add COM-port connection type with port field (COM1, /dev/ttyUSB0)
- api.ts: add comPort field to WorkstationDevice type
- workstations route: pass com_port to INSERT/PATCH
- migration 042: extend connection check constraint to include 'com', add com_port column
- agent index.html: highlight first cell on load, reset input on unpair

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-27 12:41:31 +03:00
parent c5413566dd
commit b2b2034f4c
4 changed files with 51 additions and 19 deletions

View File

@@ -972,9 +972,10 @@ export interface WorkstationDevice {
workstationId: string
type: 'kkt' | 'printer'
name: string
connection: 'usb' | 'network'
connection: 'usb' | 'network' | 'com'
networkHost?: string
networkPort?: number
comPort?: string
purpose: 'fiscal' | 'kitchen' | 'bar' | 'receipt' | 'other'
config: Record<string, unknown>
}