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: improve SQL Editor toolbar UI (#7659)
Tianzhou (天舟)6eebe5a29b54
diff --git a/frontend/src/views/sql-editor/EditorCommon/ConnectionPathBar.vue b/frontend/src/views/sql-editor/EditorCommon/ConnectionPathBar.vueindex dce0139d8f..b0833bdfc3 100644--- a/frontend/src/views/sql-editor/EditorCommon/ConnectionPathBar.vue+++ b/frontend/src/views/sql-editor/EditorCommon/ConnectionPathBar.vue@@ -4,13 +4,10 @@v-if="!tabStore.isDisconnected"class="flex justify-start items-center h-8 px-4 whitespace-nowrap overflow-x-auto">- <NPopover v-if="showReadonlyDatasourceWarning" trigger="hover">+ <NPopover v-if="showReadonlyDatasourceHint" trigger="hover"><template #trigger>- <heroicons-outline:exclamation- class="h-6 w-6 flex-shrink-0 mr-2"- :class="[- isProductionEnvironment ? 'text-yellow-500' : 'text-yellow-500',- ]"+ <heroicons-outline:information-circle+ class="h-5 w-5 flex-shrink-0 mr-2 text-info"/></template><p class="py-1">@@ -29,12 +26,11 @@v-if="selectedInstance.uid !== String(UNKNOWN_ID)"class="flex items-center">- <span class="">{{ selectedEnvironment.title }}</span><ProductionEnvironmentV1Icon:environment="selectedEnvironment"- class="ml-1":class="[isProductionEnvironment && '~!text-yellow-700']"/>+ <span class="ml-1">{{ selectedEnvironment.title }}</span></div><divv-if="selectedInstance.uid !== String(UNKNOWN_ID)"@@ -65,7 +61,7 @@<divv-if="isProductionEnvironment"- class="flex justify-start items-center py-1 sm:py-0 sm:h-8 px-4 sm:rounded-bl text-white bg-error"+ class="flex justify-start items-center py-1 sm:py-0 sm:h-6 px-4 sm:rounded-bl text-white text-sm bg-error">{{ $t("sql-editor.sql-execute-in-production-environment") }}</div>@@ -134,7 +130,7 @@ const hasReadonlyDataSource = computed(() => {);});-const showReadonlyDatasourceWarning = computed(() => {+const showReadonlyDatasourceHint = computed(() => {return (!isAdminMode.value &&selectedInstance.value.uid !== String(UNKNOWN_ID) &&diff --git a/frontend/src/views/sql-editor/EditorCommon/EditorAction.vue b/frontend/src/views/sql-editor/EditorCommon/EditorAction.vueindex 89b9b9c76a..e159daee9d 100644--- a/frontend/src/views/sql-editor/EditorCommon/EditorAction.vue+++ b/frontend/src/views/sql-editor/EditorCommon/EditorAction.vue@@ -11,7 +11,7 @@:disabled="!allowQuery"@click="handleRunQuery">- <mdi:play class="h-5 w-5 -ml-1.5" />+ <mdi:play class="-ml-1.5" /><span>{{showRunSelected ? $t("sql-editor.run-selected") : $t("common.run")@@ -23,7 +23,7 @@</span></NButton><NButton size="small" :disabled="!allowQuery" @click="handleExplainQuery">- <mdi:play class="h-5 w-5 -ml-1.5" />+ <mdi:play class="-ml-1.5" /><span>Explain</span><span class="hidden sm:inline ml-1">({{ keyboardShortcutStr("cmd_or_ctrl+E") }})@@ -61,7 +61,7 @@:disabled="!allowSave"@click="() => emit('save-sheet')">- <carbon:save class="h-5 w-5 -ml-1" />+ <carbon:save class="-ml-1" /><span class="ml-1">{{ $t("common.save") }}</span><span class="hidden sm:inline ml-1">({{ keyboardShortcutStr("cmd_or_ctrl+S") }})@@ -83,7 +83,7 @@"@click="handleShareButtonClick">- <carbon:share class="h-5 w-5" /> {{ $t("common.share") }}+ <carbon:share class="" /> {{ $t("common.share") }}<FeatureBadge:feature="'bb.feature.shared-sql-script'"custom-class="ml-2"