gsxdsm
338e7286c0
FN-6395: align viewport hook mocks in dashboard tests
...
Update dashboard test doubles so mobile viewport helpers match the hook module API.
- Add getViewportMode and isMobileViewport exports to affected useViewportMode mocks.
- Keep mocked mobile detection tied to each test's configurable viewport mode.
- Normalize inline viewport mocks across dashboard component test suites.
Files changed:
.../components/__tests__/AgentsView.orgchart.test.tsx | 6 +++++-
.../app/components/__tests__/AgentsView.test.tsx | 2 ++
.../app/components/__tests__/ChatView.rooms.test.tsx | 1 +
.../app/components/__tests__/GitManagerModal.test.tsx | 2 ++
.../app/components/__tests__/MailboxView.test.tsx | 13 +++++++++----
.../__tests__/MilestoneSliceInterviewModal.test.tsx | 2 ++
.../__tests__/MissionManager.swipe-back.test.tsx | 2 ++
.../__tests__/NewTaskModal.shared-cache.test.tsx | 17 ++++++++++++++---
.../app/components/__tests__/NewTaskModal.test.tsx | 2 ++
.../__tests__/PlanningModeModal.favorites.test.tsx | 2 ++
.../__tests__/PlanningModeModal.questions.test.tsx | 2 ++
.../__tests__/PlanningModeModal.swipe-back.test.tsx | 2 ++
.../PlanningModeModal.ui-interactions.test.tsx | 4 ++++
.../components/__tests__/QuickChatFAB.autosize.test.tsx | 13 +++++++++----
.../__tests__/QuickChatFAB.shared-cache.test.tsx | 11 +++++++++--
.../app/components/__tests__/QuickChatFAB.test.tsx | 11 +++++++++--
.../__tests__/SettingsModal.testMode.test.tsx | 6 +++++-
.../components/__tests__/SubtaskBreakdownModal.test.tsx | 2 ++
.../app/components/__tests__/TodoModal.test.tsx | 2 ++
.../components/__tests__/navigation-history.test.tsx | 3 ++-
20 files changed, 87 insertions(+), 18 deletions(-)
Fusion-Task-Id: FN-6395
Fusion-Task-Lineage: d830938b-4d60-4e17-852d-a2d311b6d71c
2026-06-13 16:30:28 -07:00
gsxdsm
fa23782dbb
FN-5972: fix mobile auto-merge blank dashboard
...
Restore mobile auto-merge dashboard stability and broaden regression coverage.
- share the mobile media query between viewport detection and board stabilization so landscape phones stay on the mobile path
- add an integration regression suite for toggling auto-merge across mobile, tablet, desktop, rollback, and task review surfaces
- expand dashboard and CLI tests, keep the new published changeset, and preserve related vitest coverage lists and safety comments
Files changed:
$(git diff --cached --stat)
Fusion-Task-Id: FN-5972
Fusion-Task-Lineage: f3a3bbae-21c2-451b-b24f-848cc12d0542
2026-06-07 18:51:46 -07:00