Tech
Extending PcDevice Search: Regex Limits and Invoice Fields Integration
Extending PcDevice Search: Regex Limits and Invoice Fields Integration
TL;DR: I tightened the collaborator‑number regex to accept only 3‑6 digits and added invoiceNumber / purchaseOrder fields to the PcDevice model, making them searchable and visible in the device detail sheet. The changes touch the Prisma schema, the global search logic, the device store hook, and the UI component that renders device details.
The Problem
The internal inventory tool ( pcview ) allo...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to