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 trigger of approval flow node popover (#14932)
boojackd4401f5f56eb
diff --git a/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/Timeline.vue b/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/Timeline.vueindex c73bb4bb53..be1943e845 100644--- a/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/Timeline.vue+++ b/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/Timeline.vue@@ -1,88 +1,88 @@<template>- <NTimeline :icon-size="28">- <NTimelineItem v-for="step in steps" :key="step.index">- <template #icon>- <NPopover placement="left">- <template #trigger>+ <NTimeline :icon-size="24">+ <NPopover+ v-for="step in steps"+ :disabled="step.status === 'APPROVED'"+ :key="step.index"+ placement="left"+ >+ <template #trigger>+ <NTimelineItem>+ <template #icon><TimelineIcon :step="step" /></template>-<template #default>- <div class="flex flex-col gap-y-2 text-sm max-w-[16rem] truncate">- <ul class="w-full list-disc list-inside text-sm">- <i18n-t- keypath="custom-approval.issue-review.any-n-role-can-approve"- tag="li"- class="whitespace-pre-wrap"- >- <template #role>- <span class="textlabel">- {{ approvalNodeText(step.step.nodes[0]) }}- </span>- </template>- </i18n-t>- <li- v-if="!issue.projectEntity.allowSelfApproval"- class="whitespace-pre-wrap"- >- {{- $t(- "custom-approval.issue-review.issue-creators-cannot-approve-their-own-issue"- )- }}- </li>- </ul>- <hr />- <template v-if="!isExternalApprovalStep(step.step)">+ <div class="flex flex-row gap-x-1">+ <div class="flex-1 truncate">+ <NPerformantEllipsis>+ {{ approvalNodeText(step.step.nodes[0]) }}+ </NPerformantEllipsis>+ </div>+ <div v-if="isExternalApprovalStep(step.step)" class="shrink-0">+ <ExternalApprovalSyncButton />+ </div>+ </div>+ </template>+ <template v-if="!isExternalApprovalStep(step.step)" #footer>+ <i18n-t+ keypath="custom-approval.issue-review.approved-by-n"+ tag="div"+ class="break-words break-all"+ v-if="step.status === 'APPROVED'"+ >+ <template #approver><Approverv-if="step.status === 'APPROVED'":step="step"- class="inline-flex flex-nowrap items-center whitespace-nowrap"- />- <Candidates v-else :step="step" />- </template>- <template v-else>- <ExternalApprovalSyncButton />+ class="inline"+ >+ <template+ #title="{ approver }: { approver: User | undefined }"+ >+ <span>{{ approver?.title }}</span>+ </template>+ </Approver></template>- </div>+ </i18n-t></template>- </NPopover>+ </NTimelineItem></template>+<template #default>- <div class="flex flex-row gap-x-1">- <div class="flex-1 truncate">- <NPerformantEllipsis>- {{ approvalNodeText(step.step.nodes[0]) }}- </NPerformantEllipsis>- </div>- <div v-if="isExternalApprovalStep(step.step)" class="shrink-0">- <ExternalApprovalSyncButton />- </div>- </div>- </template>- <template- v-if="!isExternalApprovalStep(step.step) && step.status === 'APPROVED'"- #footer- >- <i18n-t- keypath="custom-approval.issue-review.approved-by-n"- tag="div"- class="break-words break-all"- >- <template #approver>- <Approver- v-if="step.status === 'APPROVED'"- :step="step"- class="inline"+ <div class="flex flex-col gap-y-2 text-sm max-w-[16rem] truncate">+ <ul class="w-full list-disc list-inside text-sm">+ <i18n-t+ keypath="custom-approval.issue-review.any-n-role-can-approve"+ tag="li"+ class="whitespace-pre-wrap">- <template #title="{ approver }: { approver: User | undefined }">- <span>{{ approver?.title }}</span>+ <template #role>+ <span class="textlabel">+ {{ approvalNodeText(step.step.nodes[0]) }}+ </span></template>- </Approver>+ </i18n-t>+ <li+ v-if="!issue.projectEntity.allowSelfApproval"+ class="whitespace-pre-wrap"+ >+ {{+ $t(+ "custom-approval.issue-review.issue-creators-cannot-approve-their-own-issue"+ )+ }}+ </li>+ </ul>+ <hr />+ <template v-if="!isExternalApprovalStep(step.step)">+ <Candidates :step="step" /></template>- </i18n-t>+ <template v-else>+ <ExternalApprovalSyncButton />+ </template>+ </div></template>- </NTimelineItem>+ </NPopover></NTimeline></template>diff --git a/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/TimelineIcon.vue b/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/TimelineIcon.vueindex e3e1a6423e..b026249563 100644--- a/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/TimelineIcon.vue+++ b/frontend/src/components/IssueV1/components/Sidebar/ReviewSection/TimelineIcon.vue@@ -1,22 +1,22 @@<template><div- class="w-7 h-7 rounded-full flex items-center justify-center text-sm shrink-0"+ class="w-6 h-6 rounded-full flex items-center justify-center text-sm shrink-0":class="iconClass"><heroicons-outline:thumb-upv-if="step.status === 'APPROVED'"- class="w-5 h-5 text-white"+ class="w-4 h-4 text-white"/><heroicons:pause-solidv-else-if="step.status === 'REJECTED'"- class="w-5 h-5 text-white"+ class="w-4 h-4 text-white"/><template v-else-if="step.status === 'CURRENT'"><heroicons-outline:external-linkv-if="isExternalApprovalStep"- class="w-5 h-5"+ class="w-4 h-4"/>- <heroicons-outline:user v-else class="w-5 h-5" />+ <heroicons-outline:user v-else class="w-4 h-4" /></template><template v-else>{{ step.index + 1 }}