From 8317ea783f723344d6bdb22045664ae08d60abce Mon Sep 17 00:00:00 2001 From: sumit-tft <70506234+sumit-tft@users.noreply.github.com> Date: Wed, 27 Aug 2025 14:20:16 +0530 Subject: [PATCH] =?UTF-8?q?feat(ui):=20show=20all=20provider=20UIDs=20in?= =?UTF-8?q?=20scan=20page=20filter=20regardless=20of=20co=E2=80=A6=20(#837?= =?UTF-8?q?5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/CHANGELOG.md | 1 + ui/app/(prowler)/scans/page.tsx | 22 ++++++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/ui/CHANGELOG.md b/ui/CHANGELOG.md index 8e726f0196..ef2915e692 100644 --- a/ui/CHANGELOG.md +++ b/ui/CHANGELOG.md @@ -90,6 +90,7 @@ All notable changes to the **Prowler UI** are documented in this file. - Upgrade to Next.js 14.2.30 and lock TypeScript to 5.5.4 for ESLint compatibility [(#8189)](https://github.com/prowler-cloud/prowler/pull/8189) - Improved active step highlighting and updated step titles and descriptions in the Cloud Provider credentials update flow [(#8303)](https://github.com/prowler-cloud/prowler/pull/8303) - Refactored all existing links across the app to use new custom-link component for consistent styling [(#8341)](https://github.com/prowler-cloud/prowler/pull/8341) +- Provider Uid filter on scan page to list all UIDs regardless of connection status [(#8375)] (https://github.com/prowler-cloud/prowler/pull/8375) ### 🐞 Fixed diff --git a/ui/app/(prowler)/scans/page.tsx b/ui/app/(prowler)/scans/page.tsx index 6a56ba5a71..68ce8b8e29 100644 --- a/ui/app/(prowler)/scans/page.tsx +++ b/ui/app/(prowler)/scans/page.tsx @@ -31,20 +31,22 @@ export default async function Scans({ const searchParamsKey = JSON.stringify(filteredParams); const providersData = await getProviders({ - filters: { - "filter[connected]": true, - }, pageSize: 50, }); const providerInfo = - providersData?.data?.map((provider: ProviderProps) => ({ - providerId: provider.id, - alias: provider.attributes.alias, - providerType: provider.attributes.provider, - uid: provider.attributes.uid, - connected: provider.attributes.connection.connected, - })) || []; + providersData?.data + ?.filter( + (provider: ProviderProps) => + provider.attributes.connection.connected === true, + ) + .map((provider: ProviderProps) => ({ + providerId: provider.id, + alias: provider.attributes.alias, + providerType: provider.attributes.provider, + uid: provider.attributes.uid, + connected: provider.attributes.connection.connected, + })) || []; const thereIsNoProviders = !providersData?.data;