mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 01:27:41 +00:00
Update remove group field for github integration section
This commit is contained in:
+23
-24
@@ -129,17 +129,18 @@ export const IntegrationsSection = ({
|
|||||||
label={
|
label={
|
||||||
(integration.integration === "qovery" && integration?.scope) ||
|
(integration.integration === "qovery" && integration?.scope) ||
|
||||||
(integration?.scope === "github-org" && "Organization") ||
|
(integration?.scope === "github-org" && "Organization") ||
|
||||||
(["github-repo", "github-env"].includes(integration?.scope as string) && "Repository") ||
|
(["github-repo", "github-env"].includes(integration?.scope as string) &&
|
||||||
|
"Repository") ||
|
||||||
"App"
|
"App"
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<div className="min-w-[8rem] rounded-md border border-mineshaft-700 bg-mineshaft-900 px-3 py-2 font-inter text-sm text-bunker-200 max-w-[12rem] text-ellipsis whitespace-nowrap overflow-clip">
|
<div className="min-w-[8rem] max-w-[12rem] overflow-clip text-ellipsis whitespace-nowrap rounded-md border border-mineshaft-700 bg-mineshaft-900 px-3 py-2 font-inter text-sm text-bunker-200">
|
||||||
{
|
{(integration.integration === "hashicorp-vault" &&
|
||||||
(integration.integration === "hashicorp-vault" && `${integration.app} - path: ${integration.path}`) ||
|
`${integration.app} - path: ${integration.path}`) ||
|
||||||
(integration.scope === "github-org" && `${integration.owner}` ) ||
|
(integration.scope === "github-org" && `${integration.owner}`) ||
|
||||||
(integration.scope?.startsWith("github-") && `${integration.owner}/${integration.app}` ) ||
|
(integration.scope?.startsWith("github-") &&
|
||||||
integration.app
|
`${integration.owner}/${integration.app}`) ||
|
||||||
}
|
integration.app}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{(integration.integration === "vercel" ||
|
{(integration.integration === "vercel" ||
|
||||||
@@ -151,29 +152,27 @@ export const IntegrationsSection = ({
|
|||||||
(integration.integration === "github" && integration.scope === "github-env")) && (
|
(integration.integration === "github" && integration.scope === "github-env")) && (
|
||||||
<div className="ml-4 flex flex-col">
|
<div className="ml-4 flex flex-col">
|
||||||
<FormLabel label="Target Environment" />
|
<FormLabel label="Target Environment" />
|
||||||
<div className="rounded-md border border-mineshaft-700 bg-mineshaft-900 px-3 py-2 font-inter text-sm text-bunker-200 text-ellipsis whitespace-nowrap overflow-clip">
|
<div className="overflow-clip text-ellipsis whitespace-nowrap rounded-md border border-mineshaft-700 bg-mineshaft-900 px-3 py-2 font-inter text-sm text-bunker-200">
|
||||||
{integration.targetEnvironment || integration.targetEnvironmentId}
|
{integration.targetEnvironment || integration.targetEnvironmentId}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
{integration.integration === "checkly" && integration.targetService && (
|
||||||
|
<div className="ml-2">
|
||||||
|
<FormLabel label="Group" />
|
||||||
|
<div className="rounded-md border border-mineshaft-700 bg-mineshaft-900 px-3 py-2 font-inter text-sm text-bunker-200">
|
||||||
|
{integration.targetService}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
{(integration.integration === "checkly" ||
|
{(integration.integration === "checkly" ||
|
||||||
integration.integration === "github") && (
|
integration.integration === "github") && (
|
||||||
<>
|
<div className="ml-2">
|
||||||
{integration.targetService && (
|
<FormLabel label="Secret Suffix" />
|
||||||
<div className="ml-2">
|
<div className="rounded-md border border-mineshaft-700 bg-mineshaft-900 px-3 py-2 font-inter text-sm text-bunker-200">
|
||||||
<FormLabel label="Group" />
|
{integration?.metadata?.secretSuffix || "-"}
|
||||||
<div className="rounded-md border border-mineshaft-700 bg-mineshaft-900 px-3 py-2 font-inter text-sm text-bunker-200">
|
|
||||||
{integration.targetService}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
<div className="ml-2">
|
|
||||||
<FormLabel label="Secret Suffix" />
|
|
||||||
<div className="rounded-md border border-mineshaft-700 bg-mineshaft-900 px-3 py-2 font-inter text-sm text-bunker-200">
|
|
||||||
{integration?.metadata?.secretSuffix || "-"}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="flex cursor-default items-center">
|
<div className="flex cursor-default items-center">
|
||||||
|
|||||||
Reference in New Issue
Block a user