Skip to content

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

chore: add instance name in db list (#6710)

ecmadao3a9f62e9594a
diff --git a/frontend/src/bbkit/BBOutline.vue b/frontend/src/bbkit/BBOutline.vue
index 7fcc3a73c0..9e12c3136e 100644
--- a/frontend/src/bbkit/BBOutline.vue
+++ b/frontend/src/bbkit/BBOutline.vue
@@ -46,7 +46,7 @@
class="outline-item group flex justify-between pr-1 py-1"
:class="'pl-' + (4 + level * 3)"
>
- <span class="truncate">{{ item.name }}</span>
+ <span class="truncate" :title="item.name">{{ item.name }}</span>
<button
v-if="allowDelete && index == state.hoverIndex"
class="focus:outline-none"
@@ -55,7 +55,9 @@
<heroicons-solid:x class="w-4 h-4 hover:text-control-hover" />
</button>
</router-link>
- <span v-else class="pl-1 py-1 truncate">{{ item.name }}</span>
+ <span v-else class="pl-1 py-1 truncate" :title="item.name">{{
+ item.name
+ }}</span>
</div>
</div>
</template>
diff --git a/frontend/src/components/DatabaseListSidePanel.vue b/frontend/src/components/DatabaseListSidePanel.vue
index d6aac1d243..b060e13a87 100644
--- a/frontend/src/components/DatabaseListSidePanel.vue
+++ b/frontend/src/components/DatabaseListSidePanel.vue
@@ -99,7 +99,7 @@ const databaseListByEnvironment = computed(() => {
if (dbList) {
dbList.push({
id: `bb.database.${database.uid}`,
- name: database.databaseName,
+ name: `${database.databaseName} (${database.instanceEntity.title})`,
link: `/db/${databaseV1Slug(database)}`,
});
}
@@ -148,7 +148,7 @@ const tenantDatabaseListByProject = computed((): BBOutlineItem[] => {
name: project.title,
childList: databaseList.map<BBOutlineItem>((db) => ({
id: `bb.project.${project.uid}.database.${db.databaseName}`,
- name: db.databaseName,
+ name: `${db.databaseName} (${db.instanceEntity.title})`,
link: `/project/${projectV1Slug(project)}#databases`,
})),
childCollapse: true,