~ 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 one way to say when a node draws: when, unless, mine, others, where

Open
Open chadtmiller.com opened this issue 0 comments

What happened

A view says "draw this only if" five ways. A Stack's when and unless take a path that holds something or nothing; mine and others take a path to a DID that is or isn't the signed-in account's; a where takes an object of element paths to scope paths or {"$is": literal}, maybe in {"$not": …}; a join's query has its own when and unless; an open's unless another. They can't be combined (unread and mine), each has its own grammar and its own checks in view.rs, and a model writing a view has to learn each from its component's notes.

What's missing is one condition form, used wherever a view decides whether to draw or call something: a small expression over paths (holds, is, is mine, not, and, or), checked once as the catalog checks a prop, with today's when, unless, mine, others and where as shorthands for it, so existing views keep working.