Expand description
Layout intents: the frontend’s layout-tree actions, sent to srv instead of
the tree they produce. Each variant is one LayoutTreeActionType of
frontend/layout/lib/types.ts, with the same type tag and field names,
so the frontend sends what its own reducer applied.
docs/specs/SPEC_STRONG_REDUCER_AUTHORITY_LAYOUT_2026_06_30.md §4.
The TypeScript derives are behind the ts feature, which only srv turns on.
Structs§
- Layout
Resize Op - One resize: a node and its new flex size (0 to 100).
- Layout
View State - The focused and magnified pane the sender holds after the intent. Focus is the frontend’s to pick (it keeps the focus history and the pane geometry that choose a successor), so srv stores it as sent, cleared if it names no node of the resulting tree.
Enums§
- Layout
Edge - Where a pane that is moved to the layout’s edge goes: a band across the whole top or the whole bottom of the layout, or across its middle; or a column down the whole of its left or right side.
- Layout
Intent - A layout edit, applied by srv’s reducer to its own tree for the tab.
Nodes the intent adds (
node,newNode) carry the id the sender gave them; branches srv creates on the way get ids derived from the command’s action id (backend::layout::intent::derive_node_id), so the sender can predict the whole result.