feat(tabs): configurable tab bar position, grouping and sorting

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-09-01 10:59:50 +08:00
1 parent d69cf9da79
commit 5f9ba51769
18 files changed
+728 -353

No files matched your search

@@ -17,6 +17,7 @@ export interface SavedQueryResultRun {
export interface SavedOpenTab {
id: string;
createdAt?: number;
title: string;
customTitle?: boolean;
connectionId: string;
@@ -91,6 +92,7 @@ function restoredOriginalSql(tab: SavedOpenTab, mode: QueryTab["mode"], sql: str
export function serializeOpenTabs(tabs: QueryTab[]): SavedOpenTab[] {
return tabs.map((tab) => ({
id: tab.id,
...(typeof tab.createdAt === "number" ? { createdAt: tab.createdAt } : {}),
title: tab.title,
...(tab.customTitle ? { customTitle: true } : {}),
connectionId: tab.connectionId,
@@ -34,6 +34,9 @@ export const EDITOR_SETTINGS_DRAFT_KEYS = [
"savedSqlOpenTargetMode",
"appLayout",
"tabLayout",
"tabPlacement",
"tabGroupMode",
"tabSortMode",
"showColumnCommentsInHeader",
"showColumnTypesInHeader",
"dataGridShowTransposeFieldMetadata",