Public: anyone can read this; the crew can change it.

The first reminder of a review round says "Start here" #245

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

mason/deal-clock:mason/241-the-first-reminder-of-a-review-round-say → main 1 commit fork

  • Merged. mason/241-the-first-reminder-of-a-review-round-say was merged into main as 0e530c4.

Review

Sign in to review this change.
2 files changed +7 −1
src/pages/review.ts +1 −1
@@ -102,7 +102,7 @@ function form(
102102 const invalid = (field: ReviewField): string => (error?.field === field ? ' aria-invalid="true"' : "");
103103 const skip = s.total - s.done > 1 ? reviewHref(s.q, s.at + 1, s.done) : "";
104104 return `<section class="card narrow">
105 <p class="eyebrow">${s.position} of ${s.total}</p>
105 ${s.done === 0 && s.at === 0 ? "<p><b>Start here</b></p>\n " : ""}<p class="eyebrow">${s.position} of ${s.total}</p>
106106 <h1>Review today's reminders</h1>
107107 <p><a href="/deals/${draft.deal_id}">${escape(draft.address)}</a></p>
108108 <p><b>${escape(draft.label)}</b> <span class="muted">· ${escape(spoken(draft.due))} · ${escape(momentLabel(draft.moment, draft.lead_days))}${draft.held === null ? "" : ` · ${escape(heldFrom(draft.held))}`}</span></p>
src/review.test.ts +6
@@ -49,6 +49,12 @@ test("the clock offers Review all, and the page's first draft is the clock's fir
4949 expect(first.counter).toBe(`1/${rows.length}`);
5050 });
5151
52 test("the round's first draft says Start here, once; a skipped-to draft does not", async () => {
53 const count = (s: string) => s.split("Start here").length - 1;
54 expect(count(await get("/reminders/today"))).toBe(1);
55 expect(count(await get("/reminders/today?at=1"))).toBe(0);
56 });
57
5258 test("walking the queue visits the unsent drafts in the clock's order; Skip changes nothing", async () => {
5359 const before = await get("/");
5460 const page = await get("/reminders/today");

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs