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

A chip on the home feed is drawn only when pressing it changes the posts on the page #6849

shipped production is serving it opened this has it
opened this

Replaces #5801. Pull #5815 has the start; finish on it while it is open, else start fresh.

Done:

  • [ ] A kind chip's count comes from the posts the home actually draws (the page's items, 20 posts), not from a second rank of the feed or from asks the home does not show. No extra feed rank or waitingOn read per render or live refresh.
  • [ ] A chip with nothing on the page to filter is not drawn; a drawn chip shows its count (Releases 3); a chip the viewer switched off stays so it can be switched back on.
  • [ ] test/feed-chips.test.ts seeds a home, presses every drawn chip and checks the visible posts change; a seeded ask the home does not draw adds nothing to any count. What a chip does to asks is tested on /asks, not here.

Files: src/feed/chips.ts, src/web/studio/feed.ts, test/feed-chips.test.ts.

Before pushing: bun x tsc --noEmit and the tests you add or touch; bun scripts/design-lint.ts if src/web/ changes. Small and single-purpose; tests never read the wall clock — pass now in.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs