chore(ui): rename OCI provider to oraclecloud (#9166)

This commit is contained in:
Sergio Garcia
2025-11-05 08:59:55 -05:00
committed by GitHub
parent 5b20fd1b3b
commit 191d51675c
14 changed files with 18 additions and 18 deletions
@@ -30,7 +30,7 @@ const PROVIDER_ICON: Record<ProviderType, ReactNode> = {
m365: <M365ProviderBadge width={18} height={18} />,
github: <GitHubProviderBadge width={18} height={18} />,
iac: <IacProviderBadge width={18} height={18} />,
oci: <OracleCloudProviderBadge width={18} height={18} />,
oraclecloud: <OracleCloudProviderBadge width={18} height={18} />,
};
interface AccountsSelectorProps {
@@ -91,7 +91,7 @@ const PROVIDER_DATA: Record<
label: "Infrastructure as Code",
icon: IacProviderBadge,
},
oci: {
oraclecloud: {
label: "Oracle Cloud Infrastructure",
icon: OracleCloudProviderBadge,
},
@@ -49,7 +49,7 @@ const providerDisplayData: Record<
label: "Infrastructure as Code",
component: <CustomProviderInputIac />,
},
oci: {
oraclecloud: {
label: "Oracle Cloud Infrastructure",
component: <CustomProviderInputOracleCloud />,
},
@@ -41,7 +41,7 @@ export const ProvidersOverview = ({
return <GitHubProviderBadge width={30} height={30} />;
case "iac":
return <IacProviderBadge width={30} height={30} />;
case "oci":
case "oraclecloud":
return <OracleCloudProviderBadge width={30} height={30} />;
default:
return null;
@@ -56,7 +56,7 @@ export const ProvidersOverview = ({
kubernetes: "Kubernetes",
github: "GitHub",
iac: "IaC",
oci: "OCI",
oraclecloud: "OCI",
};
const providers = PROVIDER_TYPES.map((providerType) => ({
@@ -18,7 +18,7 @@ const providerTypeLabels: Record<ProviderType, string> = {
kubernetes: "Kubernetes",
github: "GitHub",
iac: "Infrastructure as Code",
oci: "Oracle Cloud Infrastructure",
oraclecloud: "Oracle Cloud Infrastructure",
};
interface EnhancedProviderSelectorProps {
@@ -88,7 +88,7 @@ export const RadioGroupProvider: React.FC<RadioGroupProviderProps> = ({
</CustomRadio>
<CustomRadio
description="Oracle Cloud Infrastructure"
value="oci"
value="oraclecloud"
>
<div className="flex items-center">
<OracleCloudProviderBadge size={26} />
@@ -167,7 +167,7 @@ export const BaseCredentialsForm = ({
control={form.control as unknown as Control<IacCredentials>}
/>
)}
{providerType === "oci" && (
{providerType === "oraclecloud" && (
<OracleCloudCredentialsForm
control={form.control as unknown as Control<OCICredentials>}
/>
@@ -56,7 +56,7 @@ const getProviderFieldDetails = (providerType?: ProviderType) => {
label: "Repository URL",
placeholder: "e.g. https://github.com/user/repo",
};
case "oci":
case "oraclecloud":
return {
label: "Tenancy OCID",
placeholder: "e.g. ocid1.tenancy.oc1..aaaaaaa...",
@@ -28,7 +28,7 @@ export const getProviderLogo = (provider: ProviderType) => {
return <GitHubProviderBadge width={35} height={35} />;
case "iac":
return <IacProviderBadge width={35} height={35} />;
case "oci":
case "oraclecloud":
return <OracleCloudProviderBadge width={35} height={35} />;
default:
return null;
@@ -51,7 +51,7 @@ export const getProviderName = (provider: ProviderType): string => {
return "GitHub";
case "iac":
return "Infrastructure as Code";
case "oci":
case "oraclecloud":
return "Oracle Cloud Infrastructure";
default:
return "Unknown Provider";
+1 -1
View File
@@ -157,7 +157,7 @@ export const useCredentialsForm = ({
};
}
return baseDefaults;
case "oci":
case "oraclecloud":
return {
...baseDefaults,
[ProviderCredentialFields.OCI_USER]: "",
+2 -2
View File
@@ -37,10 +37,10 @@ export const getProviderHelpText = (provider: string) => {
text: "Need help scanning your Infrastructure as Code repository?",
link: "https://goto.prowler.com/provider-iac",
};
case "oci":
case "oraclecloud":
return {
text: "Need help connecting your Oracle Cloud account?",
link: "https://goto.prowler.com/provider-oci",
link: "https://goto.prowler.com/provider-oraclecloud",
};
default:
return {
@@ -304,7 +304,7 @@ export const buildSecretConfig = (
secretType: "static",
secret: buildIacSecret(formData),
}),
oci: () => ({
oraclecloud: () => ({
secretType: "static",
secret: buildOracleCloudSecret(formData, providerUid),
}),
+2 -2
View File
@@ -116,7 +116,7 @@ export const addProviderFormSchema = z
providerUid: z.string(),
}),
z.object({
providerType: z.literal("oci"),
providerType: z.literal("oraclecloud"),
[ProviderCredentialFields.PROVIDER_ALIAS]: z.string(),
providerUid: z.string(),
}),
@@ -210,7 +210,7 @@ export const addCredentialsFormSchema = (
.string()
.optional(),
}
: providerType === "oci"
: providerType === "oraclecloud"
? {
[ProviderCredentialFields.OCI_USER]: z
.string()
+1 -1
View File
@@ -6,7 +6,7 @@ export const PROVIDER_TYPES = [
"m365",
"github",
"iac",
"oci",
"oraclecloud",
] as const;
export type ProviderType = (typeof PROVIDER_TYPES)[number];