From f1678d7ac2b9cc5ad98e4972304a0d67b1b2a1b4 Mon Sep 17 00:00:00 2001 From: Alan Buscaglia Date: Thu, 11 Jun 2026 16:26:53 +0200 Subject: [PATCH] fix(ui): use SkeletonBoundary for all graph tabs and degrade scroll hint under reduced motion --- .../graphs-tabs/graphs-tabs-wrapper.tsx | 22 +++++-------------- .../table/inline-resource-container.tsx | 2 +- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/ui/app/(prowler)/_overview/graphs-tabs/graphs-tabs-wrapper.tsx b/ui/app/(prowler)/_overview/graphs-tabs/graphs-tabs-wrapper.tsx index 379a4f7acf..e49e13bee3 100644 --- a/ui/app/(prowler)/_overview/graphs-tabs/graphs-tabs-wrapper.tsx +++ b/ui/app/(prowler)/_overview/graphs-tabs/graphs-tabs-wrapper.tsx @@ -1,8 +1,5 @@ -import { Skeleton } from "@heroui/skeleton"; -import { Suspense } from "react"; - import { SkeletonTableNewFindings } from "@/components/overview/new-findings-table/table"; -import { SkeletonBoundary } from "@/components/shadcn"; +import { Skeleton, SkeletonBoundary } from "@/components/shadcn"; import { SearchParamsProps } from "@/types"; import { GraphsTabsClient } from "./_components/graphs-tabs-client"; @@ -15,8 +12,8 @@ import { ThreatMapViewSSR } from "./threat-map-view/threat-map-view.ssr"; const LoadingFallback = () => (
- - + +
); @@ -47,20 +44,11 @@ export const GraphsTabsWrapper = async ({ const fallback = TAB_FALLBACKS[tab.id] ?? ; const content = ; - if (tab.id === "findings") { - return [ - tab.id, - - {content} - , - ]; - } - return [ tab.id, - + {content} - , + , ]; }), ) as Record; diff --git a/ui/components/findings/table/inline-resource-container.tsx b/ui/components/findings/table/inline-resource-container.tsx index c0fb5ec560..4d5b684a64 100644 --- a/ui/components/findings/table/inline-resource-container.tsx +++ b/ui/components/findings/table/inline-resource-container.tsx @@ -317,7 +317,7 @@ export function InlineResourceContainer({ {showScrollHint && (
-
+
Scroll for more