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(frontend): issue sidebar minor improvements (#10101)
Liu Ji9b752db55b2e
diff --git a/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/ReviewSection.vue b/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/ReviewSection.vueindex d627db02f1..e347678fa2 100644--- a/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/ReviewSection.vue+++ b/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/ReviewSection.vue@@ -4,6 +4,7 @@<template #trigger><div class="textlabel flex items-center gap-x-1">{{ $t("issue.approval-flow.self") }}+ <FeatureBadge feature="bb.feature.custom-approval" /></div></template><template #default>@@ -56,11 +57,21 @@</div></div></div>+ <div v-if="isCreating" class="flex flex-col gap-y-1">+ <div class="textlabel flex items-center gap-x-1">+ {{ $t("issue.approval-flow.self") }}+ <FeatureBadge feature="bb.feature.custom-approval" />+ </div>+ <div class="text-control-placeholder text-xs">+ {{ $t("issue.approval-flow.pre-issue-created-tips") }}+ </div>+ </div></template><script lang="ts" setup>import { NTooltip } from "naive-ui";import { computed, ref } from "vue";+import FeatureBadge from "@/components/FeatureGuard/FeatureBadge.vue";import {databaseForTask,useIssueContext,@@ -100,7 +111,7 @@ const showApprovalTooltip = computed(() => {defineExpose({shown: computed(() => {- return !isCreating.value;+ return true; // Always shown}),});</script>diff --git a/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vue b/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vueindex 1066f18f7b..fc338b735d 100644--- a/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vue+++ b/frontend/src/components/IssueV1/components/Sidebar/VCSInfo.vue@@ -1,20 +1,25 @@<template>- <p+ <divv-if="pushEvent"- class="mt-1 text-sm text-control-light flex flex-row items-center space-x-1"+ class="text-sm text-control-light flex flex-col items-start gap-y-1">- <template v-if="pushEvent.vcsType === VcsType.GITLAB">- <img class="h-4 w-auto" src="@/assets/gitlab-logo.svg" />- </template>- <template v-else-if="pushEvent.vcsType === VcsType.GITHUB">- <img class="h-4 w-auto" src="@/assets/github-logo.svg" />- </template>- <template v-else-if="pushEvent.vcsType === VcsType.BITBUCKET">- <img class="h-4 w-auto" src="@/assets/bitbucket-logo.svg" />- </template>- <a :href="vcsBranchUrl" target="_blank" class="normal-link">{{- `${vcsBranch}@${pushEvent.repositoryFullPath}`- }}</a>+ <div class="space-x-1">+ <template v-if="pushEvent.vcsType === VcsType.GITLAB">+ <img class="h-4 w-auto inline-block" src="@/assets/gitlab-logo.svg" />+ </template>+ <template v-else-if="pushEvent.vcsType === VcsType.GITHUB">+ <img class="h-4 w-auto inline-block" src="@/assets/github-logo.svg" />+ </template>+ <template v-else-if="pushEvent.vcsType === VcsType.BITBUCKET">+ <img+ class="h-4 w-auto inline-block"+ src="@/assets/bitbucket-logo.svg"+ />+ </template>+ <a :href="vcsBranchUrl" target="_blank" class="normal-link">{{+ `${vcsBranch}@${pushEvent.repositoryFullPath}`+ }}</a>+ </div><i18n-tv-if="commit && commit.id && commit.url"@@ -34,7 +39,7 @@<HumanizeDate :date="commit.createdTime" /></template></i18n-t>- </p>+ </div></template><script setup lang="ts">diff --git a/frontend/src/components/IssueV1/components/TaskListSection/TaskProgress.vue b/frontend/src/components/IssueV1/components/TaskListSection/TaskProgress.vueindex ce951072e2..5fa31feaf2 100644--- a/frontend/src/components/IssueV1/components/TaskListSection/TaskProgress.vue+++ b/frontend/src/components/IssueV1/components/TaskListSection/TaskProgress.vue@@ -18,6 +18,7 @@</template><script setup lang="ts">+import { NProgress } from "naive-ui";import { computed } from "vue";import { Task, Task_Status } from "@/types/proto/v1/rollout_service";diff --git a/frontend/src/components/misc/UploadProgressButton.vue b/frontend/src/components/misc/UploadProgressButton.vueindex 0f3d386a58..307fa4fed2 100644--- a/frontend/src/components/misc/UploadProgressButton.vue+++ b/frontend/src/components/misc/UploadProgressButton.vue@@ -42,7 +42,7 @@</template><script lang="ts" setup>-import { NButton } from "naive-ui";+import { NButton, NProgress } from "naive-ui";import { computed, ref } from "vue";type Tick = (p: number) => void;diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex cf18127928..fa6a3c85b6 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -1105,7 +1105,8 @@"assignee-tooltip": "The assignees are those responsible for an issue, and when an issue is assigned to them, it shows up in their list of assigned issues.","approval-flow": {"self": "Approval flow",- "tooltip": "The approvers will review and approve the issue in the order specified in the flow. The issue can only be applied after all steps in the flow have been approved. You can configure a custom approval flow for each risk."+ "tooltip": "The approvers will review and approve the issue in the order specified in the flow. The issue can only be applied after all steps in the flow have been approved. You can configure a custom approval flow for each risk.",+ "pre-issue-created-tips": "After an issue is created, Bytebase will automatically match the corresponding custom approval flow based on the type and risk level of the issue."},"waiting-to-rollout": "Waiting to rollout","waiting-for-review": "Waiting for review",diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex db1c0a4816..047ce3136f 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -1104,7 +1104,8 @@"assignee-tooltip": "Los asignados son responsables de un problema y cuando se les asigna un problema, aparece en su lista de problemas asignados.","approval-flow": {"self": "Flujo de aprobación",- "tooltip": "Los revisores aprobarán y revisarán la incidencia en el orden especificado en el flujo. La incidencia solo se puede aplicar después de que se hayan aprobado todos los pasos del flujo. Puedes configurar un flujo de aprobación personalizado para cada riesgo."+ "tooltip": "Los revisores aprobarán y revisarán la incidencia en el orden especificado en el flujo. La incidencia solo se puede aplicar después de que se hayan aprobado todos los pasos del flujo. Puedes configurar un flujo de aprobación personalizado para cada riesgo.",+ "pre-issue-created-tips": "Después de crear un problema, Bytebase coincidirá automáticamente con el flujo de aprobación personalizado correspondiente según el tipo y el nivel de riesgo del problema."},"waiting-to-rollout": "Esperando para implementar","waiting-for-review": "Esperando revisión",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 6bdd0f3401..2122701c2d 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -1102,7 +1102,8 @@"assignee-tooltip": "被指派人是负责处理问题的人,当问题分配给他们时,它会显示在他们的已分配问题列表中。","approval-flow": {"self": "审批流",- "tooltip": "审批人需要按审批流指定的顺序审核和审批工单。只有审批流中所有步骤都完成审批后工单才可以执行。您可以为每个风险级别自定义审批流。"+ "tooltip": "审批人需要按审批流指定的顺序审核和审批工单。只有审批流中所有步骤都完成审批后工单才可以执行。您可以为每个风险级别自定义审批流。",+ "pre-issue-created-tips": "在工单创建之后,Bytebase 会根据工单的类型和风险等级自动匹配对应的自定义审批流。"},"waiting-to-rollout": "等待发布","waiting-for-review": "等待审核",