docs + minor fixes

This commit is contained in:
McPizza
2024-12-10 21:14:13 +01:00
parent a730b16318
commit 7c8f2e5548
9 changed files with 57 additions and 16 deletions
@@ -52,27 +52,30 @@ export default function CircleCIContextCreateIntegrationPage() {
className="px-6 text-left text-xl"
subTitle="After adding your API Token, you will be prompted to set up an integration for a particular Infisical project and environment."
>
<div className="flex flex-row items-center">
<div className="flex items-center pb-0.5">
<div className="flex flex-row items-center justify-between">
<div className="flex items-center">
<Image
src="/images/integrations/CircleCI.png"
height={30}
width={30}
alt="CircleCI logo"
/>
<span className="ml-1.5">CircleCI Context Integration </span>
</div>
<span className="ml-1.5">CircleCI Context Integration </span>
<Link href="https://infisical.com/docs/integrations/cicd/circleci-context" passHref>
<a target="_blank" rel="noopener noreferrer">
<div className="ml-2 mb-1 inline-block cursor-default rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} className="mr-1.5" />
Docs
<FontAwesomeIcon
icon={faArrowUpRightFromSquare}
className="ml-1.5 mb-[0.07rem] text-xxs"
/>
</div>
</a>
<Link
href="https://infisical.com/docs/integrations/cicd/circleci-context"
target="_blank"
rel="noopener noreferrer"
passHref
>
<div className="ml-2 mb-1 flex cursor-pointer flex-row items-center gap-1.5 rounded-md bg-yellow/20 px-1.5 pb-[0.03rem] pt-[0.04rem] text-sm text-yellow opacity-80 hover:opacity-100">
<FontAwesomeIcon icon={faBookOpen} />
Docs
<FontAwesomeIcon
icon={faArrowUpRightFromSquare}
className="mb-[0.07rem] text-xxs"
/>
</div>
</Link>
</div>
</CardTitle>
@@ -118,7 +118,7 @@ export default function CircleCIContextCreateIntegrationPage() {
<Card className="max-w-lg rounded-md p-8 pt-4">
<CardTitle
className="w-full px-0 text-left text-xl"
subTitle="Choose which environment or folder in Infisical you want to sync to CircleCI environment variables."
subTitle="Choose which environment or folder in Infisical you want to sync to CircleCI Context Variables."
>
<div className="flex w-full flex-row items-center justify-between">
<div className="flex flex-row items-center gap-1.5">
@@ -212,7 +212,11 @@ export default function CircleCIContextCreateIntegrationPage() {
control={control}
name="targetContext"
render={({ field: { value, onChange }, fieldState: { error } }) => (
<FormControl errorText={error?.message} isError={Boolean(error)} label="Bitbucket Repo">
<FormControl
errorText={error?.message}
isError={Boolean(error)}
label="CircleCI Context"
>
<FilterableSelect
value={value}
getOptionValue={(option) => option.appId!}