Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: fix classification display (#10997)

boojackf533af417bf6
diff --git a/frontend/src/components/SchemaTemplate/ClassificationLevelBadge.vue b/frontend/src/components/SchemaTemplate/ClassificationLevelBadge.vue
index 98fbce34ec..1657ee836e 100644
--- a/frontend/src/components/SchemaTemplate/ClassificationLevelBadge.vue
+++ b/frontend/src/components/SchemaTemplate/ClassificationLevelBadge.vue
@@ -1,6 +1,6 @@
<template>
<NPerformantEllipsis v-if="showText" :line-clamp="1">
- {{ columnClassification?.title ?? classification ?? placeholder }}
+ {{ columnClassification?.title || classification || placeholder }}
</NPerformantEllipsis>
<span v-if="level" :class="['px-1 py-0.5 rounded text-xs', levelColor]">
{{ level.title }}
diff --git a/frontend/src/components/TableDetailDrawer.vue b/frontend/src/components/TableDetailDrawer.vue
index 4b8052f74e..3c90cea5c4 100644
--- a/frontend/src/components/TableDetailDrawer.vue
+++ b/frontend/src/components/TableDetailDrawer.vue
@@ -120,7 +120,7 @@
</div>
<div v-if="classificationConfig" class="col-span-1">
- <dt class="text-sm text-control-light">
+ <dt class="text-sm font-medium text-control-light">
{{ $t("database.classification.self") }}
</dt>
<dd class="mt-1 text-lg sm:text-xl font-semibold">
@@ -233,6 +233,7 @@ import { computedAsync } from "@vueuse/core";
import { CodeIcon } from "lucide-vue-next";
import { NButton, NPopover } from "naive-ui";
import { computed, reactive, ref } from "vue";
+import ClassificationLevelBadge from "@/components/SchemaTemplate/ClassificationLevelBadge.vue";
import TableSchemaViewer from "@/components/TableSchemaViewer.vue";
import {
DatabaseV1Name,