diff --git a/frontend/src/pages/bellcloud/devices/tabs/OverviewTab.jsx b/frontend/src/pages/bellcloud/devices/tabs/OverviewTab.jsx
index c7b8364..c5464e6 100644
--- a/frontend/src/pages/bellcloud/devices/tabs/OverviewTab.jsx
+++ b/frontend/src/pages/bellcloud/devices/tabs/OverviewTab.jsx
@@ -235,7 +235,7 @@ export default function OverviewTab({
api.get('/crm/products').catch(() => null),
]).then(([mfgItem, productsRes]) => {
if (mfgItem?.revision) setHwRevision(mfgItem.revision)
- const hwType = mfgItem?.hw_type || ''
+ const hwType = mfgItem?.hw_family || ''
if (!hwType) return
const products = productsRes?.products || []
const norm = s => (s || '').toLowerCase().replace(/[^a-z0-9]/g, '')
diff --git a/frontend/src/pages/engineering/manufacturing/DeviceInventory.jsx b/frontend/src/pages/engineering/manufacturing/DeviceInventory.jsx
index 197e965..126dd80 100644
--- a/frontend/src/pages/engineering/manufacturing/DeviceInventory.jsx
+++ b/frontend/src/pages/engineering/manufacturing/DeviceInventory.jsx
@@ -154,7 +154,7 @@ export default function DeviceInventory() {
const params = new URLSearchParams()
if (search) params.set('search', search)
if (statusFilter) params.set('status', statusFilter)
- if (typeFilter) params.set('hw_type', typeFilter)
+ if (typeFilter) params.set('hw_family', typeFilter)
params.set('limit', '500')
const data = await api.get(`/manufacturing/devices${params.toString() ? `?${params}` : ''}`)
const devs = data.devices || []
@@ -198,8 +198,8 @@ export default function DeviceInventory() {
if (!sortKey) return devices
return [...devices].sort((a, b) => {
let av, bv
- if (sortKey === 'type') { av = BOARD_TYPE_LABELS[a.hw_type] || a.hw_type || ''; bv = BOARD_TYPE_LABELS[b.hw_type] || b.hw_type || '' }
- else if (sortKey === 'version') { av = a.hw_version || ''; bv = b.hw_version || '' }
+ if (sortKey === 'type') { av = BOARD_TYPE_LABELS[a.hw_family] || a.hw_family || ''; bv = BOARD_TYPE_LABELS[b.hw_family] || b.hw_family || '' }
+ else if (sortKey === 'version') { av = a.hw_revision || ''; bv = b.hw_revision || '' }
else if (sortKey === 'created') { av = a.created_at || ''; bv = b.created_at || '' }
else if (sortKey === 'customer') {
const ca = customerMap[a.customer_id]; const cb = customerMap[b.customer_id]
@@ -268,7 +268,7 @@ export default function DeviceInventory() {
sortable: true,
render: (d) => (
- {BOARD_TYPE_LABELS[d.hw_type] || d.hw_type}
+ {BOARD_TYPE_LABELS[d.hw_family] || d.hw_family}
),
},
@@ -278,7 +278,7 @@ export default function DeviceInventory() {
sortable: true,
render: (d) => (
- {formatHwVersion(d.hw_version)}
+ {formatHwVersion(d.hw_revision)}
),
},
diff --git a/frontend/src/pages/engineering/manufacturing/DeviceInventoryDetail.jsx b/frontend/src/pages/engineering/manufacturing/DeviceInventoryDetail.jsx
index f1415cb..81abb37 100644
--- a/frontend/src/pages/engineering/manufacturing/DeviceInventoryDetail.jsx
+++ b/frontend/src/pages/engineering/manufacturing/DeviceInventoryDetail.jsx
@@ -645,7 +645,7 @@ export default function DeviceInventoryDetail() {
)
}
- const boardLabel = BOARD_TYPE_LABELS[device.hw_type] || device.hw_type
+ const boardLabel = BOARD_TYPE_LABELS[device.hw_family] || device.hw_family
const existingUserIds = deviceUsers.map((u) => u.user_id).filter(Boolean)
const editStepMeta = editModalData ? LIFECYCLE[editModalData.stepIndex] : null
@@ -662,7 +662,7 @@ export default function DeviceInventoryDetail() {
}
- subtitle={`${device.name || device.device_name || '—'} · ${boardLabel} · ${formatHwVersion(device.hw_version)}`}
+ subtitle={`${device.name || device.device_name || '—'} · ${boardLabel} · ${formatHwVersion(device.hw_revision)}`}
>
{canEdit && (