FN-5817: prevent blank dashboard after auto-merge toggle
Ensure viewport mode updates stay in sync so toggling auto-merge no longer blanks the dashboard. - update useViewportMode to initialize safely and react consistently to viewport/media-query changes - add focused hook coverage for initial mode detection and transition behavior - add dashboard/app regression tests to confirm the board remains rendered after auto-merge toggles - add a changeset for @runfusion/fusion patch release Files changed: .changeset/fn-5817-auto-merge-toggle-mobile.md | 5 ++ .../app/components/__tests__/App.test.tsx | 66 ++++++++++++++++++++++ .../__tests__/board-mobile-initial-render.test.tsx | 30 ++++++++++ .../app/hooks/__tests__/useViewportMode.test.ts | 34 +++++++++++ packages/dashboard/app/hooks/useViewportMode.ts | 28 +++++++-- 5 files changed, 159 insertions(+), 4 deletions(-) Fusion-Task-Id: FN-5817 Fusion-Task-Lineage: 2fc044b1-5f37-44de-b70e-c60364a3d69c
This commit is contained in:
5
.changeset/fn-5817-auto-merge-toggle-mobile.md
Normal file
5
.changeset/fn-5817-auto-merge-toggle-mobile.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@runfusion/fusion": patch
|
||||
---
|
||||
|
||||
Fixes a mobile dashboard crash path where toggling the in-review auto-merge switch could blank the UI until refresh on some Android/legacy WebView environments.
|
||||
Reference in New Issue
Block a user