net.anisota.observatory.layout
A saved Observatory grid layout. Each record is a complete, self-contained snapshot of a layout — built-in button configuration, the row geometry, the flattened tile order, and embedded element snapshots — so it can be shared by URL and saved ('learned') into another user's PDS without depending on the original author's element records, mirroring the spell architecture. Tile references are 'builtin:<key>' for built-in tiles or 'element:<index>' pointing into the embedded elements array. layout.rows is the authority for geometry; layout.tileOrder is the flattened reading order of the same tiles, kept in sync so clients that predate the row model still render the layout. An optional schedule makes the layout activate automatically during a daily time window.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | observatory.anisota.net |
| Indexed |
Showing version bafyreidc7vxpwduyn6ee3nour76ojekiuqpbummgapkmlsbaabuo5i4a6y. Show the latest
Record
record · key anyProperties
When this layout was first saved
createdBy
refdescription
stringOptional description of what this layout is for
maxLength: 500
elements
arrayEmbedded snapshots of the custom elements this layout uses. Each entry mirrors the shape of a net.anisota.observatory.element record body (type, name, description, plus the type-specific payload: button, note, quote, reminder, divider, spacer, heading, or widget).
Display name for this layout
maxLength: 80
When this layout was last modified
#createdBy
objectAttribution for the original crafter of this layout.
#layout
objectThe grid configuration captured by this layout.
Properties
buttons
unknownBuilt-in button overrides keyed by button key (enter, atmosphere, post, chronicle, inventory, harvest, tutorial). Each value may carry enabled, order, size, and variant.
patternsIndicator
unknownPatterns visualization configuration captured with this layout
rows
arrayRow-based layout. Each row sits on a shared six-column track; tile spans are derived from the row's tile count and balance and always sum to 6. Rows are the authority for geometry; tileOrder is the flattened reading order of the same tiles, kept in sync so clients that predate the row model still render the layout. When rows is absent, or disagrees with tileOrder, a client re-derives rows from tileOrder. No maxLength: every row holds at least one tile, so rows.length can never exceed tileOrder.length, which is itself uncapped — a cap here and not there would make a legal tileOrder unrepresentable.
shuffleLayout
booleanWhether tiles shuffle within divider-bounded groups each session. Retained for compatibility with clients that still shuffle; a client using the row model preserves the stored value on write but does not act on it, because rows describe a stable layout.
tileOrder
arrayThe flattened projection of rows: rows in order, tiles in order within each row. Entries are 'builtin:<key>' or 'element:<index>' into the record's elements array. rows is the geometry authority and this field is the compatibility flattening kept for clients that predate the row model — a reader that understands rows uses it only to reconcile (dropping tokens no row claims, appending tokens no row carries).
maxLength: 64
#row
objectOne row of the Observatory grid. 'tiles' rows hold 1-3 tiles across the six-column track. 'ledger' rows render their tiles as hairline lines (label left, meta right) and absorb the long tail. 'structure' rows hold exactly one divider, heading or empty-space element and act as a boundary between rows. Entries in the tiles array use the same token vocabulary as tileOrder: 'builtin:<key>' or 'element:<index>'. kind, band and balance use knownValues and are therefore open: a reader that does not recognise a value clamps it for that session only and must not rewrite the stored value.
Properties
balance
stringHow a two-tile row divides the track: even 3:3, left 4:2, right 2:4. Meaningless (and canonically 'even') for any other tile count.
maxLength: 32knownValues: even | left | right
band
stringThe one height every tile in this row takes. Ignored by ledger rows, and by structure rows whose tile is a divider or heading.
maxLength: 32knownValues: compact | standard | tall | panel
kind
stringmaxLength: 32knownValues: tiles | ledger | structure
maxLength: 12
maxLength: 64
#schedule
objectOptional daily activation window. When enabled, the layout takes over the Observatory between startTime and endTime (wrapping past midnight when startTime > endTime), optionally restricted to certain days of the week.
Properties
daysOfWeek
arrayDays the window applies to (0 = Sunday … 6 = Saturday). Empty or absent means every day.
maxLength: 7
minimum: 0maximum: 6
enabled
booleanWhether the schedule is active
endTime
stringWindow end as 'HH:MM' (24-hour, local time)
maxLength: 5
startTime
stringWindow start as 'HH:MM' (24-hour, local time)
maxLength: 5
#source
objectProvenance for this layout. 'original' was crafted here, 'learned' was saved from another user's shared layout (see originalUri/originalDid), 'migrated' marks the layout the one-time unify migration captured from the user's live grid, and 'starter' marks the layout a published generation of the starter grid wrote when it moved an account onto that generation. The last two are those passes' idempotency sentinels and must be preserved when a record is re-saved, or the pass will run again and duplicate the layout.
Properties
originalDid
string · didDID of the user this layout was learned from
originalUri
string · at-uriAT URI of the record this layout was learned from
type
stringknownValues: original | learned | migrated | starter
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
One custom Observatory element — a button, note, quote, reminder, divider, spacer, heading or widget — as its own record, so it can be shared and saved ('learned') by other users, mirroring the spell architecture. Written by src/utils/observatoryElementService.js, which always writes exactly the payload key matching `type` and nothing for the others. The element's place and enabled state live in the separate ordering index at net.anisota.observatory.layout/self (entries: [{ rkey, enabled, order