Expand description
Apply a layout intent and store its result: the write path of every layout
edit a window makes (layout.applyIntent), and of srv’s own placements
(place_block). SPEC_STRONG_REDUCER_AUTHORITY_LAYOUT_2026_06_30.md §4.
Structs§
- Intent
Outcome 🔒 - What became of an intent.
Enums§
- Placement 🔒
- Where
place_blockputs a block.
Functions§
- apply_
layout_ 🔒intent - Dispatch
LayoutApplyIntentand write its events to the layout row in one hold of the reducer lock, so rows are written in the order intents are applied. A failed write puts the tab back as the row has it. Publishes on success. - block_
is_ 🔒minimized - Whether
block_id’s pane intab_idis minimized (a chip). False when it is in no pane. - layout_
row_ 🔒version - The version of
tab_id’s layout row (0 when it has none). - minimize_
block_ 🔒in_ layout - Show
block_id’s pane intab_idas a chip, in srv’s tree and the window’s mirror (theminimizeaction). Not applied, andOk(false), when it is the only pane there showing content: a tab always shows one. SPEC_DRAG_MINIMIZED_PANES_2026_10_20.md §3 C. - move_
block_ 🔒to_ edge - Move
block_id’s pane intab_idto be a band down or across the layout’sedge, in srv’s tree and the window’s mirror (themovetoedgeaction; the edge rides in the action’sposition). Not applied, andOk(false), when the block is in no pane there or the layout refuses (the root, a chip strip, no middle). - place_
block 🔒 - Place
block_idin its tab’s layout: srv applies the placement to its own tree, then queues the matching action for the window showing the tab, under the same action id and with the leaf’s node id, so the window’s mirror builds the tree srv stored. - remove_
block_ 🔒from_ layout - Take
block_idout of its tab’s layout in srv (one member of a stack, or its pane):LayoutDeleteNodeByBlock, stored and published. A block in no pane is a no-op. - roll_
back 🔒 - Put the tab back as
old_rowstores it, and forget the action id so a resend applies.