Keep sidebar pins visible while reopening (#2210)

* fix(app): keep sidebar pins visible while reopening

Hidden sidebars stop consuming live workspace updates but retain their last rendered entries so the opening animation never exposes an empty list.

* test(app): reuse sidebar pin flow
This commit is contained in:
Mohamed Boudra
2026-07-18 22:26:31 +02:00
committed by GitHub
parent 8cc2ae0ba4
commit 0cfb9b6b94
3 changed files with 36 additions and 1 deletions
+7
View File
@@ -39,6 +39,13 @@ export async function clickArchiveWorkspaceMenuItem(
await archiveItem.click();
}
export async function pinWorkspaceFromSidebar(page: Page, workspaceId: string): Promise<void> {
const serverId = await openWorkspaceSidebarKebab(page, workspaceId);
const pinItem = page.getByTestId(`sidebar-workspace-menu-pin-${serverId}:${workspaceId}`);
await expect(pinItem).toBeVisible({ timeout: 10_000 });
await pinItem.click();
}
export async function archiveWorkspaceFromSidebar(page: Page, workspaceId: string): Promise<void> {
// A clean workspace archives with no prompt. Managed worktree backing may raise
// a browser confirm for unsynced work, so accept it when present.