diff --git a/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/DatabaseUrl.tsx b/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/DatabaseUrl.tsx index 40b010084ba..038b1720f37 100644 --- a/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/DatabaseUrl.tsx +++ b/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/DatabaseUrl.tsx @@ -34,12 +34,14 @@ export const DatabaseUrl = ({ {connectionType === 'databaseUrl' ? ( ) : connectionType === 'envVar' ? ( diff --git a/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/ExtensionSchema.tsx b/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/ExtensionSchema.tsx index 6570f3d44ec..1c76e4b5c76 100644 --- a/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/ExtensionSchema.tsx +++ b/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/ExtensionSchema.tsx @@ -3,7 +3,7 @@ import { InputField } from '../../../../../new-components/Form'; export const ExtensionSchema = ({ name }: { name: string }) => { return ( { label: 'serializable', }, ]} - name={`${name}.isolationLevel`} + name={name} label="Isolation Level" tooltip="The transaction isolation level in which the queries made to the source will be run" /> diff --git a/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/ReadReplicas.stories.tsx b/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/ReadReplicas.stories.tsx index 027a22a9b60..a6d1e9f6eb9 100644 --- a/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/ReadReplicas.stories.tsx +++ b/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/ReadReplicas.stories.tsx @@ -4,6 +4,7 @@ import { ComponentStory, ComponentMeta } from '@storybook/react'; import { z } from 'zod'; import { ReadReplicas } from './ReadReplicas'; +import { connectionInfoSchema } from '../schema'; export default { component: ReadReplicas, @@ -12,10 +13,12 @@ export default { export const Primary: ComponentStory = () => ( console.log(data)} - schema={z.any()} + schema={z.object({ + readReplicas: z.array(connectionInfoSchema), + })} options={{}} > - +
)} - {mode === 'add' && ( + {(mode === 'add' || mode === 'edit') && ( { setMode('idle'); }} @@ -90,7 +102,7 @@ export const ReadReplicas = ({
@@ -103,14 +115,10 @@ export const ReadReplicas = ({
} > - - + + {areSSLSettingsEnabled() && ( } > - + )} @@ -137,15 +143,12 @@ export const ReadReplicas = ({
diff --git a/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/UsePreparedStatements.tsx b/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/UsePreparedStatements.tsx index 26ddd0c2702..e82715e0ec9 100644 --- a/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/UsePreparedStatements.tsx +++ b/frontend/libs/console/legacy-ce/src/lib/features/ConnectDBRedesign/components/ConnectPostgresWidget/parts/UsePreparedStatements.tsx @@ -3,7 +3,7 @@ import { BooleanInput } from './BooleanInput'; export const UsePreparedStatements = ({ name }: { name: string }) => { return ( diff --git a/frontend/libs/console/legacy-ce/src/lib/features/hasura-metadata-types/source/index.ts b/frontend/libs/console/legacy-ce/src/lib/features/hasura-metadata-types/source/index.ts index f90eb596602..28040bcb8c3 100644 --- a/frontend/libs/console/legacy-ce/src/lib/features/hasura-metadata-types/source/index.ts +++ b/frontend/libs/console/legacy-ce/src/lib/features/hasura-metadata-types/source/index.ts @@ -1,4 +1,9 @@ export * from './source'; export * from './table'; export * from './relationships'; -export type { PostgresConfiguration } from './configuration'; +export { + PostgresConfiguration, + MssqlConfiguration, + BigQueryConfiguration, + CitusConfiguration, +} from './configuration';