From d4910b4398452a6ca813489453854f51bcfa2e7b Mon Sep 17 00:00:00 2001 From: timmy Date: Tue, 18 Aug 2026 12:45:08 +0000 Subject: [PATCH] feat: pause Today during mobile Search (Closes #1078) --- frontend/dashboard.css | 3 + frontend/dashboard.js | 7 +- frontend/index.html | 8 ++ frontend/today-timer.js | 106 +++++++++++++++++- .../e2e/test_mobile_today_handoff_release.py | 24 ++++ tests/test_command_palette.py | 11 ++ tests/test_today_timer_handoff.py | 54 +++++++++ 7 files changed, 209 insertions(+), 4 deletions(-) diff --git a/frontend/dashboard.css b/frontend/dashboard.css index 1d31196..de37916 100644 --- a/frontend/dashboard.css +++ b/frontend/dashboard.css @@ -137,6 +137,9 @@ textarea { resize: vertical; min-height: 120px; } #cmd-palette.open { display: block; } .cmd-palette-header { display:none; align-items:center; justify-content:space-between; gap:10px; } .cmd-palette-header-actions { display:flex; gap:8px; } +.search-today-interruption { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:8px 0; padding:8px 10px; border:1px solid #2a496e; border-radius:10px; background:#10213a; } +.search-today-interruption[hidden] { display:none; } +.search-today-interruption button { min-height:44px; flex:0 0 auto; } .cmd-search-scope { display:grid; grid-template-columns:auto minmax(120px,1fr) auto minmax(120px,1fr); gap:6px 10px; align-items:center; margin:8px 0 0; padding:8px; border:1px solid #1f3a5f; border-radius:8px; } .cmd-search-scope legend { padding:0 4px; color:#93a4b8; font-size:12px; } .cmd-search-scope label { font-size:12px; color:#cbd5e1; } diff --git a/frontend/dashboard.js b/frontend/dashboard.js index 02c4d82..c8c4f0a 100644 --- a/frontend/dashboard.js +++ b/frontend/dashboard.js @@ -1839,6 +1839,7 @@ formatEstimate: formatPlanMinutes, getItem: identity => [...todayMyWork, ...activeMyWork].find(item => todayWork.identity(item) === identity), onReopen: identity => { + taskOverlayHistory.leave(); selectTodayWork(); workSession.reopen(todayMyWork.find(item => todayWork.identity(item) === identity)); }, @@ -5433,9 +5434,9 @@ if (shareStatus[state.status]) status.textContent = shareStatus[state.status]; else if (state.status === 'reopening') status.textContent = 'Reopening…'; else if (state.status === 'claiming') status.textContent = 'Assigning this issue to you…'; - else if (state.status === 'claimed') status.textContent = 'Assignment confirmed. Opening My Work…'; - else if (detail.claimable) status.textContent = 'This issue is open and unassigned.'; - else if (detail.assigned_to_me) status.textContent = 'This item is already in My Work.'; + else if (state.status === 'claimed') status.textContent = 'Assigned. Opening My Work…'; + else if (detail.claimable) status.textContent = 'Open and unassigned.'; + else if (detail.assigned_to_me) status.textContent = 'Already in My Work.'; else if (detail.reopenable) status.textContent = 'Closed—reopen to resume.'; else status.textContent = 'Ready.'; } diff --git a/frontend/index.html b/frontend/index.html index c1f4450..5445cf2 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -521,6 +521,10 @@ +
Filter search results @@ -598,6 +602,10 @@ +