Skip to content

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

refactor(frontend): improve RolloutView v2 components (#18231)

boojacke213c2ad6f25
diff --git a/frontend/src/components/Plan/components/RolloutView/TaskRolloutActionPanel.vue b/frontend/src/components/Plan/components/RolloutView/TaskRolloutActionPanel.vue
index 3ac81325bf..0580c31022 100644
--- a/frontend/src/components/Plan/components/RolloutView/TaskRolloutActionPanel.vue
+++ b/frontend/src/components/Plan/components/RolloutView/TaskRolloutActionPanel.vue
@@ -96,38 +96,13 @@
<template #default="{ item: task }">
<div
:key="task.name"
- class="flex items-center text-sm"
+ class="flex items-center text-sm gap-2"
:style="{ height: `${itemHeight}px` }"
>
- <NTag
- v-if="
- semanticTaskType(
- task.type,
- task.payload?.case === 'databaseUpdate'
- ? task.payload.value.databaseChangeType
- : undefined,
- task.payload?.case === 'databaseUpdate'
- ? task.payload.value.migrationType
- : undefined
- )
- "
- class="mr-2"
+ <TaskStatus
+ :status="task.status"
size="small"
- >
- <span class="inline-block text-center">
- {{
- semanticTaskType(
- task.type,
- task.payload?.case === "databaseUpdate"
- ? task.payload.value.databaseChangeType
- : undefined,
- task.payload?.case === "databaseUpdate"
- ? task.payload.value.migrationType
- : undefined
- )
- }}
- </span>
- </NTag>
+ />
<TaskDatabaseName :task="task" />
</div>
</template>
@@ -139,37 +114,12 @@
<li
v-for="task in eligibleTasks"
:key="task.name"
- class="flex items-center"
+ class="flex items-center gap-2"
>
- <NTag
- v-if="
- semanticTaskType(
- task.type,
- task.payload?.case === 'databaseUpdate'
- ? task.payload.value.databaseChangeType
- : undefined,
- task.payload?.case === 'databaseUpdate'
- ? task.payload.value.migrationType
- : undefined
- )
- "
- class="mr-2"
+ <TaskStatus
+ :status="task.status"
size="small"
- >
- <span class="inline-block text-center">
- {{
- semanticTaskType(
- task.type,
- task.payload?.case === "databaseUpdate"
- ? task.payload.value.databaseChangeType
- : undefined,
- task.payload?.case === "databaseUpdate"
- ? task.payload.value.migrationType
- : undefined
- )
- }}
- </span>
- </NTag>
+ />
<TaskDatabaseName :task="task" />
</li>
</ul>
@@ -299,15 +249,14 @@ import {
NRadio,
NRadioGroup,
NScrollbar,
- NTag,
NTooltip,
NVirtualList,
} from "naive-ui";
import { computed, ref, watchEffect } from "vue";
import { useI18n } from "vue-i18n";
-import { semanticTaskType } from "@/components/IssueV1";
import { ErrorList } from "@/components/IssueV1/components/common";
import CommonDrawer from "@/components/IssueV1/components/Panel/CommonDrawer.vue";
+import TaskStatus from "@/components/Rollout/kits/TaskStatus.vue";
import { EnvironmentV1Name } from "@/components/v2";
import { rolloutServiceClientConnect } from "@/grpcweb";
import {
diff --git a/frontend/src/components/Plan/components/RolloutView/context.ts b/frontend/src/components/Plan/components/RolloutView/context.ts
index f104df272d..98b471d6a4 100644
--- a/frontend/src/components/Plan/components/RolloutView/context.ts
+++ b/frontend/src/components/Plan/components/RolloutView/context.ts
@@ -1,7 +1,7 @@
import { create } from "@bufbuild/protobuf";
import { createContextValues } from "@connectrpc/connect";
import type { InjectionKey } from "vue";
-import { computed, inject, onUnmounted, provide, ref } from "vue";
+import { computed, inject, nextTick, onUnmounted, provide, ref } from "vue";
import { rolloutServiceClientConnect } from "@/grpcweb";
import { silentContextKey } from "@/grpcweb/context-key";
import { useCurrentProjectV1 } from "@/store";
@@ -72,7 +72,9 @@ export const provideRolloutViewContext = () => {
console.error("Failed to fetch rollout preview:", error);
rolloutPreview.value = create(RolloutSchema, {});
} finally {
- ready.value = true;
+ nextTick(() => {
+ ready.value = true;
+ });
}
};
diff --git a/frontend/src/components/Plan/components/RolloutView/v2/RolloutView.vue b/frontend/src/components/Plan/components/RolloutView/v2/RolloutView.vue
index 5082459b92..c508723796 100644
--- a/frontend/src/components/Plan/components/RolloutView/v2/RolloutView.vue
+++ b/frontend/src/components/Plan/components/RolloutView/v2/RolloutView.vue
@@ -61,9 +61,6 @@ const { events } = usePlanContextWithRollout();
const { rollout, mergedStages, ready } = useRolloutViewContext();
-// Preload instances for all tasks to ensure engine icons display
-useTaskInstancePreload(() => mergedStages.value);
-
const routeStageId = computed(() => route.params.stageId as string | undefined);
const { selectedStage, isStageCreated } = useStageSelection(
@@ -72,6 +69,11 @@ const { selectedStage, isStageCreated } = useStageSelection(
rollout
);
+// Preload instances for tasks in the selected stage to ensure engine icons display
+useTaskInstancePreload(() =>
+ selectedStage.value ? [selectedStage.value] : []
+);
+
// Stage action panel state
const showStageActionPanel = ref(false);
const stageAction = ref<"RUN" | "SKIP" | "CANCEL">("RUN");
diff --git a/frontend/src/components/Plan/components/RolloutView/v2/StageContentView.vue b/frontend/src/components/Plan/components/RolloutView/v2/StageContentView.vue
index 32746cf01a..1fa6e4e1ca 100644
--- a/frontend/src/components/Plan/components/RolloutView/v2/StageContentView.vue
+++ b/frontend/src/components/Plan/components/RolloutView/v2/StageContentView.vue
@@ -39,17 +39,20 @@
</template>
{{ $t("rollout.stage.run-stage") }}
</NButton>
- <NButton
+ <NPopconfirm
v-else
- type="primary"
- :size="'small'"
- @click="$emit('create-stage', selectedStage)"
+ @positive-click="$emit('create-stage', selectedStage)"
>
- <template #icon>
- <PlusIcon :size="16" />
+ <template #trigger>
+ <NButton type="primary" :size="'small'">
+ <template #icon>
+ <PlusIcon :size="16" />
+ </template>
+ {{ $t("common.create") }}
+ </NButton>
</template>
- {{ $t("rollout.stage.create-stage") }}
- </NButton>
+ {{ $t("rollout.stage.confirm-create") }}
+ </NPopconfirm>
</div>
</div>
</div>
@@ -102,7 +105,7 @@
<script lang="ts" setup>
import { useMediaQuery } from "@vueuse/core";
import { PlayIcon, PlusIcon } from "lucide-vue-next";
-import { NButton, NTag } from "naive-ui";
+import { NButton, NPopconfirm, NTag } from "naive-ui";
import { computed, ref } from "vue";
import { EnvironmentV1Name } from "@/components/v2";
import { useEnvironmentV1Store } from "@/store";
diff --git a/frontend/src/components/Plan/components/RolloutView/v2/StageTimeline.vue b/frontend/src/components/Plan/components/RolloutView/v2/StageTimeline.vue
index 7dcca0651b..bfb218ab43 100644
--- a/frontend/src/components/Plan/components/RolloutView/v2/StageTimeline.vue
+++ b/frontend/src/components/Plan/components/RolloutView/v2/StageTimeline.vue
@@ -27,17 +27,15 @@
class="overflow-y-auto px-3 pt-1 pb-3"
:class="isInline ? 'max-h-48' : 'max-h-[calc(100vh-300px)]'"
>
- <div
- v-if="isLoading"
- class="py-4 text-sm text-gray-400 text-center"
- >
- {{ $t("common.loading") }}
+ <div v-if="isLoading" class="py-4 flex justify-center">
+ <BBSpin />
</div>
<div
v-else-if="stageTaskRuns.length === 0"
- class="py-4 text-sm text-gray-500 text-center"
+ class="py-4 text-sm text-gray-500 flex flex-col justify-center items-center gap-1"
>
- {{ $t("common.no-data") }}
+ <SquareChartGanttIcon :stroke-width="1" :size="36" />
+ <span>{{ $t("common.no-data") }}</span>
</div>
<NTimeline v-else size="medium">
<NTimelineItem
@@ -134,9 +132,14 @@
</template>
<script lang="ts" setup>
-import { ChevronDownIcon, ChevronRightIcon } from "lucide-vue-next";
+import {
+ ChevronDownIcon,
+ ChevronRightIcon,
+ SquareChartGanttIcon,
+} from "lucide-vue-next";
import { NTimeline, NTimelineItem, NTooltip } from "naive-ui";
import { computed, ref } from "vue";
+import BBSpin from "@/bbkit/BBSpin.vue";
import TaskRunDetail from "@/components/IssueV1/components/TaskRunSection/TaskRunDetail.vue";
import TimestampDisplay from "@/components/misc/Timestamp.vue";
import TaskStatus from "@/components/Rollout/kits/TaskStatus.vue";
diff --git a/frontend/src/components/Plan/components/RolloutView/v2/TaskItem.vue b/frontend/src/components/Plan/components/RolloutView/v2/TaskItem.vue
index b3a229eb31..cc13f84017 100644
--- a/frontend/src/components/Plan/components/RolloutView/v2/TaskItem.vue
+++ b/frontend/src/components/Plan/components/RolloutView/v2/TaskItem.vue
@@ -70,6 +70,7 @@
<!-- Expand/Collapse button -->
<button
+ v-if="!readonly"
class="shrink-0 p-1 hover:bg-gray-100 rounded transition-colors"
:class="{ 'self-start': isExpanded }"
@click.stop="emit('toggle-expand')"
@@ -161,36 +162,46 @@
<!-- SQL Statement section -->
<div>
- <div class="flex items-center justify-between mb-2">
+ <div class="flex items-center justify-between mb-1">
<span class="text-sm font-medium text-gray-700">{{ t("common.statement") }}</span>
+ <RouterLink
+ v-if="!readonly"
+ :to="`/${task.name}`"
+ >
+ <NButton text icon-placement="right" size="tiny" type="info">
+ <template #icon>
+ <ArrowUpRightIcon />
+ </template>
+ {{ t("rollout.task.view-full-details") }}
+ </NButton>
+ </RouterLink>
</div>
<BBSpin v-if="loading" />
- <HighlightCodeBlock
- v-else
- :code="displayedStatement"
- language="sql"
- :lazy="true"
- class="text-sm whitespace-pre-wrap wrap-break-word max-h-64 overflow-auto rounded p-2 bg-white border border-gray-200"
- />
+ <template v-else>
+ <HighlightCodeBlock
+ :code="displayedStatement"
+ language="sql"
+ :lazy="true"
+ class="text-sm whitespace-pre-wrap wrap-break-word max-h-64 overflow-auto rounded-t p-2 bg-white border border-gray-200"
+ :class="isStatementTruncated ? 'rounded-b-none border-b-0' : 'rounded-b'"
+ />
+ <div
+ v-if="isStatementTruncated"
+ class="px-3 py-1.5 text-xs text-gray-500 bg-gray-50 border border-gray-200 rounded-b"
+ >
+ {{ t("rollout.task.statement-truncated-hint") }}
+ </div>
+ </template>
</div>
<!-- Latest Task Run Info -->
<div v-if="latestTaskRun">
- <div class="flex items-center justify-between mb-2">
- <div class="flex items-center gap-x-2">
- <span class="text-sm font-medium text-gray-700">{{ t("task-run.latest") }}</span>
- <span class="text-sm text-gray-500">
- <Timestamp :timestamp="latestTaskRun.updateTime" />
- </span>
- </div>
- <RouterLink
- v-if="!readonly"
- :to="`/${task.name}`"
- class="text-xs text-blue-600 hover:text-blue-700"
- >
- {{ t("rollout.task.view-full-details") }} →
- </RouterLink>
+ <div class="flex items-center gap-x-2 mb-2">
+ <span class="text-sm font-medium text-gray-700">{{ t("task-run.latest") }}</span>
+ <span class="text-sm text-gray-500">
+ <Timestamp :timestamp="latestTaskRun.updateTime" />
+ </span>
</div>
<!-- Error message for failed tasks -->
@@ -243,6 +254,7 @@
<script lang="ts" setup>
import { last } from "lodash-es";
import {
+ ArrowUpRightIcon,
ChevronDownIcon,
ChevronRightIcon,
LoaderCircleIcon,
@@ -262,7 +274,7 @@ import DatabaseDisplay from "@/components/Plan/components/common/DatabaseDisplay
import TaskRolloutActionPanel from "@/components/Plan/components/RolloutView/TaskRolloutActionPanel.vue";
import TaskStatus from "@/components/Rollout/kits/TaskStatus.vue";
import { taskRunNamePrefix } from "@/store";
-import type { Task } from "@/types/proto-es/v1/rollout_service_pb";
+import type { Stage, Task } from "@/types/proto-es/v1/rollout_service_pb";
import { Task_Status } from "@/types/proto-es/v1/rollout_service_pb";
import { getTaskTypeI18nKey } from "@/utils";
import { useTaskActions } from "./composables/useTaskActions";
@@ -274,6 +286,7 @@ import ScheduledTimeIndicator from "./ScheduledTimeIndicator.vue";
const props = withDefaults(
defineProps<{
task: Task;
+ stage: Stage;
isExpanded: boolean;
isSelected: boolean;
isSelectable: boolean;
@@ -292,22 +305,11 @@ const emit = defineEmits<{
const { t } = useI18n();
const {
- rollout,
taskRuns: allTaskRuns,
readonly: contextReadonly,
events,
} = usePlanContextWithRollout();
-// Get the stage for the current task
-const stage = computed(() => {
- for (const s of rollout.value.stages) {
- if (s.tasks.some((t) => t.name === props.task.name)) {
- return s;
- }
- }
- return undefined;
-});
-
// Task actions (Run/Skip/Cancel)
const {
canRun,
@@ -323,7 +325,7 @@ const {
closeActionPanel,
} = useTaskActions(
() => props.task,
- () => stage.value,
+ () => props.stage,
{ readonly: () => props.readonly || contextReadonly.value }
);
@@ -332,10 +334,11 @@ const handleActionConfirm = () => {
events.emit("status-changed", { eager: true });
};
-const { loading, statementPreview, displayedStatement } = useTaskStatement(
- () => props.task,
- () => props.isExpanded
-);
+const { loading, statementPreview, displayedStatement, isStatementTruncated } =
+ useTaskStatement(
+ () => props.task,
+ () => props.isExpanded
+ );
const latestTaskRun = computed(() => {
const taskRunsForTask = allTaskRuns.value.filter((run) =>
diff --git a/frontend/src/components/Plan/components/RolloutView/v2/TaskList.vue b/frontend/src/components/Plan/components/RolloutView/v2/TaskList.vue
index ef39c0af3e..1551cac44d 100644
--- a/frontend/src/components/Plan/components/RolloutView/v2/TaskList.vue
+++ b/frontend/src/components/Plan/components/RolloutView/v2/TaskList.vue
@@ -16,6 +16,7 @@
v-for="task in visibleTasks"
:key="task.name"
:task="task"
+ :stage="stage"
:is-expanded="isTaskExpanded(task)"
:is-selected="isTaskSelected(task)"
:is-selectable="!readonly && isTaskSelectable(task)"
diff --git a/frontend/src/components/Plan/components/RolloutView/v2/composables/useStageSelection.ts b/frontend/src/components/Plan/components/RolloutView/v2/composables/useStageSelection.ts
index ff13257853..cb78a19925 100644
--- a/frontend/src/components/Plan/components/RolloutView/v2/composables/useStageSelection.ts
+++ b/frontend/src/components/Plan/components/RolloutView/v2/composables/useStageSelection.ts
@@ -1,4 +1,3 @@
-import { head } from "lodash-es";
import { type ComputedRef, computed, type Ref } from "vue";
import type { Rollout, Stage } from "@/types/proto-es/v1/rollout_service_pb";
import { isTaskRunning, isTaskUnfinished } from "../utils/taskStatus";
@@ -54,7 +53,9 @@ export const useStageSelection = (
const selectedStage = computed(() => {
const stages = mergedStages.value;
- const createdStages = stages.filter(isStageCreated);
+ if (!routeStageId.value) {
+ return findSuitableStage(stages);
+ }
// Always follow route params if stageId is provided (allow both created and uncreated)
if (routeStageId.value) {
@@ -67,13 +68,7 @@ export const useStageSelection = (
}
}
- // If no stageId in route, auto-select a suitable created stage
- if (createdStages.length === 0) {
- // If no created stages, fallback to the first uncreated stage
- return head(stages);
- }
-
- return findSuitableStage(stages);
+ return undefined;
});
return {
diff --git a/frontend/src/components/Plan/components/RolloutView/v2/composables/useTaskCollapse.ts b/frontend/src/components/Plan/components/RolloutView/v2/composables/useTaskCollapse.ts
index b82c880e30..a87834486a 100644
--- a/frontend/src/components/Plan/components/RolloutView/v2/composables/useTaskCollapse.ts
+++ b/frontend/src/components/Plan/components/RolloutView/v2/composables/useTaskCollapse.ts
@@ -1,6 +1,7 @@
+import { head } from "lodash-es";
import { type Ref, ref, watch } from "vue";
import type { Task } from "@/types/proto-es/v1/rollout_service_pb";
-import { Task_Status } from "@/types/proto-es/v1/rollout_service_pb";
+import { isValidTaskName } from "@/utils";
import { addToSet, deleteFromSet } from "../utils/reactivity";
export interface UseTaskCollapseReturn {
@@ -14,7 +15,10 @@ export const useTaskCollapse = (tasks: Ref<Task[]>): UseTaskCollapseReturn => {
const lastTaskNames = ref<string>("");
const isTaskExpanded = (task: Task): boolean => {
- return expandedTaskIds.value.has(task.name);
+ if (isValidTaskName(task.name)) {
+ return expandedTaskIds.value.has(task.name);
+ }
+ return false;
};
const toggleExpand = (task: Task) => {
@@ -43,14 +47,10 @@ export const useTaskCollapse = (tasks: Ref<Task[]>): UseTaskCollapseReturn => {
// Clear expanded tasks from previous stage
expandedTaskIds.value.clear();
- // Auto-expand first non-completed task
- const firstActiveTask = newTasks.find(
- (task) =>
- task.status !== Task_Status.DONE &&
- task.status !== Task_Status.CANCELED
- );
- const taskToExpand = firstActiveTask || newTasks[0];
- addToSet(expandedTaskIds, taskToExpand.name);
+ const taskToExpand = head(newTasks);
+ if (taskToExpand) {
+ addToSet(expandedTaskIds, taskToExpand.name);
+ }
}
},
{ immediate: true }
diff --git a/frontend/src/components/Plan/components/RolloutView/v2/composables/useTaskStatement.ts b/frontend/src/components/Plan/components/RolloutView/v2/composables/useTaskStatement.ts
index 0059fcbf80..6c1b240ef9 100644
--- a/frontend/src/components/Plan/components/RolloutView/v2/composables/useTaskStatement.ts
+++ b/frontend/src/components/Plan/components/RolloutView/v2/composables/useTaskStatement.ts
@@ -1,14 +1,25 @@
-import { computed, ref, watchEffect } from "vue";
+import { type ComputedRef, computed, type Ref, ref, watchEffect } from "vue";
import { useI18n } from "vue-i18n";
import { useSheetV1Store } from "@/store";
import type { Task } from "@/types/proto-es/v1/rollout_service_pb";
import { getSheetStatement, sheetNameOfTaskV1 } from "@/utils";
-import { STATEMENT_PREVIEW_LENGTH } from "../constants";
+import {
+ MAX_STATEMENT_DISPLAY_SIZE,
+ STATEMENT_PREVIEW_LENGTH,
+} from "../constants";
+
+export interface UseTaskStatementReturn {
+ loading: Ref<boolean>;
+ statement: Ref<string>;
+ statementPreview: ComputedRef<string>;
+ displayedStatement: ComputedRef<string>;
+ isStatementTruncated: ComputedRef<boolean>;
+}
export const useTaskStatement = (
task: () => Task,
isExpanded: () => boolean
-) => {
+): UseTaskStatementReturn => {
const { t } = useI18n();
const sheetStore = useSheetV1Store();
@@ -45,6 +56,7 @@ export const useTaskStatement = (
}
});
+ // Preview for collapsed view (first line, truncated)
const statementPreview = computed(() => {
const stmt = statement.value;
if (!stmt) {
@@ -56,10 +68,19 @@ export const useTaskStatement = (
: firstLine;
});
+ // Check if statement exceeds display limit
+ const isStatementTruncated = computed(() => {
+ return statement.value.length > MAX_STATEMENT_DISPLAY_SIZE;
+ });
+
+ // Statement for expanded view (truncated if too large for performance)
const displayedStatement = computed(() => {
if (!statement.value) {
return t("rollout.task.no-statement");
}
+ if (isStatementTruncated.value) {
+ return statement.value.substring(0, MAX_STATEMENT_DISPLAY_SIZE);
+ }
return statement.value;
});
@@ -68,5 +89,6 @@ export const useTaskStatement = (
statement,
statementPreview,
displayedStatement,
+ isStatementTruncated,
};
};
diff --git a/frontend/src/components/Plan/components/RolloutView/v2/constants.ts b/frontend/src/components/Plan/components/RolloutView/v2/constants.ts
index a5a117363c..7d3c6250af 100644
--- a/frontend/src/components/Plan/components/RolloutView/v2/constants.ts
+++ b/frontend/src/components/Plan/components/RolloutView/v2/constants.ts
@@ -7,3 +7,9 @@ export const DEFAULT_PAGE_SIZE = 10;
* Maximum characters to show in collapsed SQL statement preview
*/
export const STATEMENT_PREVIEW_LENGTH = 80;
+
+/**
+ * Maximum characters to display in expanded SQL statement view.
+ * Larger statements are truncated to avoid performance issues with syntax highlighting.
+ */
+export const MAX_STATEMENT_DISPLAY_SIZE = 10000;
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 0bfc2d71e1..a6fa773846 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -1225,7 +1225,7 @@
"self": "Stage | Stages",
"start-stage": "Start stage",
"run-stage": "Run Stage",
- "create-stage": "Create Stage",
+ "confirm-create": "Confirm to create tasks for this stage?",
"back-to-stage": "Back to Stage {stage}",
"no-stages": {
"self": "No stages",
@@ -1236,7 +1236,8 @@
"selected-count": "{count} task selected | {count} tasks selected",
"no-tasks": "No tasks in this stage",
"no-statement": "No SQL statement",
- "view-full-details": "View Full Details"
+ "view-full-details": "View Details",
+ "statement-truncated-hint": "Statement truncated due to large size."
},
"no-stages": "No stages available"
},
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index ee67130d7b..482528cd63 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -1225,7 +1225,7 @@
"self": "Escenario | Escenarios",
"start-stage": "Etapa de inicio",
"run-stage": "Etapa de ejecución",
- "create-stage": "Crear etapa",
+ "confirm-create": "¿Está seguro de que desea crear tareas para esta etapa?",
"back-to-stage": "Volver a la etapa {stage}",
"no-stages": {
"self": "Sin etapas",
@@ -1236,7 +1236,8 @@
"selected-count": "{count} tarea seleccionada | {count} tareas seleccionadas",
"no-tasks": "No hay tareas en esta etapa",
"no-statement": "Declaración sin SQL",
- "view-full-details": "Ver detalles completos"
+ "view-full-details": "Ver detalles",
+ "statement-truncated-hint": "Declaración truncada debido al gran tamaño."
},
"no-stages": "No hay etapas disponibles"
},
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index 15e1793689..2764a5c757 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -1225,7 +1225,7 @@
"self": "ステージ | ステージ",
"start-stage": "スタートステージ",
"run-stage": "ランステージ",
- "create-stage": "ステージを作成",
+ "confirm-create": "このステージのタスクを作成してもよろしいですか?",
"back-to-stage": "ステージに戻る {stage}",
"no-stages": {
"self": "ステージなし",
@@ -1236,7 +1236,8 @@
"selected-count": "{count} 個のタスクが選択されました | {count} 個のタスクが選択されました",
"no-tasks": "このステージにはタスクはありません",
"no-statement": "SQL文なし",
- "view-full-details": "詳細を表示"
+ "view-full-details": "詳細を表示",
+ "statement-truncated-hint": "サイズが大きいため、ステートメントは切り捨てられました。"
},
"no-stages": "利用可能なステージはありません"
},
diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.json
index 48637ee7bc..611c7d12eb 100644
--- a/frontend/src/locales/vi-VN.json
+++ b/frontend/src/locales/vi-VN.json
@@ -1225,7 +1225,7 @@
"self": "Giai đoạn | Các giai đoạn",
"start-stage": "Giai đoạn bắt đầu",
"run-stage": "Chạy sân khấu",
- "create-stage": "Tạo sân khấu",
+ "confirm-create": "Bạn có chắc chắn muốn tạo tác vụ cho giai đoạn này không?",
"back-to-stage": "Trở lại sân khấu {stage}",
"no-stages": {
"self": "Không có giai đoạn",
@@ -1236,7 +1236,8 @@
"selected-count": "{count} nhiệm vụ đã chọn | {count} nhiệm vụ đã chọn",
"no-tasks": "Không có nhiệm vụ nào ở giai đoạn này",
"no-statement": "Không có câu lệnh SQL",
- "view-full-details": "Xem chi tiết đầy đủ"
+ "view-full-details": "Xem chi tiết đầy đủ",
+ "statement-truncated-hint": "Câu lệnh bị cắt bớt do kích thước lớn."
},
"no-stages": "Không có giai đoạn nào có sẵn"
},
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 12fe72260d..65998c18e1 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -1225,7 +1225,7 @@
"self": "阶段 | 阶段",
"start-stage": "开始该阶段",
"run-stage": "运行阶段",
- "create-stage": "创建阶段",
+ "confirm-create": "确定要为此阶段创建任务吗?",
"back-to-stage": "返回阶段 {stage}",
"no-stages": {
"self": "没有阶段",
@@ -1236,7 +1236,8 @@
"selected-count": "已选择 {count} 个任务",
"no-tasks": "此阶段没有任务",
"no-statement": "没有 SQL 语句",
- "view-full-details": "查看完整详情"
+ "view-full-details": "查看详情",
+ "statement-truncated-hint": "由于语句过长,已被截断。"
},
"no-stages": "没有可用的阶段"
},