mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-25 21:04:19 +00:00
fix(ui): show Registry subscription and setup prompts (#13038)
This commit is contained in:
1 parent
286ae6c7cf
commit
64c19b3db6
23 files changed
+571
-73
No files matched your search
@@ -19,6 +19,7 @@ export type CloudUpgradeFeature =
|
||||
|
||||
// Prowler Cloud features gated behind a paid plan.
|
||||
export const PAID_PLAN_UPGRADE_FEATURE = {
|
||||
REGISTRY: "registry",
|
||||
REPORT_DOWNLOAD: "report_download",
|
||||
} as const;
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ export type RegistryEndpoint =
|
||||
(typeof REGISTRY_ENDPOINT)[keyof typeof REGISTRY_ENDPOINT];
|
||||
|
||||
export const REGISTRY_FAILURE = {
|
||||
SUBSCRIPTION_REQUIRED: "subscription_required",
|
||||
ACCESS_DENIED: "access_denied",
|
||||
ONBOARDING: "onboarding",
|
||||
RECONNECT: "reconnect",
|
||||
@@ -17,6 +18,7 @@ export const REGISTRY_FAILURE = {
|
||||
} as const;
|
||||
|
||||
export type RegistryFailureResult =
|
||||
| { status: typeof REGISTRY_FAILURE.SUBSCRIPTION_REQUIRED }
|
||||
| { status: typeof REGISTRY_FAILURE.ACCESS_DENIED }
|
||||
| { status: typeof REGISTRY_FAILURE.ONBOARDING }
|
||||
| { status: typeof REGISTRY_FAILURE.RECONNECT }
|
||||
@@ -300,4 +302,5 @@ export type RegistryBootstrapResult =
|
||||
status: typeof REGISTRY_BOOTSTRAP_STATE.READY;
|
||||
state: RegistryBootstrapState;
|
||||
}
|
||||
| { status: typeof REGISTRY_FAILURE.ACCESS_DENIED };
|
||||
| { status: typeof REGISTRY_FAILURE.ACCESS_DENIED }
|
||||
| { status: typeof REGISTRY_FAILURE.SUBSCRIPTION_REQUIRED };
|
||||
Reference in new issue
Block a user