From 849ea9f7b235feca28c68a95e15287428d4e7d95 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 4 Jun 2024 08:55:35 -0400 Subject: [PATCH] [WIFI-13803] Added fingerprint column to wifi analysis Signed-off-by: Charles --- package-lock.json | 4 ++-- package.json | 2 +- src/hooks/Network/Statistics.ts | 1 + .../Device/WifiAnalysis/AssocationsTable.tsx | 16 ++++++++++++++++ src/pages/Device/WifiAnalysis/index.tsx | 1 + 5 files changed, 21 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index df74b86..07bdc4f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ucentral-client", - "version": "3.0.2(9)", + "version": "3.1.0(2)", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ucentral-client", - "version": "3.0.2(9)", + "version": "3.1.0(2)", "license": "ISC", "dependencies": { "@chakra-ui/anatomy": "^2.1.1", diff --git a/package.json b/package.json index 0b119b6..940a672 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ucentral-client", - "version": "3.0.2(9)", + "version": "3.1.0(2)", "description": "", "private": true, "main": "index.tsx", diff --git a/src/hooks/Network/Statistics.ts b/src/hooks/Network/Statistics.ts index 43aab83..e88dad1 100644 --- a/src/hooks/Network/Statistics.ts +++ b/src/hooks/Network/Statistics.ts @@ -59,6 +59,7 @@ export type DeviceInterfaceStatistics = { dynamic_vlan?: number; inactive: number; ipaddr_v4: string; + fingerprint?: object; rssi: number; rx_bytes: number; rx_duration: number; diff --git a/src/pages/Device/WifiAnalysis/AssocationsTable.tsx b/src/pages/Device/WifiAnalysis/AssocationsTable.tsx index af4d26a..b909bd8 100644 --- a/src/pages/Device/WifiAnalysis/AssocationsTable.tsx +++ b/src/pages/Device/WifiAnalysis/AssocationsTable.tsx @@ -28,6 +28,7 @@ export type ParsedAssociation = { txNss: number | string; recorded: number; dynamicVlan?: number; + fingerprint?: object; }; type Props = { @@ -77,6 +78,14 @@ const WifiAnalysisAssociationsTable = ({ data, ouis, isSingle }: Props) => { isMonospace: true, alwaysShow: true, }, + { + id: 'ssid', + Header: 'SSID', + Footer: '', + accessor: 'ssid', + customWidth: '35px', + alwaysShow: true, + }, { id: 'ips', Header: 'IPs', @@ -84,6 +93,13 @@ const WifiAnalysisAssociationsTable = ({ data, ouis, isSingle }: Props) => { Cell: (v) => ipCell(v.cell.row.original), disableSortBy: true, }, + { + id: 'fingerprint', + Header: 'Fingerprint', + Footer: '', + Cell: (v) => Object.values(v.cell.row.original.fingerprint ?? {}).join(', '), + disableSortBy: true, + }, { id: 'vendor', Header: t('controller.wifi.vendor'), diff --git a/src/pages/Device/WifiAnalysis/index.tsx b/src/pages/Device/WifiAnalysis/index.tsx index 74d0b36..63117a7 100644 --- a/src/pages/Device/WifiAnalysis/index.tsx +++ b/src/pages/Device/WifiAnalysis/index.tsx @@ -105,6 +105,7 @@ const parseAssociations = (data: { data: DeviceStatistics; recorded: number }, r txNss: association.tx_rate.nss ?? '-', recorded: data.recorded, dynamicVlan: association.dynamic_vlan, + fingerprint: association.fingerprint, }); } }