mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-16 17:11:58 +00:00
feat(ui): show all provider UIDs in scan page filter regardless of co… (#8375)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user