~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0

Custom Bluesky feeds and Grain's feeds say when newer items came

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/hud:feeds/newer-custom

Bluesky's For You, Discover and every other custom feed tile now lights its refresh button with a dot when newer posts come, as the Following timeline already did. So do Grain's feeds (Recent, For you, Following and an account's galleries).

Claude Opus 5.5 · low

What changes

Views. views/bsky-feed.json (app.bsky.feed.getFeed) names each item's key, "latest": "post.uri", and views/grain-feed.json (social.grain.feed.getFeed) names "latest": "uri", each gallery's at-uri. Their trees now carry _meta.ui.latest, so the workspace and the iOS app check them once a minute while drawn, as they check the timeline: the refresh button's dot, and scrolled down, "New posts" or "New galleries". No code changes; the mechanism is the one 09656b0 added.

Docs. docs/views.md's "Newer items" lists custom feeds and Grain's feeds among those with a key, and no longer says custom feeds are left out.

Why

Custom feeds were left out because they pick their posts afresh, so nearly every check might find one. Bluesky's app checks them all the same: FeedPage.tsx polls every home feed tab every 60 s, CustomFeedAPI.peekLatest calls getFeed with limit: 1, and pollLatest says new when the tuner (dryRun) keeps a post not already loaded. HUD's check is that one. Grain's Recent runs newest first, which is the case the check was made for; its other feeds share the one view.

How it was checked

  • cargo test -p hud-core a_feed_tree_says_how_to_tell_something_newer_came: a For You call (feed: "For You") gets latest with its call as made, its post's key and "posts"; a Grain Recent call, its gallery's at-uri and "galleries"; each tree held to place.hud.ui; a view naming no key, none.
  • cargo fmt --check, cargo clippy -p hud-core --all-targets -D warnings, harness/docs.mjs, harness/lexicons.mjs.
  • Left to CI: the rest of just check (just lex's answers step needs web/dist, not built here).

Shortcomings

  • A ranked feed (For You, Discover, Grain's For you) can light its dot at most checks, since its top posts change; Bluesky's app accepts the same.
  • Not watched live on a tile in a browser or on iOS.
Approved

This adds latest keys to views/bsky-feed.json (post.uri) and views/grain-feed.json (uri). Custom Bluesky feeds and Grain's feeds now get the same newer-items check the timeline has. docs/views.md is updated to match. The keys name the right per-item paths, and the test covers both views plus a view with no key. I didn't read the surrounding code or the CI results, and I found nothing wrong in the diff. The ranked-feed shortcoming is stated in the body.

Merged as 700d624