Skip to content

Explore the data and page maps

Map in the top bar swaps the canvas for a map of the open document’s references. Press it again (Back to the canvas) to return. The map is a view of the same references the Inspector uses. It writes in two ways: click-to-bind, an undoable document change through the Inspector’s patch path, and layout or hiddenGroups, which go to the sidecar.

The heading says Map. Two modes sit beside it:

  • Data — Objects, actions, state, pages. Nodes are declared business objects, host actions, local state keys and pages. Edges are the document’s reads, writes, binds, repeats, actions, host actions, goToPages and startup fetches. The legend names them Read, Writes, Bind, Repeat, Action, Host action, Goes to and Startup.
  • Pages — Pages and goToPage. A page-flow map of each page and the buttons that move between them.

Search, grouping, usage, kind chips and the selected field stay in the session when you close the map, so you can flip back to the canvas and open Map again without starting over. Switching Data / Pages clears Group (it does not apply on the page-flow map). New and Import reset the session.

These controls sit above the map. Group, the kind chips and the host-type prefix buttons apply in Data only.

  • Search (Search alias, type, field) matches a node’s key, label, host type, group and field paths. Matching is case-insensitive and substring.
  • Group (Group by host type prefix) lists All groups, then each prefix: the text before the first . in a declared object’s type (crm.customer → crm), or the whole type when it has no dot. Picking a prefix hides every node that is not an object in that group.
  • Kind chips — Object nodes, Host actions, State keys, Page nodes — hide a kind of node while they are off. They are session-only: they are not written to the sidecar.
  • Host-type prefix buttons (one per prefix, when any exist) hide objects of that prefix. Pressed means visible. These are saved, as graph.hiddenGroups in the sidecar.
  • Usage (Used or unused) is All, Used or Unused. A node is used when something in the document reads, writes, binds, repeats, dispatches or navigates it.

A node whose fields are showing has Collapse {key}; a collapsed one has Expand {key}. New nodes start collapsed. Collapse, like position, is stored per object, host action and state node; pages store position only.

When nothing matches: No nodes match this filter.

Click a field on a node. The map lists Used by for that pointer — the same Text, Input, condition and event sites the State tab shows — and highlights the connected map nodes. Canvas rings appear only through Show on canvas.

The highlight clears when you:

  • press Esc (not while typing in an input, textarea or select);
  • press Clear highlight on the canvas chip, or the same button in the map detail;
  • open Preview (which also closes the map);
  • open or close the map with Map;
  • press New or Import.

Closing the map clears the highlight but keeps the selected field in the map session. Reopening Map still has that field selected; use Show on canvas to ring the controls. Clicking the field again highlights the matching map nodes, not the canvas.

Removing the binding that caused a highlight drops the ring as soon as the document no longer references that pointer.

With a field selected, Show on canvas closes the map and shows the highlights on the live canvas. If the open page has none of those controls, the designer switches to the first page that does. With nothing using the field it stays on the map and says Nothing on the canvas uses this field. Otherwise it announces 1 control highlighted or {n} controls highlighted.

Select a canvas control, then a field on the map, then bind:

  • Bind selected to this field when nothing on the canvas is selected, or the field cannot bind yet;
  • Bind {element} · {prop} when a bind is ready;
  • Already bound when that control already reads the field.

The hint with no canvas selection is Select a canvas control, then bind it here. The detail copy is Click a field to highlight the canvas controls that use it. Click-to-bind uses the Inspector’s patch path.

The bind uses the same propertyUpdate path as the Inspector, including $format wrapping, and the same commit gate: a change whose result import would refuse never lands, and the map shows the reason. Typical refusals:

Shown When
Select a component on the canvas to bind. nothing usable is selected
Already bound to this field. that control already reads the field
Leave Preview to bind. Preview is open
Wait for the assistant to finish. an AI turn is running
“{alias}” is a collection; bind a row field with $item inside a repeat. the field belongs to a collection
Nothing on “{key}” can bind {pointer}. no bindable prop on the selected control accepts the field
the importer’s own message the commit gate (documentIssue) refused the result

Host-action parameters are listed on their node but are not bindable from the map.

Pages shows one node per page, labelled with the Page Title (or the key when it has none). Edges are goToPage only. Each page card lists Goes to {page} · {elementKey} and Opened from {page} · {elementKey}, naming the page and the element that dispatches the move. The same edge list shows on page nodes in Data. Selecting a page node selects that Page in the Inspector. Group, kind chips and hiddenGroups do not apply in this mode. Dragging a page stores its position in graph.pages.

Node positions (x/y) and collapse live only in the design sidecar, {stem}.mica-design.json, under graph. Export writes that file beside the document; the document envelope never grows a graph key — import refuses Document carries unsupported field “graph”. A missing sidecar is fine; nodes then take default positions and start collapsed.

See the sidecar for its other contents (mock fixtures), and Import for what a stale sidecar drops.