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
feat(tabs): distinguish object and table data tabs
zhangyc4062f11a262a
diff --git a/apps/desktop/src/components/layout/AppTabBar.vue b/apps/desktop/src/components/layout/AppTabBar.vueindex c8e38d3466..8c8a9f2f03 100644--- a/apps/desktop/src/components/layout/AppTabBar.vue+++ b/apps/desktop/src/components/layout/AppTabBar.vue@@ -449,7 +449,8 @@ function tabColorStyle(tab: QueryTab) {function tabIconClass(tab: QueryTab) {if (tab.mode === "mq") return "";- if (tab.mode === "data" || tab.mode === "mongo" || tab.mode === "vector" || tab.mode === "redis" || tab.mode === "hbase" || tab.mode === "objects" || tab.mode === "structure") return "text-emerald-600 dark:text-emerald-400";+ if (tab.mode === "objects") return "text-amber-500 dark:text-amber-400";+ if (tab.mode === "data" || tab.mode === "mongo" || tab.mode === "vector" || tab.mode === "redis" || tab.mode === "hbase" || tab.mode === "structure") return "text-emerald-600 dark:text-emerald-400";return "text-blue-600 dark:text-blue-400";}diff --git a/apps/desktop/src/components/layout/__tests__/AppTabBar.spec.ts b/apps/desktop/src/components/layout/__tests__/AppTabBar.spec.tsindex 4ce55a363a..5f99757700 100644--- a/apps/desktop/src/components/layout/__tests__/AppTabBar.spec.ts+++ b/apps/desktop/src/components/layout/__tests__/AppTabBar.spec.ts@@ -23,6 +23,15 @@ describe("AppTabBar HBase presentation", () => {it("uses the table icon in regular, pinned, and overflow tab surfaces", () => {expect(tabBarSource).toContain('if (tab.mode === "data" || tab.mode === "mongo" || tab.mode === "redis" || tab.mode === "hbase") return Table2;');expect(tabBarSource.match(/tab\.mode === 'hbase'/g)).toHaveLength(2);- expect(tabBarSource).toContain('tab.mode === "hbase" || tab.mode === "objects"');+ expect(tabBarSource).toContain('tab.mode === "hbase" || tab.mode === "structure"');+ });+});++describe("AppTabBar objects presentation", () => {+ it("uses an amber icon color on regular, pinned, and overflow tab surfaces", () => {+ expect(tabBarSource).toContain('if (tab.mode === "objects") return "text-amber-500 dark:text-amber-400";');+ expect(tabBarSource).toContain('if (tab.mode === "objects") return TableProperties;');+ expect(tabBarSource.match(/:class="tabIconClass\(tab\)"/g)).toHaveLength(2);+ expect(tabBarSource.match(/tabMenuIcon\(tab\).*tabIconClass\(tab\)/g)).toHaveLength(2);});});