Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: improve Plan Options UI alignment (#17473)

boojackb380b75c2325
diff --git a/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue b/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue
index e7b398bf2a..414405363b 100644
--- a/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue
@@ -1,7 +1,8 @@
<template>
<div class="flex flex-col items-start gap-1">
<div class="w-full flex items-center gap-3">
- <div class="flex items-center min-w-24">
+ <GhostSwitch />
+ <div class="flex items-center gap-1">
<label class="text-sm text-main">
{{ $t("task.online-migration.self") }}
</label>
@@ -28,7 +29,6 @@
</template>
</NTooltip>
</div>
- <GhostSwitch />
<NButton
v-if="enabled && allowChange"
tag="div"
diff --git a/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSection.vue b/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSection.vue
index 2cb44e7b1c..89931de333 100644
--- a/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSection.vue
@@ -1,6 +1,6 @@
<template>
<div class="w-full flex items-center gap-3">
- <div class="flex items-center min-w-24">
+ <div class="flex items-center gap-1">
<label class="text-sm text-main">
{{ $t("common.role.self") }}
</label>
diff --git a/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/context.ts b/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/context.ts
index e8574a9916..bc4aeac0d0 100644
--- a/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/context.ts
+++ b/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/context.ts
@@ -69,6 +69,7 @@ export const provideInstanceRoleSettingContext = (refs: {
return [
Plan_ChangeDatabaseConfig_Type.DATA,
Plan_ChangeDatabaseConfig_Type.MIGRATE,
+ Plan_ChangeDatabaseConfig_Type.MIGRATE_GHOST,
].includes(selectedSpec.value.config.value.type);
});
diff --git a/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSection.vue b/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSection.vue
index 79e4069f19..6cce0d4089 100644
--- a/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSection.vue
@@ -1,6 +1,6 @@
<template>
<div v-if="shouldShowCombined" class="w-full flex items-center gap-3">
- <div class="flex items-center min-w-24">
+ <div class="flex items-center gap-1">
<label class="text-sm text-main">
{{ $t("plan.isolation-level.self") }}
</label>
diff --git a/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/context.ts b/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/context.ts
index 3c98abc664..b49dc1e711 100644
--- a/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/context.ts
+++ b/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/context.ts
@@ -75,6 +75,7 @@ export const provideIsolationLevelSettingContext = (refs: {
return [
Plan_ChangeDatabaseConfig_Type.DATA,
Plan_ChangeDatabaseConfig_Type.MIGRATE,
+ Plan_ChangeDatabaseConfig_Type.MIGRATE_GHOST,
].includes(selectedSpec.value.config.value.type);
});
diff --git a/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSection.vue b/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSection.vue
index 4ebcf5c9b1..ec35cbef1c 100644
--- a/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSection.vue
@@ -1,6 +1,7 @@
<template>
<div class="w-full flex items-center gap-3">
- <div class="flex items-center min-w-24">
+ <PreBackupSwitch />
+ <div class="flex items-center gap-1">
<label class="text-sm text-main">
{{ $t("task.prior-backup") }}
</label>
@@ -17,7 +18,6 @@
</template>
</NTooltip>
</div>
- <PreBackupSwitch />
</div>
</template>
diff --git a/frontend/src/components/Plan/components/Configuration/TransactionModeSection/TransactionModeSection.vue b/frontend/src/components/Plan/components/Configuration/TransactionModeSection/TransactionModeSection.vue
index 735dc15d5c..f390a56a67 100644
--- a/frontend/src/components/Plan/components/Configuration/TransactionModeSection/TransactionModeSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/TransactionModeSection/TransactionModeSection.vue
@@ -1,6 +1,7 @@
<template>
<div class="w-full flex items-center gap-3">
- <div class="flex items-center min-w-24">
+ <TransactionModeSwitch />
+ <div class="flex items-center gap-1">
<label class="text-sm text-main">
{{ $t("issue.transaction-mode.label") }}
</label>
@@ -25,7 +26,6 @@
</template>
</NTooltip>
</div>
- <TransactionModeSwitch />
</div>
</template>
diff --git a/frontend/src/components/Plan/components/Configuration/TransactionModeSection/context.ts b/frontend/src/components/Plan/components/Configuration/TransactionModeSection/context.ts
index 3dcedc0a95..2d79f3942f 100644
--- a/frontend/src/components/Plan/components/Configuration/TransactionModeSection/context.ts
+++ b/frontend/src/components/Plan/components/Configuration/TransactionModeSection/context.ts
@@ -68,6 +68,7 @@ export const provideTransactionModeSettingContext = (refs: {
return [
Plan_ChangeDatabaseConfig_Type.DATA,
Plan_ChangeDatabaseConfig_Type.MIGRATE,
+ Plan_ChangeDatabaseConfig_Type.MIGRATE_GHOST,
].includes(selectedSpec.value.config.value.type);
});