From 63e10c9661a17cc1b755f3d061096cba8892b95e Mon Sep 17 00:00:00 2001
From: Alejandro Bailo <59607668+alejandrobailo@users.noreply.github.com>
Date: Thu, 12 Mar 2026 13:49:34 +0100
Subject: [PATCH] refactor(ui): attack paths restyling and component migrations
(#10310)
---
.../_components/workflow-attack-paths.tsx | 2 +-
.../attack-paths/(workflow)/layout.tsx | 21 -
.../_components/graph/graph-loading.test.tsx | 27 +
.../query-parameters-form.test.tsx | 73 ++
.../_components/query-selector.tsx | 2 +-
.../_components/scan-list-table.test.tsx | 165 ++++
.../_components/scan-list-table.tsx | 506 +++++-------
.../_hooks/use-query-builder.test.tsx | 80 ++
.../query-builder/_hooks/use-wizard-state.ts | 6 +-
.../query-builder/attack-paths-page.tsx | 716 +++++++++++++++++
.../(workflow)/query-builder/page.tsx | 723 +-----------------
ui/app/(prowler)/attack-paths/layout.tsx | 13 +
ui/app/(prowler)/attack-paths/page.tsx | 10 +-
ui/app/(prowler)/providers/page.tsx | 6 +-
.../compliance-scan-info.tsx | 11 +-
.../compliance-header/scan-selector.tsx | 10 +-
ui/components/providers/index.ts | 1 -
ui/components/providers/provider-info.tsx | 33 -
.../providers/table/column-providers.tsx | 62 +-
.../ui/breadcrumbs/breadcrumb-navigation.tsx | 4 +-
.../ui/code-snippet/code-snippet.tsx | 2 +-
ui/components/ui/entities/entity-info.tsx | 90 ++-
22 files changed, 1386 insertions(+), 1177 deletions(-)
delete mode 100644 ui/app/(prowler)/attack-paths/(workflow)/layout.tsx
create mode 100644 ui/app/(prowler)/attack-paths/(workflow)/query-builder/_components/graph/graph-loading.test.tsx
create mode 100644 ui/app/(prowler)/attack-paths/(workflow)/query-builder/_components/query-parameters-form.test.tsx
create mode 100644 ui/app/(prowler)/attack-paths/(workflow)/query-builder/_components/scan-list-table.test.tsx
create mode 100644 ui/app/(prowler)/attack-paths/(workflow)/query-builder/_hooks/use-query-builder.test.tsx
create mode 100644 ui/app/(prowler)/attack-paths/(workflow)/query-builder/attack-paths-page.tsx
create mode 100644 ui/app/(prowler)/attack-paths/layout.tsx
delete mode 100644 ui/components/providers/provider-info.tsx
diff --git a/ui/app/(prowler)/attack-paths/(workflow)/_components/workflow-attack-paths.tsx b/ui/app/(prowler)/attack-paths/(workflow)/_components/workflow-attack-paths.tsx
index 9e1f3684ca..101f97d5b7 100644
--- a/ui/app/(prowler)/attack-paths/(workflow)/_components/workflow-attack-paths.tsx
+++ b/ui/app/(prowler)/attack-paths/(workflow)/_components/workflow-attack-paths.tsx
@@ -12,7 +12,7 @@ export const WorkflowAttackPaths = () => {
const pathname = usePathname();
// Determine current step based on pathname
- const isQueryBuilderStep = pathname.includes("query-builder");
+ const isQueryBuilderStep = pathname.includes("/attack-paths");
const currentStep = isQueryBuilderStep ? 1 : 0; // 0-indexed
diff --git a/ui/app/(prowler)/attack-paths/(workflow)/layout.tsx b/ui/app/(prowler)/attack-paths/(workflow)/layout.tsx
deleted file mode 100644
index 8557ab5369..0000000000
--- a/ui/app/(prowler)/attack-paths/(workflow)/layout.tsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import { Navbar } from "@/components/ui/nav-bar/navbar";
-
-/**
- * Workflow layout for Attack Paths
- * Displays content with navbar
- */
-export default function AttackPathsWorkflowLayout({
- children,
-}: {
- children: React.ReactNode;
-}) {
- return (
- <>
-