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: sort issues (#12044)
ecmadao726685c91a0a
diff --git a/frontend/src/components/CustomApproval/Settings/components/CustomApproval/RuleDialog/RuleDialog.vue b/frontend/src/components/CustomApproval/Settings/components/CustomApproval/RuleDialog/RuleDialog.vueindex 982c8cf6ec..2d0dd7be26 100644--- a/frontend/src/components/CustomApproval/Settings/components/CustomApproval/RuleDialog/RuleDialog.vue+++ b/frontend/src/components/CustomApproval/Settings/components/CustomApproval/RuleDialog/RuleDialog.vue@@ -89,7 +89,7 @@ const beforeClose = async () => {return true;}const d = defer<boolean>();- nDialog.info({+ nDialog.warning({title: t("common.close"),content: t("common.will-lose-unsaved-data"),maskClosable: false,diff --git a/frontend/src/components/CustomApproval/Settings/components/RiskCenter/RiskDialog/RiskDialog.vue b/frontend/src/components/CustomApproval/Settings/components/RiskCenter/RiskDialog/RiskDialog.vueindex c02432f935..d087a4bf70 100644--- a/frontend/src/components/CustomApproval/Settings/components/RiskCenter/RiskDialog/RiskDialog.vue+++ b/frontend/src/components/CustomApproval/Settings/components/RiskCenter/RiskDialog/RiskDialog.vue@@ -77,7 +77,7 @@ const beforeClose = async () => {return true;}const d = defer<boolean>();- nDialog.info({+ nDialog.warning({title: t("common.close"),content: t("common.will-lose-unsaved-data"),maskClosable: false,diff --git a/frontend/src/components/ExprEditor/ConditionGroup.vue b/frontend/src/components/ExprEditor/ConditionGroup.vueindex 02e6fc801f..41da6f40de 100644--- a/frontend/src/components/ExprEditor/ConditionGroup.vue+++ b/frontend/src/components/ExprEditor/ConditionGroup.vue@@ -1,6 +1,6 @@<template><div- class="bb-risk-expr-editor-group w-full overflow-hidden space-y-2 py-0.5"+ class="w-full overflow-hidden space-y-2 py-0.5":class="[root ? '' : 'border rounded-[3px] bg-gray-50']"><div v-if="!root" class="pl-2.5 pr-1 text-gray-500 flex items-center">@@ -26,15 +26,6 @@</template></div><div v-if="allowAdmin" class="flex items-center justify-end">- <NButton- size="tiny"- quaternary- type="default"- :style="`flex-shrink: 0; padding-left: 0; padding-right: 0; --n-width: 22px`"- @click="addCondition"- >- <heroicons:plus class="w-4 h-4" />- </NButton><NButtonsize="tiny"quaternary@@ -85,7 +76,17 @@/></div></div>- <div v-if="root && allowAdmin" class="space-x-1">++ <div v-if="!root && allowAdmin" class="pl-1.5 pb-1">+ <NButton size="small" quaternary @click="addCondition">+ <template #icon+ ><heroicons:plus class="w-4 h-4 text-gray-500"+ /></template>+ <span class="text-gray-500">{{ $t("cel.condition.add") }}</span>+ </NButton>+ </div>++ <div v-if="root && allowAdmin" class="space-x-1 pt-3"><NButton size="small" quaternary @click="addCondition"><template #icon><heroicons:plus class="w-4 h-4" /></template><span>{{ $t("cel.condition.add") }}</span>diff --git a/frontend/src/components/IssueV1/components/IssueTableV1.vue b/frontend/src/components/IssueV1/components/IssueTableV1.vueindex ecfb1f0f89..d420e9be07 100644--- a/frontend/src/components/IssueV1/components/IssueTableV1.vue+++ b/frontend/src/components/IssueV1/components/IssueTableV1.vue@@ -9,7 +9,7 @@<NDataTablesize="small":columns="columnList"- :data="issueList"+ :data="sortedIssueList":striped="true":bordered="bordered":loading="loading"@@ -39,6 +39,7 @@<script lang="ts" setup>import { useElementSize } from "@vueuse/core";+import { orderBy } from "lodash-es";import type { DataTableColumn } from "naive-ui";import { NPerformantEllipsis, NDataTable } from "naive-ui";import { reactive, computed, watch, ref, h } from "vue";@@ -248,6 +249,24 @@ const showExtendedColumns = computed(() => {return tableWidth.value > 800;});+const sortedIssueList = computed(() => {+ if (!props.highlightText) {+ return props.issueList;+ }++ return orderBy(+ props.issueList,+ [+ (issue) =>+ `${issue.title} ${issue.description}`.includes(props.highlightText)+ ? 1+ : 0,+ (issue) => parseInt(issue.uid),+ ],+ ["desc", "desc"]+ );+});+const selectedIssueList = computed(() => {return props.issueList.filter((issue) =>state.selectedIssueIdList.has(issue.uid)