Skip to content

Commit 671fc13

Browse files
Label the work-queue context date against the operator's today
The queue context chip reused the lane-grouping today (the filtered business day), so every filtered day read as "Today". It now renders the label against the operator's real current date.
1 parent 3cb31d7 commit 671fc13

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

frontend/src/surfaces/tasks/queue.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,12 @@ export function createTaskQueue(context) {
106106
const heading = document.createElement("h3");
107107
heading.textContent = "Queue context";
108108
const summary = document.createElement("p");
109+
// The context chip names the filtered day relative to the operator's
110+
// real today — the queue-local `today` above serves the lane
111+
// grouping, not this label, or every filtered day would read "Today".
109112
summary.textContent = [
110113
taskRouteContext.date
111-
? `Date ${queueDueLabel(taskRouteContext.date, today)}`
114+
? `Date ${queueDueLabel(taskRouteContext.date, todayIsoDate())}`
112115
: "",
113116
taskRouteContext.cardId
114117
? `Filtered to card ${taskRouteContext.filterCard?.title || taskRouteContext.cardId}`

0 commit comments

Comments
 (0)