Files
canteen-asset-tracker/static
shawn b417b2a82c feat: scan existing asset redirects to detail view instead of scan result card
When a user scans a barcode that matches an existing asset:
- Redirect directly to the asset detail view (Assets tab)
- Auto-checkin still runs in background if GPS available
- Show a toast notification with the asset name

When scanning a barcode not in database:
- Switch back to Add Asset tab and show the create form (with existing switchTab fix for edge case)

No backend changes needed — the existing /api/assets/search?machine_id= endpoint already handles the lookup.

Closes #
2026-05-24 17:16:46 -04:00
..