Skip to content

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

chore: tweak change history list toolbar (#8381)

Tianzhou (天舟)8a6bbd3b46a4
diff --git a/frontend/src/components/DatabaseChangeHistoryPanel.vue b/frontend/src/components/DatabaseChangeHistoryPanel.vue
index 7e80f6b30a..c0c6801c48 100644
--- a/frontend/src/components/DatabaseChangeHistoryPanel.vue
+++ b/frontend/src/components/DatabaseChangeHistoryPanel.vue
@@ -3,26 +3,7 @@
<div
class="w-full flex flex-row justify-between items-center text-lg leading-6 font-medium text-main space-x-2"
>
- <div class="flex flex-row justify-start items-center space-x-2">
- <span>{{ $t("change-history.self") }}</span>
- <BBSpin
- v-if="state.loading"
- :title="$t('change-history.refreshing-history')"
- />
- </div>
- <div class="flex flex-row justify-end items-center grow space-x-2">
- <label
- v-for="item in CHANGE_TYPES"
- :key="item"
- class="flex items-center gap-x-2 text-sm text-gray-600"
- >
- <NCheckbox
- :checked="state.selectedChangeType.has(item)"
- @update:checked="toggleChangeType(item, $event)"
- >
- {{ item }}
- </NCheckbox>
- </label>
+ <div class="flex flex-row justify-start items-center space-x-4">
<div class="w-44">
<BBSelect
:selected-item="state.selectedAffectedTable"
@@ -39,6 +20,26 @@
</template>
</BBSelect>
</div>
+ <div class="flex items-center">
+ <label
+ v-for="item in CHANGE_TYPES"
+ :key="item"
+ class="text-sm text-gray-600"
+ >
+ <NCheckbox
+ :checked="state.selectedChangeType.has(item)"
+ @update:checked="toggleChangeType(item, $event)"
+ >
+ {{ item }}
+ </NCheckbox>
+ </label>
+ </div>
+ </div>
+ <div class="flex flex-row justify-end items-center grow space-x-2">
+ <BBSpin
+ v-if="state.loading"
+ :title="$t('change-history.refreshing-history')"
+ />
<BBTooltipButton
type="normal"
:disabled="!allowExportChangeHistory || state.isExporting"
diff --git a/scripts/.air.toml b/scripts/.air.toml
index fe3c9c1092..537b0a157d 100644
--- a/scripts/.air.toml
+++ b/scripts/.air.toml
@@ -3,17 +3,27 @@ root = "."
tmp_dir = ".air"
[build]
- bin = './.air/bytebase --port 8080 --data . --debug --disable-sample'
- ## Use --tags "store.db" to enable SQL query logging against our metadata db.
- cmd = """
+bin = './.air/bytebase --port 8080 --data . --debug'
+## Use --tags "store.db" to enable SQL query logging against our metadata db.
+cmd = """
go build \
--tags "" \
-o ./.air/bytebase ./backend/bin/server/main.go"""
- delay = 500
- exclude_dir = [".air", "bytebase-build", "docs", "frontend", "helm-charts", "proto", "quickstart", "scripts", "vendor"]
- exclude_file = []
- exclude_regex = []
- exclude_unchanged = false
- follow_symlink = false
- send_interrupt = true
- kill_delay = 1000
+delay = 500
+exclude_dir = [
+ ".air",
+ "bytebase-build",
+ "docs",
+ "frontend",
+ "helm-charts",
+ "proto",
+ "quickstart",
+ "scripts",
+ "vendor",
+]
+exclude_file = []
+exclude_regex = []
+exclude_unchanged = false
+follow_symlink = false
+send_interrupt = true
+kill_delay = 1000