web: shared chat stars, pipeline mini graphs and agent questions
- Persist chat stars in the operator-session registry (chat_star) so every browser/device shows the same Starred group; migrate old local stars once. - Add a compact pipeline graph shape to list responses and draw a lightweight list miniature; replace the cryptic id/version line with the stage count. - Surface OpenCode form questions as a chat card (chat_answer), replay a pending form to late subscribers, and notify for background questions. - Make the mobile dock's Search cell equal to every destination, keep the tab row visible with 100svh, and let Source use the full pane height. - Let a fresh sign-in auto-connect to its own origin; use a Lax session cookie with Expires so Remember me survives app/link launches. - Keep shipped starters and the skill agnostic: no repository paths, project areas or personal device commands; add Diagnose/Fix and Research starters. - Refresh the installed skill and document the new browser conventions.
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
attentionDismissAll,
|
||||
attentionDismissalSnapshot,
|
||||
attentionEntries,
|
||||
startOfLocalDay,
|
||||
attentionKey,
|
||||
attentionKindOf,
|
||||
attentionRowDescription,
|
||||
@@ -108,6 +109,27 @@ test("row description is exactly {pipeline} · {detail}", () => {
|
||||
assert.equal(attentionRowDescription(entry), "Plan and land · failed hard");
|
||||
});
|
||||
|
||||
test("the surface is today's work: older failures are history", () => {
|
||||
const entries = [
|
||||
run({ id: 1, status: "failed", finished_at: "2026-10-19T21:33:27Z" }),
|
||||
run({ id: 2, status: "failed", finished_at: "2026-10-20T10:00:00Z" }),
|
||||
];
|
||||
const since = Date.parse("2026-10-20T00:00:00Z");
|
||||
assert.deepEqual(
|
||||
attentionEntries(entries, new Set(), { since }).map((entry) => entry.runId),
|
||||
[2],
|
||||
);
|
||||
assert.equal(attentionEntries(entries, new Set()).length, 2);
|
||||
});
|
||||
|
||||
test("startOfLocalDay is local midnight", () => {
|
||||
const now = new Date(2026, 9, 20, 15, 4, 5).getTime();
|
||||
const start = startOfLocalDay(now);
|
||||
assert.equal(new Date(start).getHours(), 0);
|
||||
assert.equal(new Date(start).getMinutes(), 0);
|
||||
assert.ok(start < now);
|
||||
});
|
||||
|
||||
test("badge label is bare Notifications when empty, else the count", () => {
|
||||
assert.equal(attentionBadgeLabel(0), "Notifications");
|
||||
assert.equal(attentionBadgeLabel(-3), "Notifications");
|
||||
|
||||
Reference in New Issue
Block a user