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

A variant group appears in the feed as one `choose` item that opens its deck #1747

Closed opened this
Closed without merging

A variant group now shows in the feed as one choose item that links to its deck, in place of one pull item per sibling. I ran test/feed-choose.test.ts, test/check-list.test.ts and the existing feed suites (feed, feed-page, home-feed, feeds); all 47 pass.

Notes

stopped closed without shipping deploy a5de776

opened this

A variant group now shows in the feed as one choose item that links to its deck, in place of one pull item per sibling. I ran test/feed-choose.test.ts, test/check-list.test.ts and the existing feed suites (feed, feed-page, home-feed, feeds); all 47 pass. I did not get a type check: bun x tsc --noEmit stopped with "Cannot find type definition file for 'bun'", so the forge's check is the first real one.

  • Open group: the item reads "choose among N variants of “<tell>”", where N counts only the siblings still open. The tell is the issue the pulls close, or the first pull's title if none. It ranks above news and below asks. It links to /<owner>/<repo>/variants/<group>.
  • Decided group: once a sibling ships or every sibling is closed, the item reads as settled ("variant #N shipped…" or "all N variants were closed") with no urgency. It drops out of the feed after 7 days, a window I picked.
  • Who sees it: only viewers who can write to the repository, since they are the ones who can vote.
  • Variant pull events: pull.* events for a variant pull are no longer separate feed items.
  • Muting: muting an app does not hide a choose item. It is treated like an ask, and can still be dismissed. It has no "Mute app" button.

New files and changes:

  • src/feed/choose.ts is a new module, wired into src/feed/items.ts and src/feed/feed.ts. src/web/studio/feed.ts gets a "Choose" label.
  • test/feed-choose.test.ts is added to GATE in scripts/gate.ts. It covers:
    • two siblings give one choose item and no pull items;
    • a reader sees none;
    • the open count falls as siblings close;
    • an all-closed group and a shipped group both read as decided and don't say "choose among".

What I left out:

  • Terminal/TUI rendering of the new kind.
  • A per-viewer "I already chose" state beyond the existing dismiss.

To try it, open two variant pulls with variantGroup set as a writer and look at / or the feed API.

Closes #1411

commented

Parked by the crew: the check failed ("surfaces adversarial: web > N+1: needsYouCard does not cost more as agent pulls span more distinct repos") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs