chore: update codegen config for enum naming convention (#9751)
Co-authored-by: etiennejouan <jouan.etienne@gmail.com>
This commit is contained in:
@ -23,7 +23,7 @@ export const SettingsIntegrationRemoteTableSyncStatusToggle = ({
|
||||
|
||||
return (
|
||||
<Toggle
|
||||
value={tableStatus === RemoteTableStatus.Synced}
|
||||
value={tableStatus === RemoteTableStatus.SYNCED}
|
||||
disabled={isToggleLoading}
|
||||
onChange={onChange}
|
||||
/>
|
||||
|
||||
@ -25,7 +25,7 @@ export const SettingsIntegrationDatabaseConnectionSyncStatus = ({
|
||||
}
|
||||
|
||||
const syncedTables = tables.filter(
|
||||
(table) => table.status === RemoteTableStatus.Synced,
|
||||
(table) => table.status === RemoteTableStatus.SYNCED,
|
||||
);
|
||||
|
||||
const updatesAvailable = tables.some(
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { useCallback } from 'react';
|
||||
import styled from '@emotion/styled';
|
||||
import { useCallback } from 'react';
|
||||
import { z } from 'zod';
|
||||
|
||||
import { useSyncRemoteTable } from '@/databases/hooks/useSyncRemoteTable';
|
||||
@ -36,19 +36,19 @@ const StyledRowRightContainer = styled.div`
|
||||
const getDistantTableUpdatesText = (
|
||||
schemaPendingUpdates: DistantTableUpdate[],
|
||||
) => {
|
||||
if (schemaPendingUpdates.includes(DistantTableUpdate.TableDeleted)) {
|
||||
if (schemaPendingUpdates.includes(DistantTableUpdate.TABLE_DELETED)) {
|
||||
return 'Table has been deleted';
|
||||
}
|
||||
if (
|
||||
schemaPendingUpdates.includes(DistantTableUpdate.ColumnsAdded) &&
|
||||
schemaPendingUpdates.includes(DistantTableUpdate.ColumnsDeleted)
|
||||
schemaPendingUpdates.includes(DistantTableUpdate.COLUMNS_ADDED) &&
|
||||
schemaPendingUpdates.includes(DistantTableUpdate.COLUMNS_DELETED)
|
||||
) {
|
||||
return 'Columns have been added and other deleted';
|
||||
}
|
||||
if (schemaPendingUpdates.includes(DistantTableUpdate.ColumnsAdded)) {
|
||||
if (schemaPendingUpdates.includes(DistantTableUpdate.COLUMNS_ADDED)) {
|
||||
return 'Columns have been added';
|
||||
}
|
||||
if (schemaPendingUpdates.includes(DistantTableUpdate.ColumnsDeleted)) {
|
||||
if (schemaPendingUpdates.includes(DistantTableUpdate.COLUMNS_DELETED)) {
|
||||
return 'Columns have been deleted';
|
||||
}
|
||||
return null;
|
||||
|
||||
@ -61,7 +61,7 @@ export const SettingsIntegrationEditDatabaseConnectionContent = ({
|
||||
);
|
||||
|
||||
const hasSyncedTables = tables?.some(
|
||||
(table) => table?.status === RemoteTableStatus.Synced,
|
||||
(table) => table?.status === RemoteTableStatus.SYNCED,
|
||||
);
|
||||
|
||||
const { isDirty, isValid } = formConfig.formState;
|
||||
|
||||
@ -6,7 +6,7 @@ const getFeatureKey = (databaseKey: string): FeatureFlagKey | null => {
|
||||
case 'airtable':
|
||||
return FeatureFlagKey.IsAirtableIntegrationEnabled;
|
||||
case 'postgresql':
|
||||
return FeatureFlagKey.IsPostgreSqlIntegrationEnabled;
|
||||
return FeatureFlagKey.IsPostgreSQLIntegrationEnabled;
|
||||
case 'stripe':
|
||||
return FeatureFlagKey.IsStripeIntegrationEnabled;
|
||||
default:
|
||||
|
||||
@ -17,7 +17,7 @@ export const useSettingsIntegrationCategories =
|
||||
)?.isActive;
|
||||
|
||||
const isPostgresqlIntegrationEnabled = useIsFeatureEnabled(
|
||||
FeatureFlagKey.IsPostgreSqlIntegrationEnabled,
|
||||
FeatureFlagKey.IsPostgreSQLIntegrationEnabled,
|
||||
);
|
||||
const isPostgresqlIntegrationActive = !!MOCK_REMOTE_DATABASES.find(
|
||||
({ name }) => name === 'postgresql',
|
||||
|
||||
Reference in New Issue
Block a user