25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(ui): stabilize live progress counters
Diego Fabricio6a2000deff7c
diff --git a/apps/desktop/src/components/connection/ConnectionDialog.vue b/apps/desktop/src/components/connection/ConnectionDialog.vueindex 076fd62f9b..6bb617f370 100644--- a/apps/desktop/src/components/connection/ConnectionDialog.vue+++ b/apps/desktop/src/components/connection/ConnectionDialog.vue@@ -8304,7 +8304,7 @@ function openExternalUrl(url: string) {<div class="flex items-center justify-between gap-3"><div class="min-w-0"><div class="truncate text-sm font-medium">{{ agentInstallLabel || agentInstallDriverKey }}</div>- <div class="mt-1 text-xs text-muted-foreground">{{ agentInstallProgressLabel }}</div>+ <div class="mt-1 text-xs text-muted-foreground tabular-nums">{{ agentInstallProgressLabel }}</div></div><Loader2 v-if="agentInstallRunning && !agentInstallError" class="h-4 w-4 shrink-0 animate-spin text-muted-foreground" /></div>diff --git a/apps/desktop/src/components/editor/MultiDbExecuteDialog.vue b/apps/desktop/src/components/editor/MultiDbExecuteDialog.vueindex fd201b7954..e054721dd2 100644--- a/apps/desktop/src/components/editor/MultiDbExecuteDialog.vue+++ b/apps/desktop/src/components/editor/MultiDbExecuteDialog.vue@@ -723,7 +723,7 @@ watch(</DialogHeader><div v-if="executionStarted && batch" class="flex min-h-0 flex-1 flex-col">- <div class="flex shrink-0 flex-wrap items-center gap-2 border-b bg-muted/20 px-5 py-3 text-xs text-muted-foreground">+ <div class="flex shrink-0 flex-wrap items-center gap-2 border-b bg-muted/20 px-5 py-3 text-xs text-muted-foreground tabular-nums"><span>{{ t("multiDbExecute.progress", { completed: progressCompleted, total: batch.items.length }) }}</span><Badge variant="secondary">{{ executionModeLabel() }}</Badge><span class="tabular-nums">{{ t("multiDbExecute.elapsed", { duration: formatDataTransferDuration(elapsedMs) }) }}</span>diff --git a/apps/desktop/src/components/export/DatabaseExportDialog.vue b/apps/desktop/src/components/export/DatabaseExportDialog.vueindex f8eeba3ab1..7dfa01f860 100644--- a/apps/desktop/src/components/export/DatabaseExportDialog.vue+++ b/apps/desktop/src/components/export/DatabaseExportDialog.vue@@ -893,7 +893,7 @@ watch(<div v-else class="h-full rounded-full transition-[width] duration-300" :class="exportError ? 'bg-destructive' : exportCancelled ? 'bg-yellow-500' : exportDone ? 'bg-green-500' : 'bg-primary'" :style="{ width: `${exportDone ? 100 : progressPercent}%` }" /></div>- <div v-if="exportProgress && !isPreparingExport" class="text-xs text-muted-foreground">+ <div v-if="exportProgress && !isPreparingExport" class="text-xs text-muted-foreground tabular-nums">{{ exportAllDatabases ? t("databaseExport.allRowsExported", { count: exportProgress.rowsExported.toLocaleString() }) : t("databaseExport.rowsExported", { current: exportProgress.objectIndex, total: exportProgress.totalObjects, count: exportProgress.rowsExported.toLocaleString() }) }}</div><div v-if="exportElapsedText" class="text-xs text-muted-foreground tabular-nums">diff --git a/apps/desktop/src/components/grid/DataGrid.vue b/apps/desktop/src/components/grid/DataGrid.vueindex b2d7203c6c..1745eb406f 100644--- a/apps/desktop/src/components/grid/DataGrid.vue+++ b/apps/desktop/src/components/grid/DataGrid.vue@@ -11300,7 +11300,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {<div v-if="gridSurfaceBusy" class="absolute inset-0 z-20 bg-background/50 flex items-center justify-center"><div class="flex items-center gap-2 rounded-md border bg-background px-3 py-1.5 text-xs text-muted-foreground shadow-sm"><Loader2 class="w-3.5 h-3.5 animate-spin" />- <span>{{ formatElapsedSeconds(loadingElapsed) }}s</span>+ <span class="tabular-nums">{{ formatElapsedSeconds(loadingElapsed) }}s</span></div></div></template>diff --git a/apps/desktop/src/components/import/TableImportDialog.vue b/apps/desktop/src/components/import/TableImportDialog.vueindex 7220cc995f..70b3507aa7 100644--- a/apps/desktop/src/components/import/TableImportDialog.vue+++ b/apps/desktop/src/components/import/TableImportDialog.vue@@ -1429,7 +1429,7 @@ watch(rawProgressPercent, (percent) => {<FileUp v-else class="h-5 w-5 text-muted-foreground" /><div class="min-w-0 flex-1"><div class="text-sm font-medium">{{ t(progressLabelKey) }}</div>- <div class="mt-1 text-xs text-muted-foreground">+ <div class="mt-1 text-xs text-muted-foreground tabular-nums"><template v-if="progress?.totalRowsExact !== false && (progress?.totalRows ?? 0) > 0">{{ progress?.rowsImported ?? 0 }} / {{ progress?.totalRows ?? 0 }}</template><template v-else>{{ progress?.rowsImported ?? 0 }} {{ t("tableImport.rowsImported") }}</template>· {{ progressPercent }}% ·diff --git a/apps/desktop/src/components/layout/UpdateDialog.vue b/apps/desktop/src/components/layout/UpdateDialog.vueindex 428c7386c6..60276b42ba 100644--- a/apps/desktop/src/components/layout/UpdateDialog.vue+++ b/apps/desktop/src/components/layout/UpdateDialog.vue@@ -154,7 +154,7 @@ watch(<Loader2 class="h-4 w-4 animate-spin" />{{ t("updates.installing") }}</Button>- <Button v-else-if="isDownloadingUpdate" class="w-52" disabled>+ <Button v-else-if="isDownloadingUpdate" class="w-52 tabular-nums" disabled><Loader2 class="h-4 w-4 animate-spin" />{{ t("updates.downloading", { progress: downloadProgress }) }}</Button>diff --git a/apps/desktop/src/components/lineage/FieldLineageDialog.vue b/apps/desktop/src/components/lineage/FieldLineageDialog.vueindex 2adac3d4c1..5a527792f5 100644--- a/apps/desktop/src/components/lineage/FieldLineageDialog.vue+++ b/apps/desktop/src/components/lineage/FieldLineageDialog.vue@@ -317,7 +317,7 @@ function openItemTarget(item: FieldLineageItem) {<div class="min-h-0 flex-1 overflow-y-auto px-6 py-4"><div v-if="loading" class="rounded-md border bg-muted/20 p-4">- <div class="flex items-center gap-2 text-sm text-muted-foreground">+ <div class="flex items-center gap-2 text-sm text-muted-foreground tabular-nums"><Loader2 class="h-4 w-4 animate-spin" />{{ t("lineage.loading", { done: progressDone, total: progressTotal || "-" }) }}</div>diff --git a/apps/desktop/src/components/search/DatabaseSearchDialog.vue b/apps/desktop/src/components/search/DatabaseSearchDialog.vueindex 541435e94e..5c2d68bcb4 100644--- a/apps/desktop/src/components/search/DatabaseSearchDialog.vue+++ b/apps/desktop/src/components/search/DatabaseSearchDialog.vue@@ -309,8 +309,8 @@ function openResult(item: SearchResultItem) {</div><div v-if="running || progressTotal" class="flex flex-wrap items-center gap-3 text-xs text-muted-foreground">- <span>{{ loadingTables ? t("databaseSearch.loadingTables") : progressLabel }}</span>- <span>{{ t("databaseSearch.resultCount", { count: results.length }) }}</span>+ <span class="tabular-nums">{{ loadingTables ? t("databaseSearch.loadingTables") : progressLabel }}</span>+ <span class="tabular-nums">{{ t("databaseSearch.resultCount", { count: results.length }) }}</span><span v-if="limitedTables" class="text-amber-600">{{ t("databaseSearch.limitedTables", { count: 200 }) }}</span></div>diff --git a/apps/desktop/src/components/sql-file/SqlFileExecutionDialog.vue b/apps/desktop/src/components/sql-file/SqlFileExecutionDialog.vueindex 34b5e7b5c2..aaa4a6a7f1 100644--- a/apps/desktop/src/components/sql-file/SqlFileExecutionDialog.vue+++ b/apps/desktop/src/components/sql-file/SqlFileExecutionDialog.vue@@ -692,7 +692,7 @@ watch(<div v-if="running && previews.length > 1 && currentFileIndex >= 0" class="flex items-center gap-1.5 text-xs text-muted-foreground"><FileCode class="w-3.5 h-3.5 shrink-0" />- <span class="truncate">{{ t("sqlFile.fileProgress", { current: currentFileIndex + 1, total: previews.length }) }} — {{ currentFileName }}</span>+ <span class="truncate tabular-nums">{{ t("sqlFile.fileProgress", { current: currentFileIndex + 1, total: previews.length }) }} — {{ currentFileName }}</span></div><template v-if="!running && previews.length > 1 && perFileResults.length > 0">@@ -741,23 +741,23 @@ watch(<div class="grid grid-cols-2 sm:grid-cols-4 gap-2 text-xs"><div class="border rounded-md px-2 py-1.5 min-w-0"><div class="text-muted-foreground truncate">{{ t("sqlFile.statement") }}</div>- <div class="font-medium truncate">{{ progress?.statementIndex ?? 0 }}</div>+ <div class="font-medium truncate tabular-nums">{{ progress?.statementIndex ?? 0 }}</div></div><div class="border rounded-md px-2 py-1.5 min-w-0"><div class="text-muted-foreground truncate">{{ t("sqlFile.succeeded") }}</div>- <div class="font-medium text-green-600 truncate">+ <div class="font-medium text-green-600 truncate tabular-nums">{{ progress?.successCount ?? 0 }}</div></div><div class="border rounded-md px-2 py-1.5 min-w-0"><div class="text-muted-foreground truncate">{{ t("sqlFile.failed") }}</div>- <div class="font-medium text-destructive truncate">+ <div class="font-medium text-destructive truncate tabular-nums">{{ progress?.failureCount ?? 0 }}</div></div><div class="border rounded-md px-2 py-1.5 min-w-0"><div class="text-muted-foreground truncate">{{ t("sqlFile.affectedRows") }}</div>- <div class="font-medium truncate">+ <div class="font-medium truncate tabular-nums">{{ (progress?.affectedRows ?? 0).toLocaleString() }}</div></div>