Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

address review (codex): keep due-now marker visible when its launch also collides

[._.]/ Adam Eivy35ce1f8e9259
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 0f8e3752f0..b64cd91d15 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -37,7 +37,7 @@
- **Digital Twin Taste questionnaire no longer shows "Question 5 of 3" after follow-ups.** The progress header used total response count (core + follow-ups) as the current question number against a core-only total, so once branching follow-ups fired the counter overran the "of N". It now reports the 1-based index among core questions for that section, so the label stays "Question 2 of 3" even when follow-ups sit between cores.
-- **Schedule Timeline now explains why a task sits on "Now" instead of looking like a bug.** A weekly task that has never run, or a cron task whose scheduled slot passed while it was down, is genuinely *due now* — the scheduler will fire it on the next check as a first-run or catch-up. The timeline drew that NOW launch identically to an on-cadence launch, so a marker on "Now" next to a "Sun at 07:00" / "weekly" label read as wrong (e.g. `branch-cleanup` and `reference-watch` both showing NOW). Due-now launches are now tagged server-side (`dueNow` + the scheduler's reason and any missed cron slot) and rendered distinctly: an amber ring on the Now marker, a `first run` / `catch-up` / `overdue` badge on the Scheduled-order chip, and tooltips/legend explaining that it launches on the next check rather than waiting for the next cadence slot. On-cadence future launches are unchanged.
+- **Schedule Timeline now explains why a task sits on "Now" instead of looking like a bug.** A weekly task that has never run, or a cron task whose scheduled slot passed while it was down, is genuinely *due now* — the scheduler will fire it on the next check as a first-run or catch-up. The timeline drew that NOW launch identically to an on-cadence launch, so a marker on "Now" next to a "Sun at 07:00" / "weekly" label read as wrong (e.g. `branch-cleanup` and `reference-watch` both showing NOW). Due-now launches are now tagged server-side (`dueNow` + the scheduler's reason and any missed cron slot) and rendered distinctly: an amber marker at Now (kept on a separate visual channel from the collision warning ring so a launch that is both due-now and colliding shows both states), a `first run` / `catch-up` / `overdue` badge on the Scheduled-order chip, and tooltips/legend explaining that it launches on the next check rather than waiting for the next cadence slot. On-cadence future launches are unchanged.
- **Accessibility: icon-only controls, keyboard-trapped elements, and unlabeled form fields across the app are now screen-reader and keyboard accessible.** An audit found ~65 icon-only buttons (modal/panel close `✕`, calendar prev/next, refresh, inline-edit save/cancel/edit/delete, reorder, delete, skip/back) with no accessible name, 15 `<div>`/`<span>` elements that were clickable by mouse only (no keyboard focus or Enter/Space activation), and several settings/config inputs missing a `<label>` association. Buttons gained descriptive `aria-label`s; clickable non-buttons now use a new shared helper `clickableProps()` (`client/src/lib/a11yKeyboard.js` — adds `role="button"`, `tabIndex`, and Enter/Space `onKeyDown`) so keyboard users can reach and activate them; and the form fields (external SD API URL, Python interpreter path, test-render prompt, per-row AI provider/model selects, image-gen seed) got proper `htmlFor`/`id` or `aria-label` associations. `IconPicker` also gained Escape-to-dismiss and an `aria-hidden` backdrop. The shared shells (Layout, Modal, Drawer, ⌘K, Logo, MediaImage) were already accessible and unchanged.
diff --git a/client/src/components/cos/tabs/WorkflowTab.jsx b/client/src/components/cos/tabs/WorkflowTab.jsx
index cdd77553ce..500fdc3dd9 100644
--- a/client/src/components/cos/tabs/WorkflowTab.jsx
+++ b/client/src/components/cos/tabs/WorkflowTab.jsx
@@ -130,13 +130,16 @@ function TimelineRow({ node, occurrences, windows, timeline, hours, timezone, se
))}
{occurrences.map(occurrence => {
const meta = dueNowMeta(occurrence, node, timezone);
- const ring = occurrence.collision
- ? 'ring-2 ring-port-warning ring-offset-1 ring-offset-port-bg'
- : meta ? 'ring-2 ring-amber-300 ring-offset-1 ring-offset-port-bg' : '';
+ // Due-now is an amber FILL, collision a warning RING — kept on separate
+ // channels so a launch that is BOTH (the common catch-up scenario, where
+ // several tasks are due at Now and therefore also collide) shows both
+ // states at once. A shared ring channel would let collision mask due-now.
+ const fill = occurrence.kind === 'recheck' ? 'rotate-45 bg-amber-300' : meta ? 'bg-amber-400' : palette.marker;
+ const ring = occurrence.collision ? 'ring-2 ring-port-warning ring-offset-1 ring-offset-port-bg' : '';
return (
<span
key={occurrence.id}
- className={`absolute top-1/2 z-20 h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-sm border-2 border-port-bg shadow ${occurrence.kind === 'recheck' ? 'rotate-45 bg-amber-300' : palette.marker} ${ring}`}
+ className={`absolute top-1/2 z-20 h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-sm border-2 border-port-bg shadow ${fill} ${ring}`}
style={{ left: `${timelinePercent(occurrence.at, timeline)}%` }}
title={`${occurrence.kind === 'recheck' ? 'Reset/recheck' : 'Launch'} ${formatPoint(occurrence.at, hours, timezone)}${meta ? ` · ${meta.detail}` : ''}${occurrence.collision ? ' · another task launches within 15 minutes' : ''}`}
/>
@@ -307,7 +310,7 @@ export default function WorkflowTab() {
<span className="inline-flex items-center gap-1"><span className="h-2.5 w-2.5 rounded-sm bg-purple-400" /> pinned</span>
<span className="inline-flex items-center gap-1"><span className="h-2.5 w-2.5 rounded-sm bg-cyan-400" /> interval job</span>
<span className="inline-flex items-center gap-1"><span className="h-2.5 w-2.5 rotate-45 rounded-sm bg-amber-300" /> reset/recheck</span>
- <span className="inline-flex items-center gap-1"><span className="h-2.5 w-2.5 rounded-sm bg-emerald-400 ring-2 ring-amber-300 ring-offset-1 ring-offset-port-bg" /> due now (catch-up)</span>
+ <span className="inline-flex items-center gap-1"><span className="h-2.5 w-2.5 rounded-sm bg-amber-400" /> due now (catch-up)</span>
</div>
<span className="inline-flex items-center gap-1"><CalendarDays className="h-3 w-3" />{graph.timezone}</span>
</div>
@@ -351,7 +354,7 @@ export default function WorkflowTab() {
<div className="flex flex-wrap gap-x-4 gap-y-1 text-[10px] text-gray-600">
<span><AlertTriangle className="mr-1 inline h-3 w-3 text-port-warning" />A ring means another launch is within 15 minutes; actual overlap depends on runtime.</span>
- <span><Clock3 className="mr-1 inline h-3 w-3 text-amber-300" />An amber ring at Now means the task is already due (catch-up, first run, or overdue) — it launches on the next check rather than waiting for its next cadence slot.</span>
+ <span><Clock3 className="mr-1 inline h-3 w-3 text-amber-300" />An amber marker at Now means the task is already due (catch-up, first run, or overdue) — it launches on the next check rather than waiting for its next cadence slot.</span>
<span><TimerReset className="mr-1 inline h-3 w-3" />Perpetual bands have no fixed end while backlog remains.</span>
</div>
</div>