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: upgrade lucide icons and improve SQL review check display (#17356)
boojack95e050a5e8aa
diff --git a/frontend/package.json b/frontend/package.jsonindex 906a40ccf9..6c476fecdb 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -47,8 +47,8 @@"js-yaml": "4.1.0","jszip": "^3.10.1","lodash-es": "4.17.21",- "lucide-static": "^0.511.0",- "lucide-vue-next": "^0.511.0",+ "lucide-static": "^0.542.0",+ "lucide-vue-next": "^0.542.0","markdown-it": "^14.1.0","match-sorter": "6.3.4","monaco-editor": "npm:@codingame/[email protected]",diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yamlindex 0d8083d70e..21add22a8e 100644--- a/frontend/pnpm-lock.yaml+++ b/frontend/pnpm-lock.yaml@@ -104,11 +104,11 @@ importers:specifier: 4.17.21version: 4.17.21lucide-static:- specifier: ^0.511.0- version: 0.511.0+ specifier: ^0.542.0+ version: 0.542.0lucide-vue-next:- specifier: ^0.511.0- version: 0.511.0([email protected]([email protected]))+ specifier: ^0.542.0+ version: 0.542.0([email protected]([email protected]))markdown-it:specifier: ^14.1.0version: 14.1.0@@ -3919,11 +3919,11 @@ packages:resolution: {integrity: sha512-AI2r85+4MquTw9ZYqabu4nMwy9Oftlfa/e/52t9IjtfG+mGBbTNdAoZ3RQKLHR6r0wQnwZnPIEh/Ya6XTWAKNA==}- resolution: {integrity: sha512-/MWOjEyGZO84B16BeqbeleinbmeYxOBsbYDt/Yk6xGwMYwDm6dx43jKHMxGDqW9U84qWL13dNvVW0SMADhUSyg==}+ resolution: {integrity: sha512-jnXxFQYH0F24Nj5Zjje5jmMbGjClohnuSEYwTjAGuAa7UYDQiUjl0H7t4Ha19lkKryhCQA3VfeAJMjarrhzNZQ==}- resolution: {integrity: sha512-VSv0F3pHniGN7JMMzDcLFNMQbl8381+shNnHwV8hi+El7xl2ZL8qdNuzPoiBViKk8mTKK5K3ZDfmE/wEcTZVIQ==}+ resolution: {integrity: sha512-cJfyhFoneDgYTouHwUJEutXaCW5EQuRrBsvfELudWnMiwfqvcEtpZTFZLdZ5Nrqow+znzn+Iyhu3KeYIfa3mEg==}peerDependencies:vue: '>=3.0.1'@@ -9953,9 +9953,9 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:vue: 3.5.18([email protected])diff --git a/frontend/src/components/Plan/components/ChecksView/ChecksView.vue b/frontend/src/components/Plan/components/ChecksView/ChecksView.vueindex d06aff591f..afbb7a1c27 100644--- a/frontend/src/components/Plan/components/ChecksView/ChecksView.vue+++ b/frontend/src/components/Plan/components/ChecksView/ChecksView.vue@@ -53,14 +53,22 @@<span class="text-sm font-medium">{{ getCheckTypeLabel(checkRun.type) }}</span>- <DatabaseDisplay :database="checkRun.target" />+ <NTooltip v-if="getCheckTypeDescription(checkRun.type)">+ <template #trigger>+ <CircleQuestionMarkIcon+ class="w-4 h-4 text-control-light"+ />+ </template>+ {{ getCheckTypeDescription(checkRun.type) }}+ </NTooltip>+ <span class="text-sm text-control-light">+ {{ formatTime(checkRun.createTime) }}+ </span></div></div><div class="flex items-center gap-2">- <span class="text-sm text-control">- {{ formatTime(checkRun.createTime) }}- </span>+ <DatabaseDisplay :database="checkRun.target" /></div></div>@@ -101,7 +109,9 @@ import {DatabaseIcon,ShieldIcon,SearchCodeIcon,+ CircleQuestionMarkIcon,} from "lucide-vue-next";+import { NTooltip } from "naive-ui";import { computed, ref, watch } from "vue";import { useI18n } from "vue-i18n";import { BBSpin } from "@/bbkit";@@ -195,7 +205,7 @@ const getCheckTypeIcon = (type: PlanCheckRun_Type) => {const getCheckTypeLabel = (type: PlanCheckRun_Type) => {switch (type) {case PlanCheckRun_Type.DATABASE_STATEMENT_ADVISE:- return t("task.check-type.sql-review");+ return t("task.check-type.sql-review.self");case PlanCheckRun_Type.DATABASE_STATEMENT_SUMMARY_REPORT:return t("task.check-type.summary-report");case PlanCheckRun_Type.DATABASE_CONNECT:@@ -207,6 +217,15 @@ const getCheckTypeLabel = (type: PlanCheckRun_Type) => {}};+const getCheckTypeDescription = (type: PlanCheckRun_Type) => {+ switch (type) {+ case PlanCheckRun_Type.DATABASE_STATEMENT_ADVISE:+ return t("task.check-type.sql-review.description");+ default:+ return undefined;+ }+};+const formatTime = (timestamp: Timestamp | undefined): string => {if (!timestamp) return "";return humanizeTs(diff --git a/frontend/src/components/Plan/components/SQLCheckSection/SQLCheckBadge.vue b/frontend/src/components/Plan/components/SQLCheckSection/SQLCheckBadge.vueindex 3d05a3e80e..a43cfe4f39 100644--- a/frontend/src/components/Plan/components/SQLCheckSection/SQLCheckBadge.vue+++ b/frontend/src/components/Plan/components/SQLCheckSection/SQLCheckBadge.vue@@ -19,7 +19,7 @@<CircleAlertIcon :size="16" /></template></template>- <span>{{ $t("task.check-type.sql-review") }}</span>+ <span>{{ $t("task.check-type.sql-review.self") }}</span></NTag><SQLCheckPaneldiff --git a/frontend/src/components/PlanCheckRun/PlanCheckRunBadge.vue b/frontend/src/components/PlanCheckRun/PlanCheckRunBadge.vueindex c0b4584c2c..df7ca3dcc1 100644--- a/frontend/src/components/PlanCheckRun/PlanCheckRunBadge.vue+++ b/frontend/src/components/PlanCheckRun/PlanCheckRunBadge.vue@@ -113,7 +113,7 @@ const title = computed(() => {case PlanCheckRun_Type.DATABASE_STATEMENT_FAKE_ADVISE:return t("task.check-type.fake");case PlanCheckRun_Type.DATABASE_STATEMENT_ADVISE:- return t("task.check-type.sql-review");+ return t("task.check-type.sql-review.self");case PlanCheckRun_Type.DATABASE_CONNECT:return t("task.check-type.connection");case PlanCheckRun_Type.DATABASE_GHOST_SYNC:diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex e90490ee34..e2c8c67f9a 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -264,7 +264,10 @@"check-type": {"fake": "Fake","connection": "Connection",- "sql-review": "SQL review",+ "sql-review": {+ "self": "SQL review",+ "description": "Analyze the SQL statement for potential issues and provide recommendations. Includes built-in rules and your custom rules."+ },"ghost-sync": "gh-ost sync","affected-rows": {"self": "Affected rows",diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 87c4a0e962..d37e04a318 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -264,7 +264,10 @@"check-type": {"fake": "Falso","connection": "Conexión",- "sql-review": "Revisión de SQL",+ "sql-review": {+ "self": "Revisión de SQL",+ "description": "Analice la sentencia SQL para detectar posibles problemas y proporcione recomendaciones. Incluye reglas integradas y sus reglas personalizadas."+ },"ghost-sync": "Sincronización gh-ost","affected-rows": {"self": "Filas afectadas",@@ -2911,4 +2914,4 @@"last-visit": "Última visita","changelog-for-version": "Registro de cambios para {version}"}-}+}\ No newline at end of filediff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 773717a7ee..cdbbae9733 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -264,7 +264,10 @@"check-type": {"fake": "偽物","connection": "接続する",- "sql-review": "SQL監査",+ "sql-review": {+ "self": "SQLレビュー",+ "description": "SQL文を分析し、潜在的な問題点を特定し、推奨事項を提示します。組み込みルールとカスタムルールが含まれます。"+ },"ghost-sync": "gh-ost同期","affected-rows": {"self": "影響を受ける行",@@ -2911,4 +2914,4 @@"last-visit": "最終訪問","changelog-for-version": "{version} の変更履歴"}-}+}\ No newline at end of filediff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex 7455225330..336532d61c 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -264,7 +264,10 @@"check-type": {"fake": "Giả","connection": "Kết nối",- "sql-review": "Đánh giá SQL",+ "sql-review": {+ "self": "Đánh giá SQL",+ "description": "Phân tích câu lệnh SQL để tìm ra các vấn đề tiềm ẩn và đưa ra khuyến nghị. Bao gồm các quy tắc tích hợp sẵn và quy tắc tùy chỉnh của bạn."+ },"ghost-sync": "Đồng bộ gh-ost","affected-rows": {"self": "Số dòng bị ảnh hưởng",@@ -2911,4 +2914,4 @@"last-visit": "Lần truy cập cuối","changelog-for-version": "Nhật ký thay đổi cho phiên bản {version}"}-}+}\ No newline at end of filediff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 5ca22a45c1..46f50bd143 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -264,7 +264,10 @@"check-type": {"fake": "Fake","connection": "连接",- "sql-review": "SQL 审核",+ "sql-review": {+ "self": "SQL 审核",+ "description": "分析 SQL 语句中的潜在问题并提供建议。包括内置规则以及您的自定义规则。"+ },"ghost-sync": "gh-ost 同步","affected-rows": {"self": "影响行数",@@ -2911,4 +2914,4 @@"last-visit": "上次访问","changelog-for-version": "{version} 的更新日志"}-}+}\ No newline at end of filediff --git a/frontend/src/shims-3rd-party.d.ts b/frontend/src/shims-3rd-party.d.tsindex 8172621b19..e64f3bc55f 100644--- a/frontend/src/shims-3rd-party.d.ts+++ b/frontend/src/shims-3rd-party.d.ts@@ -1,6 +1,6 @@declare module "pev2" {import type { defineComponent } from "vue";const Plan: ReturnType<typeof defineComponent>;- // eslint-disable-next-line prettier/prettier+export { Plan };}