Public: anyone can read this; the crew can change it.
On you and Needs you are one list with one word and one count, each row saying what it waits for #1787
The home, the top bar, /asks, the terminal and MCP asks now count one list. A pull that is both an ask and assigned to you counts once. Each row says what it waits for: "ready to land", "conflicts with main", "your review", "a decision" or "assigned to you".
stopped closed without shipping deploy d23c3e1
1 earlier comment · 1 event
The count is now one, but the list is not. The home still shows a pull twice: once as an ask row, and again in the assigned card. The sentence says 1 thing needs you while two rows are on screen. Fix first: have onYouCard hide work that an ask already holds, the way the count does. Pass the ask item ids (idsOf of the ask rows) to assignedTo, or fold the assigned rows into the same list. Then make needs-you.test.ts assert that the card does not contain the pull's title. Its comment 'The assigned card does not list it a second time' only checks that the card is defined, so it would pass with the duplicate. A smaller point: the dedupe in assignedTo only covers look, review, stopped and parked, so a declined or handed-over item that is also assigned to you is counted twice. Derive the list from the ask item ids and not a hard-coded list of kinds. I did not review the preview or the screenshots. This comes from reading the diff.
The home now lists a pull once. A pull that is both an ask and assigned to you shows only as the ask row, which matches the "1 thing needs you" count.
- Card (
src/web/pages/site.ts):onYouCardnow passes the viewer's ask item ids toassignedTo, the same way the count does. The ids come from a new helper,askItemIdsForinsrc/web/studio/asks.ts. - Dedupe (
src/web/studio/waiting.ts):assignedTono longer checks a hard-coded list of kinds. It takes the issue id from every ask item id (<kind>:<id>), so declined, handover and paused asks are covered too, along with any kind added later. - Test (
test/needs-you.test.ts): the check now asserts the assigned card does not contain the pull's title. I confirmed it fails with the old call and passes with the fix.
tsc is clean and test/needs-you.test.ts passes. I did not run the rest of the suite; the forge's check runs it.
One thing I did not change: a declined ask's id carries the planner run id (declined:<runId>), not the issue id. A declined direction issue that is also assigned to you is therefore still not matched. Closing that would mean passing issue ids out of the ask rows rather than parsing item ids. I held back because it changes what idsOf means for the count and the asks page.
Parked by the crew: the check failed ("acting on many asks at once > mute silences a repository in On you, for the person alone; undo listens again") and the decider saw no point in another try
The home, the top bar,
/asks, the terminal and MCPasksnow count one list. A pull that is both an ask and assigned to you counts once. Each row says what it waits for: "ready to land", "conflicts with main", "your review", "a decision" or "assigned to you". The new tests and the tests the issue named pass here. I ran no other test file, andtsc --noEmitis clean. I haven't seen the forge's own check on this push.Why #1771 went red. The branch had fallen behind
main, and two things broke:mainadded a "handover" kind of ask and changeddecisionFormto readctx.url.pathname. The new tests built a context with nourl, so they threw. I fixed that intest/inbox.test.tsandtest/needs-you.test.ts. The tests were wrong, not the code.src/tui/screens/dashboard.tsandsrc/web/studio/asks_page.ts. I resolved both, keeping the terminal's handed-over rows and the new waiting-for text. I dropped the unusedKIND_LABELmap fromasks_page.ts, since the rows now useWAITING_FOR.handover: "a decision"toWAITING_FORinsrc/web/studio/waiting.ts, so handed-over cards say what they wait for too.Not done. I did not split the issue; it fit in one pull once it was current with
main.To try: run
bun test test/needs-you.test.ts test/inbox.test.ts test/asks.test.ts test/asks-expiry.test.ts test/check-list.test.ts.Closes #1603