From 084d807c955956fbca8117813c6c857e978079c9 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 26 Jul 2026 20:02:51 +0100 Subject: [PATCH] Enhance SpotlightTooltip component with model property integration - Added the getModelProperty function to SpotlightTooltip for improved property handling. - Updated ObjectProperty component to utilize dynamic properties based on the model type, enhancing flexibility in data representation. --- src/components/Dashboard/common/SpotlightTooltip.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Dashboard/common/SpotlightTooltip.jsx b/src/components/Dashboard/common/SpotlightTooltip.jsx index a44a397..340f5e8 100644 --- a/src/components/Dashboard/common/SpotlightTooltip.jsx +++ b/src/components/Dashboard/common/SpotlightTooltip.jsx @@ -8,7 +8,10 @@ import ObjectProperty from './ObjectProperty' import InfoCircleIcon from '../../Icons/InfoCircleIcon' import { ApiServerContext } from '../context/ApiServerContext' import merge from 'lodash/merge' -import { getModelByName } from '../../../database/ObjectModels' +import { + getModelByName, + getModelProperty +} from '../../../database/ObjectModels' const { Text } = Typography @@ -128,7 +131,7 @@ const SpotlightTooltip = ({ query, type }) => { return (