Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update stages column in rollout data table (#16851)
boojack4fe21d27c3c0
diff --git a/frontend/src/components/Plan/components/IssueReviewView/OverviewSection.vue b/frontend/src/components/Plan/components/IssueReviewView/OverviewSection.vueindex 19f17c525c..09e845c9fe 100644--- a/frontend/src/components/Plan/components/IssueReviewView/OverviewSection.vue+++ b/frontend/src/components/Plan/components/IssueReviewView/OverviewSection.vue@@ -8,7 +8,7 @@<div class="flex items-center justify-between"><div><p class="textlabel">- {{ $t("plan.overview.total-specs") }}+ {{ $t("plan.overview.total-changes") }}</p><p class="text-xl font-medium mt-1">{{ statistics.totalSpecs }}diff --git a/frontend/src/components/Plan/components/Overview.vue b/frontend/src/components/Plan/components/Overview.vueindex af3362c980..c86b164536 100644--- a/frontend/src/components/Plan/components/Overview.vue+++ b/frontend/src/components/Plan/components/Overview.vue@@ -29,7 +29,7 @@<div class="flex items-center justify-between"><div><p class="textlabel">- {{ $t("plan.overview.total-specs") }}+ {{ $t("plan.overview.total-changes") }}</p><p class="text-xl font-medium mt-1">{{ statistics.totalSpecs }}diff --git a/frontend/src/components/Rollout/RolloutDataTable.vue b/frontend/src/components/Rollout/RolloutDataTable.vueindex 4a727035b3..762f5c6492 100644--- a/frontend/src/components/Rollout/RolloutDataTable.vue+++ b/frontend/src/components/Rollout/RolloutDataTable.vue@@ -13,7 +13,7 @@<script lang="tsx" setup>import type { DataTableColumn } from "naive-ui";-import { NDataTable, NTag } from "naive-ui";+import { NDataTable, NTooltip } from "naive-ui";import { computed } from "vue";import { useI18n } from "vue-i18n";import { RouterLink, useRouter } from "vue-router";@@ -65,9 +65,8 @@ const TASK_STATUS_FILTERS: Task_Status[] = [TaskStatusEnum.NOT_STARTED,];-const getTaskCount = (rollout: ComposedRollout, status: Task_Status) => {- const allTasks = rollout.stages.flatMap((stage) => stage.tasks);- return allTasks.filter((task) => task.status === status).length;+const getStageTaskCount = (stage: any, status: Task_Status) => {+ return stage.tasks.filter((task: any) => task.status === status).length;};const columnList = computed(@@ -125,12 +124,54 @@ const columnList = computed(const stageStatus = getStageStatus(stage);return (<>- <div key={stage.name} class="flex items-center gap-1">- <TaskStatus status={stageStatus} size="small" />- <span class="text-sm font-medium text-gray-700 whitespace-nowrap">- {environment.title}- </span>- </div>+ <NTooltip key={stage.name} placement="top">+ {{+ trigger: () => (+ <div class="flex items-center gap-1 cursor-pointer">+ <TaskStatus+ status={stageStatus}+ size="small"+ disabled+ />+ <span class="text-sm font-medium text-gray-700 whitespace-nowrap">+ {environment.title}+ </span>+ </div>+ ),+ default: () => {+ const taskCounts = TASK_STATUS_FILTERS.map(+ (status) => {+ const count = getStageTaskCount(stage, status);+ return { status, count };+ }+ ).filter(({ count }) => count > 0);++ if (taskCounts.length === 0) {+ return (+ <span class="text-sm text-gray-400">+ {t("common.no-data")}+ </span>+ );+ }++ return (+ <div class="flex flex-col gap-1">+ {taskCounts.map(({ status, count }) => (+ <div+ key={status}+ class="flex items-center gap-2"+ >+ <TaskStatus status={status} size="small" />+ <span class="text-sm">+ {stringifyTaskStatus(status)}: {count}+ </span>+ </div>+ ))}+ </div>+ );+ },+ }}+ </NTooltip>{index < rollout.stages.length - 1 && (<span class="text-gray-400">→</span>)}@@ -141,38 +182,6 @@ const columnList = computed();},},- {- key: "tasks",- title: t("common.tasks"),- render: (rollout) => {- return (- <div class="flex flex-row gap-1 items-center">- {TASK_STATUS_FILTERS.map((status) => {- const count = getTaskCount(rollout, status);- if (count === 0) return null;-- return (- <NTag key={status} round>- {{- avatar: () => <TaskStatus status={status} size="small" />,- default: () => (- <div class="flex flex-row items-center gap-1">- <span class="select-none text-sm">- {stringifyTaskStatus(status)}- </span>- <span class="select-none text-sm font-medium">- {count}- </span>- </div>- ),- }}- </NTag>- );- })}- </div>- );- },- },{key: "updateTime",title: t("common.updated-at"),diff --git a/frontend/src/components/Rollout/kits/TaskStatus.vue b/frontend/src/components/Rollout/kits/TaskStatus.vueindex ba25cea282..6aa84ba61d 100644--- a/frontend/src/components/Rollout/kits/TaskStatus.vue+++ b/frontend/src/components/Rollout/kits/TaskStatus.vue@@ -1,5 +1,5 @@<template>- <NTooltip>+ <NTooltip :disabled="disabled"><template #trigger><div:class="@@ -70,6 +70,7 @@ import { Task_Status } from "@/types/proto-es/v1/rollout_service_pb";const props = defineProps<{status: Task_Status;size?: "small" | "medium" | "large";+ disabled?: boolean;}>();const classes = computed((): string => {diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex f8753a8560..43bdd18052 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -1042,10 +1042,10 @@"approval": {"rejected-title": "Issue Approval Rejected","pending-title": "Issue Approval Pending",- "rejected-description": "This issue has been rejected by approvers. Force rollout is required to proceed.",- "pending-description": "This issue is waiting for approval. Force rollout is required to proceed.",- "rejected-error": "Issue approval has been rejected. Please enable force rollout to proceed.",- "pending-error": "Issue approval is pending. Please enable force rollout to proceed."+ "rejected-description": "This issue has been rejected by approvers. Please enable force run to proceed.",+ "pending-description": "This issue is waiting for approval. Please enable force run to proceed.",+ "rejected-error": "Issue approval has been rejected. Please enable force run to proceed.",+ "pending-error": "Issue approval is pending. Please enable force run to proceed."},"new-layout": "New CI/CD Layout"},@@ -1062,7 +1062,7 @@"select-targets": "Select Targets","ready-for-review": "Ready for Review","overview": {- "total-specs": "Total Specs",+ "total-changes": "Total Changes","total-targets": "Total Targets","no-checks": "No checks"},@@ -1121,7 +1121,7 @@},"rollout": {"rollouts": "Rollouts",- "force-rollout": "Force rollout",+ "force-rollout": "Force run","stage": {"self": "Stage | Stages","start-stage": "Start stage"diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 12a66a97f0..8e0835b554 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -1062,7 +1062,7 @@"select-targets": "Seleccionar objetivos","ready-for-review": "Listo para revisión","overview": {- "total-specs": "Especificaciones totales",+ "total-changes": "Cambios totales","total-targets": "Objetivos totales","no-checks": "Sin controles"},@@ -1121,7 +1121,7 @@},"rollout": {"rollouts": "Despliegues",- "force-rollout": "Despliegue de fuerza",+ "force-rollout": "Ejecución forzada","stage": {"self": "Escenario | Escenarios","start-stage": "Etapa de inicio"diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex a661b7c52e..912dd92d27 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -1062,7 +1062,7 @@"select-targets": "ターゲットを選択","ready-for-review": "レビュー準備完了","overview": {- "total-specs": "合計スペック",+ "total-changes": "合計変更数","total-targets": "合計ターゲット","no-checks": "チェックなし"},@@ -1121,7 +1121,7 @@},"rollout": {"rollouts": "ロールアウト",- "force-rollout": "強制展開",+ "force-rollout": "強制実行","stage": {"self": "ステージ | ステージ","start-stage": "スタートステージ"diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex 6bb4e3d420..9f67087ded 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -1062,7 +1062,7 @@"select-targets": "Chọn mục tiêu","ready-for-review": "Sẵn sàng để xem xét","overview": {- "total-specs": "Tổng số thông số kỹ thuật",+ "total-changes": "Tổng số thay đổi","total-targets": "Tổng số mục tiêu","no-checks": "Không kiểm tra"},@@ -1121,7 +1121,7 @@},"rollout": {"rollouts": "Triển khai",- "force-rollout": "Buộc triển khai",+ "force-rollout": "Chạy bắt buộc","stage": {"self": "Giai đoạn | Các giai đoạn","start-stage": "Giai đoạn bắt đầu"diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 28405f4ac2..419b1fe886 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -1042,10 +1042,10 @@"approval": {"rejected-title": "工单被退回","pending-title": "工单待审批",- "rejected-description": "此工单已被审批者退回。需要强制发布才能继续。",- "pending-description": "此工单正在等待审批。需要强制发布才能继续。",- "rejected-error": "此工单已被退回。请确认并勾选强制发布才能继续。",- "pending-error": "此工单正在等待审批。请确认并勾选强制发布才能继续。"+ "rejected-description": "此工单已被审批者退回。确认并勾选强制执行才能继续。",+ "pending-description": "此工单正在等待审批。确认并勾选强制执行才能继续。",+ "rejected-error": "此工单已被退回。请确认并勾选强制执行才能继续。",+ "pending-error": "此工单正在等待审批。请确认并勾选强制执行才能继续。"},"new-layout": "使用新版 CI/CD 页面"},@@ -1062,7 +1062,7 @@"select-targets": "选择变更对象","ready-for-review": "提交审批","overview": {- "total-specs": "变更项",+ "total-changes": "变更项","total-targets": "变更对象","no-checks": "没有检查"},@@ -1121,7 +1121,7 @@},"rollout": {"rollouts": "发布任务",- "force-rollout": "强制发布",+ "force-rollout": "强制执行","stage": {"self": "阶段 | 阶段","start-stage": "开始该阶段"