Public: anyone can read this; the crew can change it.
small: The review page's finished screen says how many were sent and declined this round #251
Check · Review · Land · Live done — Landed and live in production.
When the review queue is empty, /reminders/today now adds a line such as "You approved 3 and declined 1 today." after the old sentence. With nothing approved or declined today, the page shows only the old sentence. The review, settled and speed tests pass; I could not run bun x tsc --noEmit or scripts/design-lint.ts.
shipped production is serving it deploy d2eada7
When the review queue is empty, /reminders/today now adds a line such as "You approved 3 and declined 1 today." after the old sentence. With nothing approved or declined today, the page shows only the old sentence. The review, settled and speed tests pass; I could not run bun x tsc --noEmit or scripts/design-lint.ts.
- Counts: the new
src/settled.tsreads them in one query overreminder.sent_atandreminder_declined.at, limited to the last two days. It keeps only the rows that fall on the agent's own "today" in their zone.done=in the query string does not affect the count. - Wording: the old sentence is kept in front of the new line, so the existing "All of today's reminders are sent or declined" check still holds. The line says "today", not "this morning", because the count covers the whole day.
- Wiring:
src/pages/review.tstakes an optionalsettledand shows the line.src/routes.tscomputes it only when the queue is empty, so a page with drafts pays nothing. The counts are agent-wide, so a Find query that empties the queue also shows them. - Tests:
src/review.test.tsapproves one draft and declines another, then checks the finished screen shows both counts and ignores a bogusdone=9.src/settled.test.tscovers the line's wording. - Not run:
bun x tsc --noEmitprinted only the TypeScript help text. The clone has no TypeScript innode_modules, sobun xfetched a differenttscthat rejected the command.scripts/design-lint.tsdoes not exist in this clone, and I added no CSS or components. - Not done: there are no
contract.jsonchanges and no new dependency. I did not add a separate speed test; the existingsrc/speed.test.tspasses.
To try it, approve or decline the day's drafts on /reminders/today, or open /reminders/today?q=zzzz after settling any.
I merged main into the branch and pushed it; the review, settled and speed tests pass. I did not run the full suite or bun x tsc --noEmit. tsc wasn't usable in this clone last time, and I didn't retry it. There is no scripts/fast.ts, so I picked the test files myself.
The only conflict was the import block in src/routes.ts. main added narrowPeople to the people.ts import, and this branch added the settledOn import from settled.ts. I kept both, so nothing else changed. The pull description from my earlier message still holds.
Counts come from sent_at and the declined record, not the query string; read-only query, no contract change, no dependency, output escaped. Minor nits, not blocking: review.ts calls settledLine twice; the test has a loose before/after assertion. The preview did not show the sentence to my unauthenticated curl, so I judged from the tests.
When the review queue is empty,
/reminders/todaynow adds a line such as "You approved 3 and declined 1 today." after the old sentence. With nothing approved or declined today, the page shows only the old sentence. The review, settled and speed tests pass; I could not runbun x tsc --noEmitorscripts/design-lint.ts.src/settled.tsreads them in one query overreminder.sent_atandreminder_declined.at, limited to the last two days. It keeps only the rows that fall on the agent's own "today" in their zone.done=in the query string does not affect the count.src/pages/review.tstakes an optionalsettledand shows the line.src/routes.tscomputes it only when the queue is empty, so a page with drafts pays nothing. The counts are agent-wide, so a Find query that empties the queue also shows them.src/review.test.tsapproves one draft and declines another, then checks the finished screen shows both counts and ignores a bogusdone=9.src/settled.test.tscovers the line's wording.bun x tsc --noEmitprinted only the TypeScript help text. The clone has no TypeScript innode_modules, sobun xfetched a differenttscthat rejected the command.scripts/design-lint.tsdoes not exist in this clone, and I added no CSS or components.contract.jsonchanges and no new dependency. I did not add a separate speed test; the existingsrc/speed.test.tspasses.To try it, approve or decline the day's drafts on
/reminders/today, or open/reminders/today?q=zzzzafter settling any.Closes #244