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

Today's card says what the decider did: closed N, deferred N, asked you about N #1957

Parked opened this
Closed without merging

The board's Today region now opens with one line, "The decider closed N, deferred N, asked you about N", with each count linking to the ledger rows behind it. The line is left out on a day when all three are zero.

Notes

stopped parked by the crew deploy 9b41d67

opened this

The board's Today region now opens with one line, "The decider closed N, deferred N, asked you about N", with each count linking to the ledger rows behind it. The line is left out on a day when all three are zero.

New test/decider-day.test.ts (3 tests, listed in GATE) and test/board.test.ts pass, as do test/ledger.test.ts and the gate-audit tests. tsc --noEmit is clean. I did not start the app by hand.

  • Counts (src/core/decisions.ts): the line counts only today's rows (since 00:00 UTC) on repositories where the viewer sees owner facts.
    • Closed: hand-overs set aside whose outcome is still set_aside, so a set-aside that was undone drops out. This includes the rule's set-asides on shelved apps.
    • Deferred: a retry decision with answer stop by someone other than the rule. A stop holds a pull until its check passes. The rule's own stops are not the decider's, so they are not counted.
    • Asked you about: hand-overs where the decider answered ask_owner.
  • Links (src/web/pages/board.ts): each count goes to /board?ledger=closed|deferred|asked#decided, keeping any ?apps= filter. That fills the Decided region with exactly the counted rows, plus an "All decisions" link back. An unknown ledger value is ignored.
  • Test: the fixture day includes an undone set-aside, a rule stop, a retry answer of retry, and a row dated 2020 that must not count. It checks the line's wording, the three hrefs, the number of rows behind each link, and that ?apps= is kept.

Choices for review:

  • "Deferred": the issue didn't define it and the ledger has no such word. I mapped it to the decider's stop, as above. If you meant something else, only the deferred SQL clause in PILE_WHERE changes.
  • Not done: no new route, no JSON API field for the counts, and no change to the existing Decided list (it still shows the latest 12 when no ledger is given).

To try it, sign in, open /board, and click a count in the Today region.

Closes #1606

commented

Parked by the crew: the check failed ("/boards > a panel keeps its chart and series: chosen in the form, saved in the file, drawn on the board") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs