place.hud.view
A view of a collection's records: the joins that gather their related records, and a layout of components that draws them. Its record key is the NSID of the collection it renders. HUD's own validator, not this lexicon, is the authority on whether a view is valid.
Details · record, key nsid
| Kind | record |
|---|---|
| Record key | nsid |
| Authority | hud.place |
| Commit rev | 3n3jbjep26uju |
| Indexed |
Record
record · key nsidProperties
activity
stringWhat an account did in making one of the collection's records, a short past-tense verb (Posted), for its profile's recent activity: the verb, then the record's label as the list's summary reads it. A bundled collection view's alone, with a list summary.
maxLength: 200maxGraphemes: 20
app
stringThe app the view's collection or query is of, as people name it (Bluesky): the name of its NSID's domain (app.bsky is bsky.app), where accounts' apps are shown. A bundled view's alone.
maxLength: 400maxGraphemes: 40
The collection the view renders.
What the view shows, in one line.
maxLength: 200
domain
stringThe domain of the app whose page the view draws (knotless.dev), in place of a collection: an app page view, with page. A bundled view's alone.
maxLength: 253
measure
stringHow wide the view would be drawn, where its host can give it the room: content, the host's reading width (the default); wide, a wider one (a profile's grid of pictures); full, all the room its host has for a view. A host decides how wide each is, or draws every view alike; a view drawn inside another's takes the room it is given.
maxLength: 16knownValues: content | wide | full
measureWhen
arrayHow wide an answer is drawn, by what it holds: the measure of the first case whose when it holds something at, else measure. One view of a query so draws some answers wide (a camera's feed of galleries) and others at the reading width (a home feed).
minLength: 1maxLength: 8
pageSize
integerRecords per page of a list, by default.
minimum: 1maximum: 100
parts
unknownThe view's own parts, an object of at most 16, each by its name (a lowercase letter, then letters and digits) a #part: what a Use node of its layouts draws as #name. Each is used.
profile
refThe section the view adds to an account's profile, where the account uses what it draws. A bundled view's alone.
records
arrayThe collections a method view draws as its query: a record of one opened by its at-uri answers as the query does, with params read from the record. No other bundled view names or draws the collection. A bundled method view's alone.
maxLength: 8
#backlinks
objectProperties
maxLength: 1024
#detail
object#head
objectWhat a page drawing the mode says of itself in its HTML head, to search engines and link previews, read against the mode's scope as an action's record is: each field a literal, a binding, or {"$join": [values]}, {"$first": [values]}, {"$rkey": path} and the rest of a template; one that reads nothing is left out. A trusted view's alone reaches the tree (_meta.ui.head).
Properties
at
unknownThe page's at-tags: an object of canonical, alternate and author, each structured data as jsonLd is (so {"$each": [array, template]} reads a list) that reads an AT URI or a list of them; what is not at:// is left out.
canonical
unknownThe page's own path on its app's site, starting with /, once read.
description
unknownWhat the page shows, text once read.
image
unknownThe picture a preview shows: a blob, or an https URL on the view's origins, once read.
imageAlt
unknownThe picture's alt text, text once read.
imageHeight
unknownThe picture's height in pixels, an integer once read, kept only with its width and an image of the view's own.
imageWidth
unknownThe picture's width in pixels, an integer once read, kept only with its height and an image of the view's own.
jsonLd
unknownschema.org structured data: an object of templates, where {"$each": [array, template]} is the template read against each element of the array; what reads nothing is left out.
noindex
unknownWhether search engines should not index the page: true, or once read true, a list with something in it (labels) or a record (a group); a list of such templates holds where any of them does.
title
unknownThe page's title, text once read.
type
stringWhat the page is, as Open Graph's og:type.
maxLength: 16knownValues: website | article | profile
#join
objectGathers related records for each record in scope, stored at joins.<as>: by an at-uri or strongRef (ref), by each element of an array (each, with ref within it), or by the records of the same repository whose path holds the record's uri (backlinks). Or, at a mode's top level, a query join (query): a related query called once on the whole answer, its answer at joins.<as>.
Properties
maxLength: 64
backlinks
refcollection
string · nsidRefuses ref targets of any other collection.
each
stringA path to an array; ref is then a path within each element.
maxLength: 1024
fresh
booleanA query join asked each time, never an answer HUD keeps a few seconds for whoever asked it.
limit
integerminimum: 1maximum: 500
mine
stringA query join's gate: a path as when's; the join is called only where it holds the signed-in account's DID.
maxLength: 1024
orderBy
arraymaxLength: 4
maxLength: 1024
params
unknownA query join's params: each a literal, a binding {"$": path} or {"$root": path} into the main scope, or into an earlier query join's answer (joins.<as>…) where that join reads no other's.
query
string · nsidA query join's method: a query, called once on the whole answer.
ref
stringA path to an at-uri or a strongRef.
maxLength: 1024
service
stringA query join's service: a DID with its service's #fragment.
maxLength: 2048
unless
stringA query join's gate: a path as when's; the join is called only where it holds nothing.
maxLength: 1024
when
stringA query join's gate: a path in the main scope or an earlier query join's answer; the join is called only where it holds something.
maxLength: 1024
#measureCase
objectA measure an answer is drawn at where it holds something at a path.
#mode
object#node
objectA component of the catalog, its props (literal values or bindings {"$": path}), and its children where the component takes them.
#page
objectAn app's page: query joins and a layout over its main scope, { domain, name, icon, actor, me, mine, entries, joins }: the app's domain, name and icon; the page's account (actor, { did, handle }: the one asked of, else the one signed in) and the one signed in (me, or null); whether they are one (mine); the app's entry points, each { title, call }; and the joins' answers.
Properties
join
arrayQuery joins alone, their params read from the main scope or an earlier join's answer.
maxLength: 8
pages
stringThe as of the join that pages the page: a List, Covers, Gallery or Player of its answer is the page list, which a page more (its answer's cursor, given that join alone) grows.
maxLength: 64
tag
unknownWhat a #tag in the app's text opens, wherever a bundled view of the app draws it: { query, params, service? }, each param a literal or a binding into { tag, hashtag } (the word, and it after a #).
#part
objectA piece of layout a view or an app's parts (place.hud.parts) name once and its layouts use wherever a node goes, through a Use node: drawn there over the value at the Use's scope, its Slot nodes filled by the Use's slots.
Properties
description
stringWhat the part draws, in one line.
maxLength: 2000maxGraphemes: 200
#profile
objectA section of an account's profile, drawn with the view's own layout. A collection view's shows that collection's newest records (limit), where the account holds it; a method view's calls its query with params, each a literal or {"$actor": "did"}, the account's DID, where the account holds any collection of the query's domain.
#recordActivity
objectWhat an account did in making one of the collection's records, for its profile's recent activity: the verb, then the record's label, or its noun where it has none.
#recordRoute
objectA collection a method view draws as its query, and what making one of its records is.
Properties
activity
refat
unknownWhat the query's answer shows first, where it shows one thing at a time (a story in its account's archive): a binding {"$": path} read against the record as params are.
The collection, a record's NSID.
The query's params, each a string, number or boolean, or a binding {"$": path} read against the record as { uri, cid, did, value }.
#say
objectWhat a tool's text says of a query join's answer: how many count finds in it, or the first line of label.
#summary
objectThe short text a tool answers with: a count of nouns, each record's label, and a detail count.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
place.hud.ui
objectA view resolved on the server: its layout drawn against its data, as a tree a client draws with nothing left to interpret, sent as a tool result's _meta.ui. Nodes are told apart by their component (c), not by $type: a node's props (p) are as the def named for its component describes (#textProps for Text, #errorProps for Error), and its items as the def its component's items name. A number with a fraction (a picture's ratio, a Stat's value, a track's duration) is a JSON number, which no lexicon t
-
An app's shared parts: pieces of layout its views use, each by <domain>#name.