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: move AI fix action near query errors
t8y21614365393fa
diff --git a/apps/desktop/src/components/grid/DataGrid.vue b/apps/desktop/src/components/grid/DataGrid.vueindex 939b29ef09..81ce54fc51 100644--- a/apps/desktop/src/components/grid/DataGrid.vue+++ b/apps/desktop/src/components/grid/DataGrid.vue@@ -5645,6 +5645,7 @@ const gridContextMenuItems = computed<ContextMenuItem[]>(() => {<div class="text-sm font-medium">{{ t("grid.queryError") }}</div><div class="text-xs max-w-lg break-all text-destructive/80">{{ errorMessage }}</div></div>+ <slot name="error-actions" :error-message="errorMessage" /></div><divdiff --git a/apps/desktop/src/components/layout/ContentArea.vue b/apps/desktop/src/components/layout/ContentArea.vueindex 8075f1d5ca..efe45c2b31 100644--- a/apps/desktop/src/components/layout/ContentArea.vue+++ b/apps/desktop/src/components/layout/ContentArea.vue@@ -445,19 +445,19 @@ defineExpose({ focusSearch, refreshData, handleModRTarget });(column: string, columnIndex: number, direction: 'asc' | 'desc' | null, whereInput?: string) =>emit('sort', column, columnIndex, direction, whereInput)"- />- <div- v-if="activeTab.result?.columns.includes('Error')"- class="flex items-center gap-2 px-3 py-1.5 border-t bg-destructive/5">- <Bot class="h-3.5 w-3.5 text-destructive" />- <button- class="text-xs text-destructive hover:underline"- @click="emit('fixWithAi', String(activeTab.result?.rows?.[0]?.[0] ?? ''))"- >- {{ t("ai.fixWithAi") }}- </button>- </div>+ <template v-if="activeTab.result?.columns.includes('Error')" #error-actions="{ errorMessage }">+ <Button+ variant="outline"+ size="sm"+ class="mt-2 h-7 gap-1.5 border-destructive/30 bg-background px-2.5 text-xs text-destructive hover:bg-destructive/10 hover:text-destructive"+ @click="emit('fixWithAi', String(errorMessage))"+ >+ <Bot class="h-3.5 w-3.5" />+ {{ t("ai.fixWithAi") }}+ </Button>+ </template>+ </DataGrid><divv-else-if="!activeTab.result && activeTab.isExecuting"class="flex-1 min-h-0 flex flex-col items-center justify-center gap-3 text-muted-foreground text-sm"