improvements: address feedback/requests

This commit is contained in:
Scott Wilson
2024-11-25 16:35:56 -08:00
parent b762816e66
commit b6c05a2f25
11 changed files with 145 additions and 22 deletions
@@ -69,7 +69,7 @@ export default function OctopusDeployIntegrationPage() {
src="/images/integrations/Octopus Deploy.png"
height={30}
width={30}
alt="Databricks logo"
alt="Octopus Deploy logo"
/>
</div>
<span className="ml-1.5">Octopus Deploy Integration</span>
@@ -12,9 +12,9 @@ import {
CardTitle,
FilterableSelect,
FormControl,
Input,
Spinner
} from "@app/components/v2";
import { SecretPathInput } from "@app/components/v2/SecretPathInput";
import { useWorkspace } from "@app/context";
import { useCreateIntegration, useGetIntegrationAuthApps } from "@app/hooks/api";
import {
@@ -63,6 +63,7 @@ export default function OctopusDeployCreateIntegrationPage() {
const currentSpace = watch("targetSpace", octopusDeploySpaces?.[0]);
const currentScope = watch("scope");
const sourceEnv = watch("sourceEnvironment");
const { data: octopusDeployResources, isLoading: isOctopusDeployResourcesLoading } =
useGetIntegrationAuthApps(
@@ -195,11 +196,11 @@ export default function OctopusDeployCreateIntegrationPage() {
name="secretPath"
render={({ field: { value, onChange }, fieldState: { error } }) => (
<FormControl isError={Boolean(error)} label="Secrets Path">
<Input
className="mt-[1px] h-[2.46rem]"
<SecretPathInput
placeholder="/"
environment={sourceEnv?.slug}
value={value}
onChange={onChange}
placeholder={'Provide a path (defaults to "/")'}
/>
</FormControl>
)}