Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

✨ feat(device): show running topics in the device picker hover panel (#21915)

AmAzing-cd811b55bdb7
diff --git a/src/features/DeviceManager/DeviceHoverPanel.tsx b/src/features/DeviceManager/DeviceHoverPanel.tsx
index e711a80a73c..b3f2fe6f941 100644
--- a/src/features/DeviceManager/DeviceHoverPanel.tsx
+++ b/src/features/DeviceManager/DeviceHoverPanel.tsx
@@ -11,6 +11,7 @@ import {
LayersIcon,
type LucideIcon,
MemoryStickIcon,
+ MessagesSquareIcon,
MonitorIcon,
PowerIcon,
ServerIcon,
@@ -21,6 +22,7 @@ import { useTranslation } from 'react-i18next';
import { formatSize } from '@/utils/format';
+import { DeviceRunningSummaryValue } from './DeviceActivity/RunningUsers';
import { useDeviceMetricSeries } from './DeviceHealth/shared';
import UsageMeter, { UsageMeterGroup, UsageMeterSkeleton } from './DeviceHealth/UsageMeter';
import { latestUsageView } from './DeviceHealth/viewState';
@@ -148,6 +150,11 @@ const DeviceHoverPanel = ({ device }: DeviceHoverPanelProps) => {
<InfoRow icon={CalendarClockIcon} label={t('devices.detail.lastConnected')}>
{dayjs(summary.lastConnectedAt).fromNow()}
</InfoRow>
+ {online && (
+ <InfoRow icon={MessagesSquareIcon} label={t('devices.card.runningTopics')}>
+ <DeviceRunningSummaryValue deviceId={device.deviceId} />
+ </InfoRow>
+ )}
{online && (
<div className={styles.usage}>
{usage.loading ? (