Skip to content

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

chore: add connection info popover to data source selector (#9501)

boojack69eb543c4b9b
diff --git a/frontend/src/views/sql-editor/EditorCommon/BatchQueryDatabasesSelector.vue b/frontend/src/views/sql-editor/EditorCommon/BatchQueryDatabasesSelector.vue
index 3c766ec914..98d20edbcc 100644
--- a/frontend/src/views/sql-editor/EditorCommon/BatchQueryDatabasesSelector.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/BatchQueryDatabasesSelector.vue
@@ -173,9 +173,6 @@ const dataTableColumns = computed(() => {
render(row: ComposedDatabase) {
return row.databaseName;
},
- filter(value: string, row: ComposedDatabase) {
- return ~row.databaseName.indexOf(value);
- },
},
{
title: t("common.environment"),
@@ -207,7 +204,7 @@ const dataTableColumns = computed(() => {
return h(LabelsColumn, {
labels: row.labels,
showCount: 1,
- placeholder: "-",
+ placeholder: "",
});
},
},
diff --git a/frontend/src/views/sql-editor/EditorCommon/QueryContextSettingPopover.vue b/frontend/src/views/sql-editor/EditorCommon/QueryContextSettingPopover.vue
index ca60f27d88..a43cad1ec6 100644
--- a/frontend/src/views/sql-editor/EditorCommon/QueryContextSettingPopover.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/QueryContextSettingPopover.vue
@@ -79,11 +79,26 @@ const renderLabel: SelectRenderLabel = (option) => {
[readableDataSourceType(dataSource.type)]
),
h(
- "span",
+ NPopover,
{
+ placement: "top",
+ trigger: "hover",
class: "ml-1",
},
- [dataSource.username]
+ {
+ trigger: () => {
+ return h(
+ "span",
+ {
+ class: "ml-1",
+ },
+ [dataSource.username]
+ );
+ },
+ default: () => {
+ return h("div", {}, [dataSource.host, ":", dataSource.port]);
+ },
+ }
),
];
return h(