Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog/8131-fix-integration-form-misalignment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type: Fixed
description: Fixed misaligned field labels on the system integration configuration form. Aligned its look more with other forms.
pr: 8131
labels: []
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export type FormFieldProps = {
name: string;
fieldSchema: ConnectionTypeSecretSchemaProperty;
isRequired: boolean;
layout?: "stacked" | "inline";
secretsSchema?: ConnectionTypeSecretSchemaResponse;
validate?: (value: string | undefined) => string | undefined;
};
Expand All @@ -19,7 +18,6 @@ export const FormFieldFromSchema = ({
name,
fieldSchema,
isRequired,
layout = "stacked",
secretsSchema,
validate,
}: FormFieldProps) => {
Expand Down Expand Up @@ -64,7 +62,6 @@ export const FormFieldFromSchema = ({
label: fieldSchema.title,
tooltip: fieldSchema.description,
rules,
layout: layout === "inline" ? ("horizontal" as const) : undefined,
};

if (isSelect) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,7 @@ export const ConnectorParameters = ({
mb={4}
>
<div>
Connect to your {connectionOption!.human_readable} environment by
providing the information below. Once you have saved the form, you may
test the integration to confirm that it&apos;s working correctly.
{`Connect to your ${connectionOption!.human_readable} environment by providing the information below. Once you have saved the form, you may test the integration to confirm that it's working correctly.`}
</div>
{connectionOption.user_guide && (
<div style={{ marginTop: "12px" }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,13 @@ export const ConnectorParametersForm = ({
{contextHolder}
<Form
form={form}
layout="horizontal"
layout="vertical"
initialValues={initialFormValues}
onFinish={handleFinish}
key={connectionConfig?.key ?? "create"}
validateTrigger="onBlur"
labelCol={{ flex: "180px" }}
labelAlign="left"
>
<Flex vertical>
<Flex vertical className="[&_.ant-form-item]:mb-4">
<Form.Item
name="name"
label="Name"
Expand Down Expand Up @@ -350,7 +348,6 @@ export const ConnectorParametersForm = ({
isRequired={secretsSchema.required?.includes(key)}
secretsSchema={secretsSchema}
validate={getFieldValidation(key, item)}
layout="inline"
/>
);
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ export const ConfigureIntegrationForm = ({
onFinish={handleSubmit}
key={connection?.key ?? "create"}
>
<Flex vertical className="mt-4">
<Flex vertical className="mt-4 [&_.ant-form-item]:mb-4">
<Form.Item
name="name"
label="Name"
Expand Down
Loading