fix: meeting tabs, workspace tab merging, rail panels as tabs and general ui lag

This commit is contained in:
LukeGus committed 2026-10-01 13:14:11 -05:00
1 parent 3b58415f8f
commit 30da0850da
13 files changed
+364 -101

No files matched your search

+6 -2
View File
@@ -13,6 +13,8 @@ import { usePermissions } from "@/hooks/use-permissions";
import { useSyncAttentionCount } from "@/hooks/use-sync-status";
import { isElectron } from "@/lib/electron";
import { createRegistry } from "@/lib/registry";
import { getPanel } from "@/shell/panel-registry";
import { getTabType } from "@/shell/tab-registry";
/**
* The one list of navigation destinations.
@@ -217,10 +219,12 @@ export function rightDockableIds(): string[] {
.map((item) => item.id);
}
/** Ids that may be opened as a full-width tab. */
/** Ids that may be opened as a full-width tab: a tab type or a panel to show. */
export function promotableIds(): string[] {
return [...mergedRailItems(), ...RAIL_UTILITY_ITEMS]
.filter((item) => item.promotable)
.filter(
(item) => item.promotable && (getTabType(item.id) || getPanel(item.id)),
)
.map((item) => item.id);
}