Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat: file type in release view (#17296)
p0ny3a840dde7df4
diff --git a/frontend/src/components/Plan/components/StatementSection/ReleaseView/ReleaseView.vue b/frontend/src/components/Plan/components/StatementSection/ReleaseView/ReleaseView.vueindex 96c18b5249..283bff84f8 100644--- a/frontend/src/components/Plan/components/StatementSection/ReleaseView/ReleaseView.vue+++ b/frontend/src/components/Plan/components/StatementSection/ReleaseView/ReleaseView.vue@@ -83,9 +83,7 @@v-if="file.type":class="['inline-flex items-center px-1.5 py-0.5 rounded text-xs flex-shrink-0',- file.type === Release_File_Type.VERSIONED- ? 'bg-blue-100 text-blue-800 '- : 'bg-gray-100 text-gray-800 ',+ 'bg-blue-100 text-blue-800 ',]">{{ getReleaseFileTypeText(file.type) }}@@ -203,16 +201,24 @@ const getChangeTypeText = (changeType: Release_File_ChangeType) => {return t("release.change-type.ddl-ghost");case Release_File_ChangeType.DML:return t("release.change-type.dml");+ case Release_File_ChangeType.CHANGE_TYPE_UNSPECIFIED:+ return t("release.change-type.unspecified");default:+ changeType satisfies never;return t("release.change-type.unspecified");}};-const getReleaseFileTypeText = (type: Release_File_Type) => {- switch (type) {+const getReleaseFileTypeText = (fileType: Release_File_Type) => {+ switch (fileType) {case Release_File_Type.VERSIONED:return t("release.file-type.versioned");+ case Release_File_Type.DECLARATIVE:+ return t("release.file-type.declarative");+ case Release_File_Type.TYPE_UNSPECIFIED:+ return t("release.file-type.unspecified");default:+ fileType satisfies never;return t("release.file-type.unspecified");}};diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 8cefc323e6..b50266923c 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -2835,6 +2835,7 @@},"file-type": {"versioned": "Versioned",+ "declarative": "Declarative","unspecified": "Unspecified"},"vcs-type": {diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 23005525ab..3395416b54 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -2835,7 +2835,8 @@},"file-type": {"versioned": "Versión",- "unspecified": "No especificado"+ "unspecified": "No especificado",+ "declarative": "Declarativo"},"vcs-type": {"unspecified": "No especificado"@@ -2907,4 +2908,4 @@"last-visit": "Última visita","changelog-for-version": "Registro de cambios para {version}"}-}\ No newline at end of file+}diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex bec77d5523..735bfe72b3 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -2835,7 +2835,8 @@},"file-type": {"versioned": "バージョン",- "unspecified": "未指定"+ "unspecified": "未指定",+ "declarative": "宣言"},"vcs-type": {"unspecified": "未指定"diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex 3f9d15aa82..68bbbb8d2a 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -2835,7 +2835,8 @@},"file-type": {"versioned": "Phiên bản",- "unspecified": "Không xác định"+ "unspecified": "Không xác định",+ "declarative": "Khai báo"},"vcs-type": {"unspecified": "Không xác định"@@ -2907,4 +2908,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 file+}diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex d21c6e1735..f3b878c4e7 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -2835,7 +2835,8 @@},"file-type": {"versioned": "版本化",- "unspecified": "未指定"+ "unspecified": "未指定",+ "declarative": "声明式"},"vcs-type": {"unspecified": "未指定"