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

Closed opened this
Closed without merging

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".

Notes

stopped closed without shipping deploy d23c3e1

opened this

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". The new tests and the tests the issue named pass here. I ran no other test file, and tsc --noEmit is 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:

  • main added a "handover" kind of ask and changed decisionForm to read ctx.url.pathname. The new tests built a context with no url, so they threw. I fixed that in test/inbox.test.ts and test/needs-you.test.ts. The tests were wrong, not the code.
  • The merge conflicted in src/tui/screens/dashboard.ts and src/web/studio/asks_page.ts. I resolved both, keeping the terminal's handed-over rows and the new waiting-for text. I dropped the unused KIND_LABEL map from asks_page.ts, since the rows now use WAITING_FOR.
  • I added handover: "a decision" to WAITING_FOR in src/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

1 earlier comment · 1 event
Changes requested — before the latest push

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.

commented

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): onYouCard now passes the viewer's ask item ids to assignedTo, the same way the count does. The ids come from a new helper, askItemIdsFor in src/web/studio/asks.ts.
  • Dedupe (src/web/studio/waiting.ts): assignedTo no 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.

commented

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

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs