From 0a10ebed2f48e9a4c2f8ce6dedcf307e61687878 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Wed, 14 Oct 2026 17:38:50 +0200 Subject: [PATCH] Pause covered workspace sheets and mock the shared sheet handle in tests --- .../src/screens/settings/plugins-page.test.tsx | 1 + .../screens/workspace/workspace-sheet-host.tsx | 16 ++++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/packages/app/src/screens/settings/plugins-page.test.tsx b/packages/app/src/screens/settings/plugins-page.test.tsx index 0ede3f803b..8a502749db 100644 --- a/packages/app/src/screens/settings/plugins-page.test.tsx +++ b/packages/app/src/screens/settings/plugins-page.test.tsx @@ -80,6 +80,7 @@ vi.mock("@gorhom/bottom-sheet", async () => { await vi.importActual("react-native"); return { BottomSheetBackdrop: () => null, + BottomSheetHandle: () => null, BottomSheetModal: ReactModule.forwardRef(() => null), BottomSheetScrollView: ScrollView, BottomSheetTextInput: TextInput, diff --git a/packages/app/src/screens/workspace/workspace-sheet-host.tsx b/packages/app/src/screens/workspace/workspace-sheet-host.tsx index b7d97b1f0c..967afb6561 100644 --- a/packages/app/src/screens/workspace/workspace-sheet-host.tsx +++ b/packages/app/src/screens/workspace/workspace-sheet-host.tsx @@ -24,6 +24,7 @@ import { type SheetHeader, } from "@/components/adaptive-modal-sheet"; import { systemBackPress } from "@/components/ui/isolated-bottom-sheet-modal"; +import { RetainedPanelActivity } from "@/components/retained-panel"; import { Button } from "@/components/ui/button"; import type { PanelIconProps } from "@/panels/panel-registry"; import { getPanelRegistration } from "@/panels/panel-registry"; @@ -250,12 +251,15 @@ function WorkspaceSheetPresentation({ onChange={handleChange} accessible={false} > - + {/* A covered sheet keeps its state but stops its live work until it is on top again. */} + + +