test(desktop): keep rebased checks green
This commit is contained in:
@@ -14,6 +14,9 @@ vi.mock('@/app/right-sidebar/terminal/terminals', () => ({
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
vi.mock('@/components/pane-shell/tree/store', () => ({
|
vi.mock('@/components/pane-shell/tree/store', () => ({
|
||||||
|
// preview.ts stamps explicit opens against the focused tree group.
|
||||||
|
$activeTreeGroup: atom(null),
|
||||||
|
$layoutTree: atom(null),
|
||||||
closeFocusedSessionTab: () => closeFocusedSessionTab(),
|
closeFocusedSessionTab: () => closeFocusedSessionTab(),
|
||||||
closeFocusedToolTab: () => closeFocusedToolTab()
|
closeFocusedToolTab: () => closeFocusedToolTab()
|
||||||
}))
|
}))
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ import { explicitOpenBlocksZone, PREVIEW_TILE_PREFIX } from '@/store/preview-exp
|
|||||||
import { canOpenBrowserWindow } from '@/store/windows'
|
import { canOpenBrowserWindow } from '@/store/windows'
|
||||||
|
|
||||||
import { paneMirror } from './pane-mirror'
|
import { paneMirror } from './pane-mirror'
|
||||||
import { forgetPreviewConsole } from './right-rail/preview-console-store'
|
|
||||||
import { PreviewTilePane } from './right-rail/preview'
|
import { PreviewTilePane } from './right-rail/preview'
|
||||||
|
import { forgetPreviewConsole } from './right-rail/preview-console-store'
|
||||||
|
|
||||||
/** The target behind a tile id, or null once its tab is gone. */
|
/** The target behind a tile id, or null once its tab is gone. */
|
||||||
function targetFor(tabId: string): PreviewTarget | null {
|
function targetFor(tabId: string): PreviewTarget | null {
|
||||||
@@ -228,7 +228,12 @@ export function watchPreviewTiles(): void {
|
|||||||
|
|
||||||
// Do not copy this zone over an explicit open that lives in a different
|
// Do not copy this zone over an explicit open that lives in a different
|
||||||
// group. A focus change after that open lifts the guard.
|
// group. A focus change after that open lifts the guard.
|
||||||
if (explicitOpenBlocksZone(groupId, $previewTabs.get().map(tab => tab.id))) {
|
if (
|
||||||
|
explicitOpenBlocksZone(
|
||||||
|
groupId,
|
||||||
|
$previewTabs.get().map(tab => tab.id)
|
||||||
|
)
|
||||||
|
) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
import { beforeEach, describe, expect, it } from 'vitest'
|
import { beforeEach, describe, expect, it } from 'vitest'
|
||||||
|
|
||||||
import { group, split } from '@/components/pane-shell/tree/model'
|
import { group, split } from '@/components/pane-shell/tree/model'
|
||||||
import {
|
import { $layoutTree, noteActiveTreeGroup, noteHoveredTreeGroup } from '@/components/pane-shell/tree/store'
|
||||||
$layoutTree,
|
|
||||||
noteActiveTreeGroup,
|
|
||||||
noteHoveredTreeGroup
|
|
||||||
} from '@/components/pane-shell/tree/store'
|
|
||||||
import { $rightRailActiveTabId, selectRightRailTab } from '@/store/layout'
|
import { $rightRailActiveTabId, selectRightRailTab } from '@/store/layout'
|
||||||
import { $previewTabs, closeRightRail, openPreview, type PreviewTarget } from '@/store/preview'
|
import { $previewTabs, closeRightRail, openPreview, type PreviewTarget } from '@/store/preview'
|
||||||
|
|
||||||
import { watchPreviewTiles } from '../preview-tile'
|
import { watchPreviewTiles } from '../preview-tile'
|
||||||
|
|
||||||
import { PREVIEW_READ_MAX_CHARS, readActivePreview, registerPreviewPageReader } from './preview-reader'
|
import { PREVIEW_READ_MAX_CHARS, readActivePreview, registerPreviewPageReader } from './preview-reader'
|
||||||
|
|
||||||
function urlTarget(url: string): PreviewTarget {
|
function urlTarget(url: string): PreviewTarget {
|
||||||
|
|||||||
Reference in New Issue
Block a user