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.
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.
Replaces #5801. Pull #5815 has the start; finish on it while it is open, else start fresh.
Done:
items, 20 posts), not from a second rank of the feed or from asks the home does not show. No extra feed rank orwaitingOnread per render or live refresh.Releases 3); a chip the viewer switched off stays so it can be switched back on.test/feed-chips.test.tsseeds 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 --noEmitand the tests you add or touch;bun scripts/design-lint.tsif src/web/ changes. Small and single-purpose; tests never read the wall clock — passnowin.