From 410cafe73e3dc3ca60f6ed65c89db41f6c14e273 Mon Sep 17 00:00:00 2001 From: Mark Berger Date: Fri, 6 Jan 2023 01:42:19 +0200 Subject: [PATCH] Update form field labels in connection form to match design - Replaced ControlLabels message property with infoTooltipContent - Replaced property "flex-start" to "center" for FlexContainer (New Connection) --- .../CreateConnection/CreateConnectionNameField.tsx | 4 ++-- .../src/components/CreateConnection/DataResidency.tsx | 4 ++-- .../components/LabeledControl/ControlLabels.module.scss | 4 ++-- .../Connection/ConnectionForm/ConnectionFormFields.tsx | 8 ++++---- .../ConnectionForm/ScheduleField/ScheduleField.tsx | 8 ++++---- .../components/NamespaceDefinitionField.tsx | 4 ++-- .../components/NonBreakingChangesPreferenceField.tsx | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/airbyte-webapp/src/components/CreateConnection/CreateConnectionNameField.tsx b/airbyte-webapp/src/components/CreateConnection/CreateConnectionNameField.tsx index 5948738b5090..6b450c3f9223 100644 --- a/airbyte-webapp/src/components/CreateConnection/CreateConnectionNameField.tsx +++ b/airbyte-webapp/src/components/CreateConnection/CreateConnectionNameField.tsx @@ -16,13 +16,13 @@ export const CreateConnectionNameField = () => {
}> {({ field, meta }: FieldProps) => ( - +
} - message={formatMessage({ + infoTooltipContent={formatMessage({ id: "form.connectionName.message", })} /> diff --git a/airbyte-webapp/src/components/CreateConnection/DataResidency.tsx b/airbyte-webapp/src/components/CreateConnection/DataResidency.tsx index 19863551e2b4..4da428ec5e8f 100644 --- a/airbyte-webapp/src/components/CreateConnection/DataResidency.tsx +++ b/airbyte-webapp/src/components/CreateConnection/DataResidency.tsx @@ -26,12 +26,12 @@ export const DataResidency: React.FC = ({ name = "geography"
{({ field, form }: FieldProps) => ( - +
} - message={ + infoTooltipContent={ = ({ valu {values.namespaceDefinition === NamespaceDefinitionType.customformat && ( {({ field, meta }: FieldProps) => ( - +
} - message={} + infoTooltipContent={} />
@@ -97,14 +97,14 @@ export const ConnectionFormFields: React.FC = ({ valu )} {({ field }: FieldProps) => ( - +
diff --git a/airbyte-webapp/src/views/Connection/ConnectionForm/ScheduleField/ScheduleField.tsx b/airbyte-webapp/src/views/Connection/ConnectionForm/ScheduleField/ScheduleField.tsx index 69572dad7d01..368c39c97576 100644 --- a/airbyte-webapp/src/views/Connection/ConnectionForm/ScheduleField/ScheduleField.tsx +++ b/airbyte-webapp/src/views/Connection/ConnectionForm/ScheduleField/ScheduleField.tsx @@ -135,7 +135,7 @@ export const ScheduleField: React.FC = () => { {({ field, meta, form }: FieldProps) => ( <> - +
{
{isCron(form) && ( - +
{ label={formatMessage({ id: "form.cronExpression", })} - message={formatMessage( + infoTooltipContent={formatMessage( { id: "form.cronExpression.message", }, @@ -186,7 +186,7 @@ export const ScheduleField: React.FC = () => {
- + > = ({ field, const [, meta] = useField(field.name); return ( - +
} - message={} + infoTooltipContent={} />
diff --git a/airbyte-webapp/src/views/Connection/ConnectionForm/components/NonBreakingChangesPreferenceField.tsx b/airbyte-webapp/src/views/Connection/ConnectionForm/components/NonBreakingChangesPreferenceField.tsx index 14d7a444b751..35eb5421ec5d 100644 --- a/airbyte-webapp/src/views/Connection/ConnectionForm/components/NonBreakingChangesPreferenceField.tsx +++ b/airbyte-webapp/src/views/Connection/ConnectionForm/components/NonBreakingChangesPreferenceField.tsx @@ -28,7 +28,7 @@ export const NonBreakingChangesPreferenceField: React.FC> = ( const { mode } = useConnectionFormService(); return ( - +