~ 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

No way to share a view fragment or a default across an app's views

Open
Open chadtmiller.com opened this issue 0 comments

What happened

An app can't share a piece of a view, or a default, across its views. Every view of an app is one whole document, so what several views draw the same is copied into each. Grain's gallery card is written out in both grain-feed and grain-gallery-view. Its mention suggestions (a composer field's suggest: social.grain.actor.searchActorsTypeahead at did:web:grain.social#grain_appview, its param, limit and paths) are the same object seven times across grain-app, grain-comments, grain-feed and grain-gallery-view. A change to one copy that misses another ships two cards or two typeaheads, and nothing says the copies drifted.

What's missing is view fragments and app-wide defaults: a fragment file of a layout subtree (fragments/gallery-card.json) that a view names in place of a node, resolved and checked as HUD loads the app as if written inline; and defaults in the app file (one mention-suggest config, a date style) that a view's props take where they give none. Both stay data, resolved on the server, so no client changes.