From 472371d5a89c4199e6ea47780682a787b0194086 Mon Sep 17 00:00:00 2001 From: timmy Date: Tue, 18 Aug 2026 14:33:25 +0000 Subject: [PATCH] feat: pause Today during mobile Insights (Closes #1082) --- frontend/dashboard.js | 10 +-- frontend/index.html | 4 ++ frontend/mobile-insights.js | 38 +++++++--- frontend/today-timer.js | 4 +- .../e2e/test_mobile_today_handoff_release.py | 29 +++++++- tests/test_mobile_insights.py | 69 +++++++++++++++++++ tests/test_mobile_task_dock.py | 4 +- tests/test_today_timer_handoff.py | 29 ++++++++ 8 files changed, 168 insertions(+), 19 deletions(-) diff --git a/frontend/dashboard.js b/frontend/dashboard.js index ecd9dd8..c114c19 100644 --- a/frontend/dashboard.js +++ b/frontend/dashboard.js @@ -254,16 +254,14 @@ root: qs('#insights-sheet'), launcher: qs('#open-insights'), closeButton: qs('#close-insights'), + dock: qs('#mobile-task-dock'), hud: qs('[data-mobile-today-hud]'), backgrounds: [qs('header'), qs('#my-work')], - menu: qs('.app-menu'), history: window.history, - location: window.location, - eventTarget: window, mediaQuery: window.matchMedia('(max-width: 600px)'), + detour:() => timerView, }); - mobileInsights.start(); qs('#empty-work-find').addEventListener('click', () => qs('#find-work').click()); qs('#empty-work-create').addEventListener('click', () => qs('#new-issue').click()); let liveMode = true; @@ -1841,7 +1839,8 @@ onReopen: identity => { taskOverlayHistory.leave(); selectTodayWork(); - workSession.reopen(todayMyWork.find(item => todayWork.identity(item) === identity)); + const item = [...todayMyWork, ...activeMyWork].find(item => todayWork.identity(item) === identity); + if (!workSession.reopen(item)) workSession.resume(item); }, onResume: identity => { selectTodayWork(); @@ -1854,6 +1853,7 @@ }, onCapture:() => openCreateIssueSheet(), }); + mobileInsights.start(); todaySessionSync = attachTodaySessionHandoff({ fetchJson:fetchReviewJson, storage:localStorage, timer, qs, items:() => [...todayMyWork, ...activeMyWork], diff --git a/frontend/index.html b/frontend/index.html index 26e08f1..aa15374 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -309,6 +309,10 @@

Insights

Context, activity, live signals, and workspace tools.

+