Skip to content

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

refactor(frontend): standardize plan sidebar layout and configuration UI (#18208)

boojack6f11fa82d4e5
diff --git a/frontend/src/components/Plan/components/Configuration/Configuration.vue b/frontend/src/components/Plan/components/Configuration/Configuration.vue
index 8cb7f3aec3..6a95058568 100644
--- a/frontend/src/components/Plan/components/Configuration/Configuration.vue
+++ b/frontend/src/components/Plan/components/Configuration/Configuration.vue
@@ -1,17 +1,16 @@
<template>
- <div v-if="shouldShow" class="w-full">
- <div class="mb-4">
- <h3 class="text-lg font-medium text-main">
- {{ $t("plan.options.self") }}
- </h3>
- </div>
- <div class="flex flex-col gap-y-4 w-full">
+ <div class="py-3 flex flex-col gap-y-3">
+ <h3 class="text-base">{{ $t("plan.options.self") }}</h3>
+ <div v-if="shouldShow" class="flex flex-col gap-y-3">
<InstanceRoleSection v-if="shouldShowInstanceRoleSection" />
<TransactionModeSection v-if="shouldShowTransactionModeSection" />
<IsolationLevelSection v-if="shouldShowIsolationLevelSection" />
<PreBackupSection v-if="shouldShowPreBackupSection" />
<GhostSection v-if="shouldShowGhostSection" />
</div>
+ <div v-else class="text-sm text-control-light">
+ {{ $t("plan.options.no-options-available") }}
+ </div>
</div>
</template>
diff --git a/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue b/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue
index 462a13e30b..d8186f6c31 100644
--- a/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/GhostSection/GhostSection.vue
@@ -1,32 +1,24 @@
<template>
- <div class="flex flex-col items-start gap-1">
- <div class="w-full flex items-center justify-between gap-3">
- <div class="flex items-center gap-1">
- <label class="text-sm text-main">
- {{ $t("task.online-migration.self") }}
- </label>
- <NTooltip>
- <template #trigger>
- <heroicons:information-circle
- class="w-4 h-4 text-control-light cursor-help"
+ <div class="flex flex-col gap-1">
+ <OptionRow>
+ <template #label>
+ {{ $t("task.online-migration.self") }}
+ </template>
+ <template #tooltip>
+ <i18n-t
+ tag="p"
+ keypath="issue.migration-mode.online.description"
+ class="whitespace-pre-line"
+ >
+ <template #link>
+ <LearnMoreLink
+ url="https://docs.bytebase.com/change-database/online-schema-migration-for-mysql?source=console"
+ color="light"
/>
</template>
- <template #default>
- <i18n-t
- tag="p"
- keypath="issue.migration-mode.online.description"
- class="whitespace-pre-line max-w-xs"
- >
- <template #link>
- <!-- TODO: update docs for mariadb -->
- <LearnMoreLink
- url="https://docs.bytebase.com/change-database/online-schema-migration-for-mysql?source=console"
- color="light"
- />
- </template>
- </i18n-t>
- </template>
- </NTooltip>
+ </i18n-t>
+ </template>
+ <template #suffix>
<NButton
v-if="enabled && allowChange"
tag="div"
@@ -37,13 +29,11 @@
<template #icon>
<WrenchIcon class="w-4 h-4" />
</template>
- <template #default>
- {{ $t("task.online-migration.configure") }}
- </template>
+ {{ $t("task.online-migration.configure") }}
</NButton>
- </div>
+ </template>
<GhostSwitch />
- </div>
+ </OptionRow>
<GhostFlagsPanel
:show="showFlagsPanel"
@@ -54,9 +44,10 @@
<script lang="ts" setup>
import { WrenchIcon } from "lucide-vue-next";
-import { NButton, NTooltip } from "naive-ui";
+import { NButton } from "naive-ui";
import { ref } from "vue";
import LearnMoreLink from "@/components/LearnMoreLink.vue";
+import OptionRow from "../OptionRow.vue";
import { useGhostSettingContext } from "./context";
import GhostFlagsPanel from "./GhostFlagsPanel.vue";
import GhostSwitch from "./GhostSwitch.vue";
diff --git a/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSection.vue b/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSection.vue
index da7df31344..c8eadbcbc7 100644
--- a/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSection.vue
@@ -1,37 +1,26 @@
<template>
- <div class="w-full flex items-center justify-between gap-3">
- <div class="flex items-center gap-1">
- <label class="text-sm text-main">
- {{ $t("common.role.self") }}
- </label>
- <NTooltip>
- <template #trigger>
- <heroicons:information-circle
- class="w-4 h-4 text-control-light cursor-help"
- />
- </template>
- <template #default>
- <div class="max-w-xs">
- <div class="flex flex-col gap-y-1">
- <p class="font-medium">
- {{ $t("plan.spec.role-selection.title") }}
- </p>
- <p class="text-sm">
- {{ $t("plan.spec.role-selection.description") }}
- </p>
- <p class="text-xs text-gray-400">
- {{ $t("plan.spec.role-selection.technical-note") }}
- </p>
- </div>
- </div>
- </template>
- </NTooltip>
- </div>
+ <OptionRow>
+ <template #label>
+ {{ $t("common.role.self") }}
+ </template>
+ <template #tooltip>
+ <div class="flex flex-col gap-y-1">
+ <p class="font-medium">
+ {{ $t("plan.spec.role-selection.title") }}
+ </p>
+ <p class="text-sm">
+ {{ $t("plan.spec.role-selection.description") }}
+ </p>
+ <p class="text-xs text-gray-400">
+ {{ $t("plan.spec.role-selection.technical-note") }}
+ </p>
+ </div>
+ </template>
<InstanceRoleSelect />
- </div>
+ </OptionRow>
</template>
<script lang="ts" setup>
-import { NTooltip } from "naive-ui";
+import OptionRow from "../OptionRow.vue";
import InstanceRoleSelect from "./InstanceRoleSelect.vue";
</script>
diff --git a/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSelect.vue b/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSelect.vue
index e090894066..a4bb46377f 100644
--- a/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSelect.vue
+++ b/frontend/src/components/Plan/components/Configuration/InstanceRoleSection/InstanceRoleSelect.vue
@@ -1,14 +1,14 @@
<template>
<NSelect
v-model:value="selectedRole"
- class="w-40!"
- consistent-menu-width
+ class="w-36!"
size="small"
:options="options"
:placeholder="$t('instance.select-database-user')"
:filterable="true"
:virtual-scroll="true"
:fallback-option="false"
+ :consistent-menu-width="false"
:clearable="true"
:disabled="!allowChange"
:loading="loading"
diff --git a/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSection.vue b/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSection.vue
index 87b9504ee0..08b2b85877 100644
--- a/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSection.vue
@@ -1,32 +1,18 @@
<template>
- <div
- v-if="shouldShowCombined"
- class="w-full flex items-center justify-between gap-3"
- >
- <div class="flex items-center gap-1">
- <label class="text-sm text-main">
- {{ $t("plan.isolation-level.self") }}
- </label>
- <NTooltip>
- <template #trigger>
- <heroicons:information-circle
- class="w-4 h-4 text-control-light cursor-help"
- />
- </template>
- <template #default>
- <div class="max-w-xs">
- {{ $t("plan.isolation-level.self") }}
- </div>
- </template>
- </NTooltip>
- </div>
+ <OptionRow v-if="shouldShowCombined">
+ <template #label>
+ {{ $t("plan.isolation-level.self") }}
+ </template>
+ <template #tooltip>
+ {{ $t("plan.isolation-level.description") }}
+ </template>
<IsolationLevelSelect />
- </div>
+ </OptionRow>
</template>
<script lang="ts" setup>
-import { NTooltip } from "naive-ui";
import { computed } from "vue";
+import OptionRow from "../OptionRow.vue";
import { useTransactionModeSettingContext } from "../TransactionModeSection/context";
import { useIsolationLevelSettingContext } from "./context";
import IsolationLevelSelect from "./IsolationLevelSelect.vue";
diff --git a/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSelect.vue b/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSelect.vue
index 9830a70910..39bd119e76 100644
--- a/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSelect.vue
+++ b/frontend/src/components/Plan/components/Configuration/IsolationLevelSection/IsolationLevelSelect.vue
@@ -1,11 +1,14 @@
<template>
<NSelect
v-model:value="selectedIsolation"
- class="w-60!"
- consistent-menu-width
+ class="w-36!"
size="small"
:options="options"
:placeholder="$t('plan.select-isolation-level')"
+ :filterable="true"
+ :virtual-scroll="true"
+ :fallback-option="false"
+ :consistent-menu-width="false"
:clearable="true"
:disabled="!allowChange"
/>
diff --git a/frontend/src/components/Plan/components/Configuration/OptionRow.vue b/frontend/src/components/Plan/components/Configuration/OptionRow.vue
new file mode 100644
index 0000000000..a9f666be78
--- /dev/null
+++ b/frontend/src/components/Plan/components/Configuration/OptionRow.vue
@@ -0,0 +1,29 @@
+<template>
+ <div class="flex items-center justify-between gap-3">
+ <!-- Left: Label + Tooltip -->
+ <div class="flex items-center gap-1">
+ <label class="text-sm text-main whitespace-nowrap">
+ <slot name="label" />
+ </label>
+ <NTooltip v-if="$slots.tooltip">
+ <template #trigger>
+ <heroicons:information-circle
+ class="w-4 h-4 text-control-light cursor-help"
+ />
+ </template>
+ <template #default>
+ <div class="max-w-xs">
+ <slot name="tooltip" />
+ </div>
+ </template>
+ </NTooltip>
+ <slot name="suffix" />
+ </div>
+ <!-- Right: Value (switch/selector) -->
+ <slot />
+ </div>
+</template>
+
+<script lang="ts" setup>
+import { NTooltip } from "naive-ui";
+</script>
diff --git a/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSection.vue b/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSection.vue
index a61cfac24d..4ee9f76028 100644
--- a/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/PreBackupSection/PreBackupSection.vue
@@ -1,27 +1,16 @@
<template>
- <div class="w-full flex items-center justify-between gap-3">
- <div class="flex items-center gap-1">
- <label class="text-sm text-main">
- {{ $t("task.prior-backup") }}
- </label>
- <NTooltip>
- <template #trigger>
- <heroicons:information-circle
- class="w-4 h-4 text-control-light cursor-help"
- />
- </template>
- <template #default>
- <div class="max-w-xs">
- {{ $t("task.prior-backup-tips") }}
- </div>
- </template>
- </NTooltip>
- </div>
+ <OptionRow>
+ <template #label>
+ {{ $t("task.prior-backup") }}
+ </template>
+ <template #tooltip>
+ {{ $t("task.prior-backup-tips") }}
+ </template>
<PreBackupSwitch />
- </div>
+ </OptionRow>
</template>
<script lang="ts" setup>
-import { NTooltip } from "naive-ui";
+import OptionRow from "../OptionRow.vue";
import PreBackupSwitch from "./PreBackupSwitch.vue";
</script>
diff --git a/frontend/src/components/Plan/components/Configuration/TransactionModeSection/TransactionModeSection.vue b/frontend/src/components/Plan/components/Configuration/TransactionModeSection/TransactionModeSection.vue
index 73a28df16d..754ed16ddf 100644
--- a/frontend/src/components/Plan/components/Configuration/TransactionModeSection/TransactionModeSection.vue
+++ b/frontend/src/components/Plan/components/Configuration/TransactionModeSection/TransactionModeSection.vue
@@ -1,36 +1,27 @@
<template>
- <div class="w-full flex items-center justify-between gap-3">
- <div class="flex items-center gap-1">
- <label class="text-sm text-main">
- {{ $t("issue.transaction-mode.label") }}
- </label>
- <NTooltip>
- <template #trigger>
- <heroicons:information-circle
- class="w-4 h-4 text-control-light cursor-help"
- />
- </template>
- <template #default>
- <div class="max-w-xs flex flex-col gap-y-1">
- <div v-if="transactionMode === 'on'">
- {{ $t("issue.transaction-mode.on-tooltip") }}
- </div>
- <div v-else>
- {{ $t("issue.transaction-mode.off-tooltip") }}
- </div>
- <div class="text-sm text-gray-400">
- {{ $t("issue.transaction-mode.execution-order-note") }}
- </div>
- </div>
- </template>
- </NTooltip>
- </div>
+ <OptionRow>
+ <template #label>
+ {{ $t("issue.transaction-mode.label") }}
+ </template>
+ <template #tooltip>
+ <div class="flex flex-col gap-y-1">
+ <div v-if="transactionMode === 'on'">
+ {{ $t("issue.transaction-mode.on-tooltip") }}
+ </div>
+ <div v-else>
+ {{ $t("issue.transaction-mode.off-tooltip") }}
+ </div>
+ <div class="text-sm text-gray-400">
+ {{ $t("issue.transaction-mode.execution-order-note") }}
+ </div>
+ </div>
+ </template>
<TransactionModeSwitch />
- </div>
+ </OptionRow>
</template>
<script lang="ts" setup>
-import { NTooltip } from "naive-ui";
+import OptionRow from "../OptionRow.vue";
import { useTransactionModeSettingContext } from "./context";
import TransactionModeSwitch from "./TransactionModeSwitch.vue";
diff --git a/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue b/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue
index 105a5a16c4..1b0b12dd84 100644
--- a/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue
+++ b/frontend/src/components/Plan/components/PlanCheckSection/PlanCheckSection.vue
@@ -1,33 +1,14 @@
<template>
- <div v-if="shouldShow" class="py-3 flex flex-col gap-y-1 overflow-hidden">
+ <div v-if="shouldShow" class="py-3 flex flex-col gap-y-2 overflow-hidden">
+ <!-- Row 1: Title + Run button -->
<div class="flex items-center justify-between gap-2">
- <div class="flex items-center gap-2">
+ <div class="flex flex-row items-center gap-2">
<h3 class="text-base">{{ $t("plan.checks.self") }}</h3>
-
- <NTooltip v-if="checksOfSelectedSpec.length > 0 && affectedRows > 0">
- <template #trigger>
- <NTag round :bordered="false">
- <div class="flex items-center gap-1">
- <span class="text-sm text-control-light">{{
- $t("task.check-type.affected-rows.self")
- }}</span>
- <span class="text-sm">
- {{ affectedRows }}
- </span>
- <CircleQuestionMarkIcon
- class="size-[14px] text-control-light opacity-80"
- />
- </div>
- </NTag>
- </template>
- {{ $t("task.check-type.affected-rows.description") }}
- </NTooltip>
-
<NTooltip v-if="isStatementOversized">
<template #trigger>
- <NTag type="warning" round>
+ <NTag type="warning" round size="tiny">
<template #icon>
- <CircleQuestionMarkIcon class="size-4" />
+ <CircleQuestionMarkIcon class="size-3" />
</template>
{{ $t("common.skipped") }}
</NTag>
@@ -35,28 +16,46 @@
{{ $t("issue.sql-check.statement-is-too-large") }}
</NTooltip>
</div>
+ <NButton
+ v-if="allowRunChecks"
+ size="tiny"
+ :loading="isRunningChecks"
+ @click="runChecks"
+ >
+ <template #icon>
+ <PlayIcon class="w-4 h-4" />
+ </template>
+ {{ $t("common.run") }}
+ </NButton>
+ </div>
- <div class="flex items-center gap-2">
- <!-- Status Summary -->
- <PlanCheckStatusCount
- :plan="plan"
- clickable
- @click="openChecksDrawer($event)"
- />
-
- <!-- Run Checks Button -->
- <NButton
- v-if="allowRunChecks"
- size="small"
- :loading="isRunningChecks"
- @click="runChecks"
- >
- <template #icon>
- <PlayIcon class="w-4 h-4" />
- </template>
- {{ $t("task.run-checks") }}
- </NButton>
- </div>
+ <!-- Row 2: Status badges -->
+ <div class="flex items-center flex-wrap gap-2 min-w-0">
+ <PlanCheckStatusCount
+ :plan="plan"
+ :show-label="true"
+ clickable
+ @click="openChecksDrawer($event)"
+ />
+
+ <NTooltip v-if="checksOfSelectedSpec.length > 0 && affectedRows > 0">
+ <template #trigger>
+ <NTag round :bordered="false">
+ <div class="flex items-center gap-1">
+ <span class="text-sm text-control-light">{{
+ $t("task.check-type.affected-rows.self")
+ }}</span>
+ <span class="text-sm">
+ {{ affectedRows }}
+ </span>
+ <CircleQuestionMarkIcon
+ class="size-[14px] text-control-light opacity-80"
+ />
+ </div>
+ </NTag>
+ </template>
+ {{ $t("task.check-type.affected-rows.description") }}
+ </NTooltip>
</div>
<ChecksDrawer
diff --git a/frontend/src/components/Plan/components/PlanCheckStatusCount.vue b/frontend/src/components/Plan/components/PlanCheckStatusCount.vue
index c029b1ec01..611f9fbf84 100644
--- a/frontend/src/components/Plan/components/PlanCheckStatusCount.vue
+++ b/frontend/src/components/Plan/components/PlanCheckStatusCount.vue
@@ -5,7 +5,7 @@
</template>
<!-- Default display mode: show all status counts with icons -->
<template v-else>
- <div class="flex items-center gap-3">
+ <div class="flex items-center gap-3 flex-wrap">
<div
v-if="statusSummary.running > 0"
class="flex items-center gap-1 text-control"
diff --git a/frontend/src/components/Plan/components/SQLCheckV1Section/SQLCheckV1Section.vue b/frontend/src/components/Plan/components/SQLCheckV1Section/SQLCheckV1Section.vue
index 45935e3f62..9755e77aea 100644
--- a/frontend/src/components/Plan/components/SQLCheckV1Section/SQLCheckV1Section.vue
+++ b/frontend/src/components/Plan/components/SQLCheckV1Section/SQLCheckV1Section.vue
@@ -1,68 +1,73 @@
<template>
- <div v-if="show" class="py-3 flex flex-col gap-y-1 overflow-hidden">
+ <div v-if="show" class="py-3 flex flex-col gap-y-2 overflow-hidden">
+ <!-- Row 1: Title + Run button -->
<div class="flex items-center justify-between gap-2">
- <div class="flex items-center gap-2">
- <h3 class="text-base font-medium">{{ $t("plan.checks.self") }}</h3>
+ <div class="flex flex-row items-center gap-2">
+ <h3 class="text-base">{{ $t("plan.checks.self") }}</h3>
+ </div>
+ <NButton
+ size="tiny"
+ :loading="isRunningChecks"
+ :disabled="statement.length === 0"
+ @click="runChecks"
+ >
+ <template #icon>
+ <PlayIcon class="w-4 h-4" />
+ </template>
+ {{ $t("common.run") }}
+ </NButton>
+ </div>
- <NTooltip v-if="checkResults && affectedRows > 0">
- <template #trigger>
- <NTag round :bordered="false">
- <span class="text-sm text-control-light mr-1">{{
+ <!-- Row 2: Status badges -->
+ <div class="flex items-center flex-wrap gap-3 text-sm min-w-0">
+ <button
+ v-if="summary.error > 0"
+ class="flex items-center gap-1 hover:opacity-80"
+ @click="openDrawer('ERROR')"
+ >
+ <XCircleIcon class="w-4 h-4 text-error" />
+ <span class="text-error">{{ $t("common.error") }}</span>
+ <span class="text-error font-medium">{{ summary.error }}</span>
+ </button>
+ <button
+ v-if="summary.warning > 0"
+ class="flex items-center gap-1 hover:opacity-80"
+ @click="openDrawer('WARNING')"
+ >
+ <AlertCircleIcon class="w-4 h-4 text-warning" />
+ <span class="text-warning">{{ $t("common.warning") }}</span>
+ <span class="text-warning font-medium">{{ summary.warning }}</span>
+ </button>
+ <span
+ v-if="
+ !isNullOrUndefined(checkResults) &&
+ summary.error === 0 &&
+ summary.warning === 0
+ "
+ class="flex items-center gap-1"
+ >
+ <CheckCircleIcon class="w-4 h-4 text-success" />
+ <span class="text-success">{{ $t("common.success") }}</span>
+ </span>
+
+ <NTooltip v-if="checkResults && affectedRows > 0">
+ <template #trigger>
+ <NTag round :bordered="false">
+ <div class="flex items-center gap-1">
+ <span class="text-sm text-control-light">{{
$t("task.check-type.affected-rows.self")
}}</span>
- <span class="text-sm font-medium">
+ <span class="text-sm">
{{ affectedRows }}
</span>
- </NTag>
- </template>
- {{ $t("task.check-type.affected-rows.description") }}
- </NTooltip>
- </div>
-
- <div class="flex items-center gap-4">
- <!-- Status Summary -->
- <div class="flex items-center gap-2 text-sm">
- <button
- v-if="summary.error > 0"
- class="flex items-center gap-1 hover:opacity-80"
- @click="openDrawer('ERROR')"
- >
- <XCircleIcon class="w-5 h-5 text-error" />
- <span class="text-error font-medium">{{ summary.error }}</span>
- </button>
- <button
- v-if="summary.warning > 0"
- class="flex items-center gap-1 hover:opacity-80"
- @click="openDrawer('WARNING')"
- >
- <AlertCircleIcon class="w-5 h-5 text-warning" />
- <span class="text-warning font-medium">{{ summary.warning }}</span>
- </button>
- <span
- v-if="
- !isNullOrUndefined(checkResults) &&
- summary.error === 0 &&
- summary.warning === 0
- "
- class="flex items-center"
- >
- <CheckCircleIcon class="w-5 h-5 text-success" />
- </span>
- </div>
-
- <!-- Run Checks Button -->
- <NButton
- size="small"
- :loading="isRunningChecks"
- :disabled="statement.length === 0"
- @click="runChecks"
- >
- <template #icon>
- <PlayIcon class="w-4 h-4" />
- </template>
- {{ $t("task.run-checks") }}
- </NButton>
- </div>
+ <CircleQuestionMarkIcon
+ class="size-3.5 text-control-light opacity-80"
+ />
+ </div>
+ </NTag>
+ </template>
+ {{ $t("task.check-type.affected-rows.description") }}
+ </NTooltip>
</div>
<!-- Checks Drawer -->
@@ -86,6 +91,7 @@ import { create } from "@bufbuild/protobuf";
import {
AlertCircleIcon,
CheckCircleIcon,
+ CircleQuestionMarkIcon,
PlayIcon,
XCircleIcon,
} from "lucide-vue-next";
diff --git a/frontend/src/components/Plan/components/SpecDetailView/SpecDetailView.vue b/frontend/src/components/Plan/components/SpecDetailView/SpecDetailView.vue
index 919eefbd63..4571d7a789 100644
--- a/frontend/src/components/Plan/components/SpecDetailView/SpecDetailView.vue
+++ b/frontend/src/components/Plan/components/SpecDetailView/SpecDetailView.vue
@@ -1,16 +1,26 @@
<template>
<div class="w-full flex-1 flex flex-col">
<SpecListSection v-if="shouldShowSpecList" />
- <div class="w-full flex-1 flex flex-col px-4 divide-y overflow-x-auto">
- <TargetListSection />
- <DataExportOptionsSection v-if="isDataExportPlan" />
- <FailedTaskRunsSection v-if="!isCreating && rollout" />
- <template v-if="!specHasRelease">
- <SQLCheckV1Section v-if="isCreating" />
- <PlanCheckSection v-else />
- </template>
- <div class="w-full flex-1 gap-y-3 py-3 flex flex-col">
- <StatementSection />
+ <div
+ class="w-full flex-1 flex flex-col lg:flex-row px-4 gap-4 overflow-hidden"
+ >
+ <!-- Left: Targets + Statement -->
+ <div class="flex-1 flex flex-col min-w-0 overflow-y-auto">
+ <TargetListSection />
+ <DataExportOptionsSection v-if="isDataExportPlan" />
+ <FailedTaskRunsSection v-if="!isCreating && rollout" />
+ <div class="flex-1 py-3 flex flex-col">
+ <StatementSection />
+ </div>
+ </div>
+ <!-- Right: Checks + Options -->
+ <div
+ class="lg:w-80 shrink-0 flex flex-col divide-y lg:border-l lg:pl-4 overflow-y-auto"
+ >
+ <template v-if="!specHasRelease">
+ <SQLCheckV1Section v-if="isCreating" />
+ <PlanCheckSection v-else />
+ </template>
<Configuration />
</div>
</div>
diff --git a/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue b/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue
index 6a1c03f83e..cd14689c18 100644
--- a/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue
+++ b/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue
@@ -113,7 +113,7 @@
</template>
</BBAttention>
- <div class="relative flex-1 min-h-[200px] max-h-[50vh]">
+ <div class="relative flex-1 min-h-[256px]">
<MonacoEditor
class="w-full h-full min-h-[200px] border rounded-sm overflow-hidden"
:filename="filename"
diff --git a/frontend/src/components/Plan/components/StatementSection/StatementSection.vue b/frontend/src/components/Plan/components/StatementSection/StatementSection.vue
index a03f8cc303..41a3ce6520 100644
--- a/frontend/src/components/Plan/components/StatementSection/StatementSection.vue
+++ b/frontend/src/components/Plan/components/StatementSection/StatementSection.vue
@@ -1,5 +1,5 @@
<template>
- <div v-if="viewMode === 'EDITOR'" class="flex-1 max-h-[50vh]">
+ <div v-if="viewMode === 'EDITOR'" class="flex-1">
<EditorView :key="editorViewKey" />
</div>
<ReleaseView v-else-if="viewMode === 'RELEASE'" />
diff --git a/frontend/src/components/Plan/logic/sidebar.ts b/frontend/src/components/Plan/logic/sidebar.ts
index a19379831c..922fcfd04e 100644
--- a/frontend/src/components/Plan/logic/sidebar.ts
+++ b/frontend/src/components/Plan/logic/sidebar.ts
@@ -35,7 +35,7 @@ export const provideSidebarContext = (
const desktopSidebarWidth = computed(() => {
const cw = containerWidth.value;
if (cw < 1280) return 240;
- return 320;
+ return 336;
});
const mobileSidebarOpen = ref(false);
const context: SidebarContext = {
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 001e87d718..0bfc2d71e1 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -1169,13 +1169,15 @@
},
"select-isolation-level": "Select isolation level",
"isolation-level": {
- "self": "Isolation Level"
+ "self": "Isolation Level",
+ "description": "Controls how transactions interact with concurrent changes. Only applicable when Transaction Mode is ON."
},
"options": {
"self": "Options",
"applies-to-all-tasks": "Applies to all tasks",
"applies-to-some-tasks": "Applies to some tasks {count}/{total}",
- "split-into-multiple-issues-tip": "If you want to configure different options for each task, please split into multiple issues."
+ "split-into-multiple-issues-tip": "If you want to configure different options for each task, please split into multiple issues.",
+ "no-options-available": "No options available"
},
"editor": {
"save-changes-before-continuing": "Please save or cancel your changes before continuing",
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index 30380de0fe..ee67130d7b 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -1169,13 +1169,15 @@
},
"select-isolation-level": "Seleccionar nivel de aislamiento",
"isolation-level": {
- "self": "Nivel de Aislamiento"
+ "self": "Nivel de Aislamiento",
+ "description": "Controla cómo las transacciones interactúan con cambios concurrentes. Solo aplica cuando el Modo de Transacción está activado."
},
"options": {
"self": "Opciones",
"applies-to-all-tasks": "Se aplica a todas las tareas.",
"applies-to-some-tasks": "Se aplica a algunas tareas {count}/{total}",
- "split-into-multiple-issues-tip": "Si desea configurar diferentes opciones para cada tarea, divídala en varios problemas."
+ "split-into-multiple-issues-tip": "Si desea configurar diferentes opciones para cada tarea, divídala en varios problemas.",
+ "no-options-available": "No hay opciones disponibles"
},
"editor": {
"save-changes-before-continuing": "Guarde o cancele sus cambios antes de continuar.",
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index d0e88c317b..15e1793689 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -1169,13 +1169,15 @@
},
"select-isolation-level": "分離レベルを選択",
"isolation-level": {
- "self": "分離レベル"
+ "self": "分離レベル",
+ "description": "トランザクションが並行変更とどのように相互作用するかを制御します。トランザクションモードがオンの場合のみ適用されます。"
},
"options": {
"self": "オプション",
"applies-to-all-tasks": "すべてのタスクに適用",
"applies-to-some-tasks": "一部のタスクに適用されます {count}/{total}",
- "split-into-multiple-issues-tip": "タスクごとに異なるオプションを設定する場合は、複数の問題に分割してください。"
+ "split-into-multiple-issues-tip": "タスクごとに異なるオプションを設定する場合は、複数の問題に分割してください。",
+ "no-options-available": "利用可能なオプションはありません"
},
"editor": {
"save-changes-before-continuing": "続行する前に変更を保存またはキャンセルしてください",
diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.json
index f5874852c9..48637ee7bc 100644
--- a/frontend/src/locales/vi-VN.json
+++ b/frontend/src/locales/vi-VN.json
@@ -1169,13 +1169,15 @@
},
"select-isolation-level": "Chọn mức độ cô lập",
"isolation-level": {
- "self": "Mức Độ Cô Lập"
+ "self": "Mức Độ Cô Lập",
+ "description": "Kiểm soát cách các giao dịch tương tác với các thay đổi đồng thời. Chỉ áp dụng khi Chế độ Giao dịch được bật."
},
"options": {
"self": "Tùy chọn",
"applies-to-all-tasks": "Áp dụng cho tất cả các nhiệm vụ",
"applies-to-some-tasks": "Áp dụng cho một số tác vụ {count}/{total}",
- "split-into-multiple-issues-tip": "Nếu bạn muốn cấu hình các tùy chọn khác nhau cho mỗi tác vụ, vui lòng chia thành nhiều vấn đề."
+ "split-into-multiple-issues-tip": "Nếu bạn muốn cấu hình các tùy chọn khác nhau cho mỗi tác vụ, vui lòng chia thành nhiều vấn đề.",
+ "no-options-available": "Không có tùy chọn nào khả dụng"
},
"editor": {
"save-changes-before-continuing": "Vui lòng lưu hoặc hủy thay đổi của bạn trước khi tiếp tục",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 464ac73b32..12fe72260d 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -1169,13 +1169,15 @@
},
"select-isolation-level": "选择隔离级别",
"isolation-level": {
- "self": "隔离级别"
+ "self": "隔离级别",
+ "description": "控制事务如何处理并发更改。仅在事务模式开启时适用。"
},
"options": {
"self": "配置项",
"applies-to-all-tasks": "适用于所有任务",
"applies-to-some-tasks": "适用于部分任务 {count}/{total}",
- "split-into-multiple-issues-tip": "如果您想为每个任务设置不同的配置项,请拆分成多个工单。"
+ "split-into-multiple-issues-tip": "如果您想为每个任务设置不同的配置项,请拆分成多个工单。",
+ "no-options-available": "暂无可配置项"
},
"editor": {
"save-changes-before-continuing": "请保存或取消更改,然后再继续",
diff --git a/frontend/src/views/project/PlanSpecDetailView.vue b/frontend/src/views/project/PlanSpecDetailView.vue
index c015b2fd35..97351cb201 100644
--- a/frontend/src/views/project/PlanSpecDetailView.vue
+++ b/frontend/src/views/project/PlanSpecDetailView.vue
@@ -1,5 +1,5 @@
<template>
- <div class="w-full flex-1 flex pt-2 pb-4">
+ <div class="w-full flex-1 flex">
<SpecDetailView v-if="specId" :key="specId" />
</div>
</template>