fix: address CodeRabbit review findings

- docker-table: inspect refetch result instead of .catch() (TQ v5 compat)
- rssFeed: sort all entries by date before slicing to max posts
- toValidDate: reject null/boolean inputs before Date construction
- system-resources: reset chart history when integrationIds changes
- settleIntegrationQueries: wrap fn in async boundary for safe allSettled
This commit is contained in:
Thomas Camlong committed 2026-06-27 12:13:52 +02:00
1 parent 45c58c967e
commit 12bf6ee4be
5 files changed
+18 -14

No files matched your search

@@ -44,13 +44,16 @@ export default function SystemResources({ integrationIds, options }: WidgetCompo
>(() => (data[0] ? [toChartItem(data[0].healthInfo)] : []));
const lastUpdatedAt = useRef(dataUpdatedAt);
const prevIntegrationIds = useRef(integrationIds);
useEffect(() => {
if (dataUpdatedAt === lastUpdatedAt.current) return;
lastUpdatedAt.current = dataUpdatedAt;
const firstItem = data[0];
if (!firstItem) return;
setItems((prev) => [...prev, toChartItem(firstItem.healthInfo)].slice(-MAX_QUEUE_SIZE));
}, [dataUpdatedAt, data]);
const idsChanged = prevIntegrationIds.current !== integrationIds;
prevIntegrationIds.current = integrationIds;
setItems((prev) => (idsChanged ? [toChartItem(firstItem.healthInfo)] : [...prev, toChartItem(firstItem.healthInfo)].slice(-MAX_QUEUE_SIZE)));
}, [dataUpdatedAt, data, integrationIds]);
const showNetwork =
items.length === 0 || (items.every((item) => item.network !== null) && options.visibleCharts.includes("network"));