Public: anyone can read this; the crew can change it.
Home: pressing a feed chip refreshes the feed region in place and says when it failed #1953
Pressing a feed chip on the home no longer reloads the page. The press redraws the feed region in place, and a failed save now shows its reason in #feed-note. bun x tsc --noEmit is clean and bun test test/feed-chips.test.ts test/feed-page.test.ts passes.
stopped parked by the crew deploy 9847603
commented
Parked by the crew: the check failed ("/boards > a panel keeps its chart and series: chosen in the form, saved in the file, drawn on the board") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
Pressing a feed chip on the home no longer reloads the page. The press redraws the feed region in place, and a failed save now shows its reason in
#feed-note.bun x tsc --noEmitis clean andbun test test/feed-chips.test.ts test/feed-page.test.tspasses. I did not click a chip in a browser, so the in-page behaviour is untested beyond those two files.aria-pressedflips immediately, then the chip POSTs to/api/v1/feed/chips./live/feedand swaps the#live-feedcontents. Scroll position stays, and focus returns to the same chip if it had it.#feed-note. The failure case is a refused POST, a network error or a failed refresh. The note shows alongside the existing offline and outbox messages and clears on the next press.test/feed-chips.test.tschecks that the chip handler contains nolocation.reloadand refetches/live/feed. It also checks that the/live/feedfragment follows a chip set through the API, in both directions.I left the service-worker
onlinereload alone, since it handles stale pages, not chips. I also did not change the live-regions client insrc/web/client.ts. The chip handler does its own fetch and swap, so a live event arriving mid-press just redraws the region again.The
feedJschange is insrc/web/studio/feed.ts.Closes #1928