feat(ui): show all provider UIDs in scan page filter regardless of co… (#8375)

This commit is contained in:
sumit-tft
2025-08-27 14:20:16 +05:30
committed by GitHub
parent 65e7e89d61
commit 8317ea783f
2 changed files with 13 additions and 10 deletions
+1
View File
@@ -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
+12 -10
View File
@@ -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;