@cccsaurora/howler-ui 2.14.0-dev.273 → 2.14.0-dev.274
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -114,7 +114,10 @@ const Collapsible = memo(({ title, data, query }) => {
|
|
|
114
114
|
const HitDetails = ({ hit }) => {
|
|
115
115
|
const { t } = useTranslation();
|
|
116
116
|
const [query, setQuery] = useState('');
|
|
117
|
-
const groups = useMemo(() => groupBy(Object.entries(flatten(hit ?? {}, { safe: true })).filter(([key, value]) =>
|
|
117
|
+
const groups = useMemo(() => groupBy(Object.entries(flatten(hit ?? {}, { safe: true })).filter(([key, value]) => !key.startsWith('__') &&
|
|
118
|
+
key.includes('.') &&
|
|
119
|
+
['howler', 'labels'].every(prefix => !key.startsWith(prefix)) &&
|
|
120
|
+
!isEmpty(value)), ([key]) => key.split('.')[0]), [hit]);
|
|
118
121
|
return (_jsxs(Stack, { spacing: 1, children: [_jsx(TextField, { value: query, onChange: event => setQuery(event.target.value), label: t('overview.search') }), Object.entries(groups).map(([section, entries]) => {
|
|
119
122
|
return (_jsx(Collapsible, { query: query, title: section
|
|
120
123
|
.split('_')
|