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

On you and Needs you are one list on the home with one count in the top bar, the same rows /live/on-you and MCP count #1985

Parked opened this
Closed without merging

The home now shows "On you" as one list where it had two (the "On you" card and the "Needs you" section). The list, /live/on-you, the top-bar count and MCP's asks all read the same rows as /asks.

Notes

stopped parked by the crew deploy 2497ffb

opened this

The home now shows "On you" as one list where it had two (the "On you" card and the "Needs you" section). The list, /live/on-you, the top-bar count and MCP's asks all read the same rows as /asks.

The core of this is #1937's diff, which still applies cleanly to main at 36daece8 (that pull went red only on main's release-record fault). On top of it, this pull fixes a gap in declining assigned rows and updates the docs.

One row source. askCandidatesFor (src/web/studio/asks.ts) now adds an assigned row for each open thing assigned to the viewer, unless an ask already covers that pull or issue.

  • A green pull that is assigned to you stays one row, the look: ask, so it counts once in the list, the header and MCP.
  • Each assigned row says waitingFor: "assigned to you".
  • Mute filters assigned rows like any other ask, and "Listen again" brings them back.
  • The old onYouCard (src/web/pages/site.ts) and its separate bulk form (onYouBulk, onyou-bulk) are gone. Mute is now a verb on the asks bulk form, and the day's undo link moved into needsYouSection.

N+1. The home's feed now drops asks before it cuts its page (readFeed(..., { withoutAsks: true })). Before, assigned rows used up the feed's page and changed how many queries the page made, which is why the dashboard N+1 test went red on the first try. That test passes, alone and with the rest of surfaces-adversarial.

Declining an assigned row. Before this fix, "Decline" on an assigned row reported success but left the row in the list, because the dismiss verb didn't record that kind. askItemsOf now includes ask:assigned:<id>, so a dismissal holds and undo takes it back.

Tests.

  • New test/asks-one-list.test.ts, added to GATE. It checks that the home, the header and MCP count the same rows; that a pull which is both an ask and assigned counts once; that mute and undo work; and that decline and undo work on an assigned row. The decline test fails without the askItemsOf change.
  • Existing tests changed only where they named the old two lists:
    • test/asks-bulk.test.ts: onYouCard became needsYouSection, the bulk form id became asks-bulk, and the muted wording is the list's.
    • test/asks-expiry.test.ts: the conflict now shows as the row's "conflicts with main" word.
    • test/home-feed.test.ts: assigned items are picked as assigned:<id> in the asks-bulk form.
  • bun x tsc --noEmit is clean. These pass: test/asks*, check-list, the home tests, the feed, live, MCP, notify, hand-decider, standing-rule and fleet tests, and the terminal's On you tests. There is no migration.

Not done. The terminal's On you card is unchanged; it already took its words from these rows. Only the 50 most recently assigned items join the list. The phone notifier reads the same rows, so it will now also say when something is assigned to you.

To try it: assign yourself an issue and check that the home's list and the top-bar count both go up by one. Then mute its repository and check that the row leaves, and press "Listen again" to bring it back.

🤖 Generated with Claude Code

Closes #1969

commented

Parked by the crew: the check failed ("apps, runs and the crew on the web > a pull carries the preview card, the checks line and the assignee; the dashboard's inbox lists it") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs