diff --git a/frontend/dashboard.css b/frontend/dashboard.css
index fe1c74f..4f14881 100644
--- a/frontend/dashboard.css
+++ b/frontend/dashboard.css
@@ -566,6 +566,7 @@ textarea { resize: vertical; min-height: 120px; }
.composer-keyboard-active .pull-comment-composer,
.composer-keyboard-active .update-reply { scroll-margin-block:12px; padding-bottom:env(safe-area-inset-bottom); }
.mobile-task-dock { position:fixed; inset:auto 0 0; z-index:45; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:2px; padding:6px 8px; padding-bottom:env(safe-area-inset-bottom); border-top:1px solid #2a496e; background:rgba(11,21,38,.98); backdrop-filter:blur(12px); }
+ .mobile-task-dock[data-attention="true"] { grid-template-columns:repeat(6,minmax(0,1fr)); }
}
.obi { width:14px; height:14px; background: url('data:image/svg+xml;utf8,') center/contain no-repeat; display:inline-block; }
.footer { padding: 12px; text-align: center; color:#4e6b8a; font-size:12px; }
diff --git a/frontend/dashboard.js b/frontend/dashboard.js
index 35072dd..98cf616 100644
--- a/frontend/dashboard.js
+++ b/frontend/dashboard.js
@@ -45,9 +45,12 @@
);
const mobileTaskOverlays = Array.from(document.querySelectorAll('[role="dialog"], #whiteboard-modal, #markdown-modal'));
function openMobileWorkFallback() {
- const counts = countMyWork(activeMyWork);
- const filter = counts.attention ? 'attention' : 'all';
- qs('[data-work-filter="' + filter + '"]').click();
+ qs('[data-work-filter="all"]').click();
+ qs('#my-work').scrollIntoView({block:'start'});
+ qs('#my-work').focus();
+ }
+ function openMobileAttention() {
+ qs('[data-work-filter="attention"]').click();
qs('#my-work').scrollIntoView({block:'start'});
qs('#my-work').focus();
}
@@ -68,6 +71,7 @@
overlays: mobileTaskOverlays,
actions: {
work: () => mobileWorkEntry.open(),
+ attention: openMobileAttention,
find: () => qs('#find-work').click(),
new: () => qs('#new-issue').click(),
search: () => qs('#open-palette').click(),
@@ -977,7 +981,8 @@
qs('#resume-today-session').hidden = active || !todayMyWork.length || !workSession.resumable();
qs('#end-today-session').hidden = !active;
updateDetailDeferLabels(active);
- mobileTaskDock.updateWork(mobileWorkEntry.mode(), countMyWork(activeMyWork).attention);
+ mobileTaskDock.updateWork(mobileWorkEntry.mode());
+ mobileTaskDock.updateAttention(countMyWork(activeMyWork).attention);
}
const workSession = createWorkSession({
@@ -1920,7 +1925,8 @@
const element = qs('[data-work-count="' + filter + '"]');
if (element) element.textContent = count;
});
- mobileTaskDock.updateWork(mobileWorkEntry.mode(), countMyWork(activeMyWork).attention);
+ mobileTaskDock.updateWork(mobileWorkEntry.mode());
+ mobileTaskDock.updateAttention(countMyWork(activeMyWork).attention);
const activeQueue = qs('[data-work-filter="' + selectedWorkFilter + '"]');
qs('#active-work-queue').textContent = activeQueue.firstChild.textContent.trim() +
' (' + (counts[selectedWorkFilter] || 0) + ')';
diff --git a/frontend/index.html b/frontend/index.html
index 1d8b1e7..59b9ade 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -808,7 +808,8 @@