Preserve EffectCraft source from 4035d181329e847d7a57bf3d059502ea2c91b560, based on Brandon Thomas original 94e1c86d89a866771f80ad1610afda9aa12e85d8. Algorithm unchanged; module imports only adapted.
Co-authored-by: Brandon Thomas <echelon@gmail.com>
* xtask: delegate Unix group restoration in report test filesystem
* craft-xlsx: xlsb tests unwrap the zip fixture's Result
#1386 made the test zip writer return Result<Vec<u8>, Error>. The xlsb
tests from #1263, #1323, #1330 and #1337 merged alongside it and still
used the return value as bytes, so `cargo check --workspace --tests`
failed on main with seven E0308 errors in crates/xlsx/tests/xlsb.rs.
These call sites now unwrap the result, as #1386 did for the others.
---------
Co-authored-by: dotCooCoo <RobertLeeLW@gmail.com>
A hidden page is measured only: a measuring run inside an invisible sizing
child, so it senses, registers and paints nothing. It reuses the size its
last measuring run found while nothing it read changed, under the settled
rules a measure reads (no input other than pointer motion, no edit of a value
it read, nothing moving, no app repaint): the measuring run opens the same
run record replay::open/close keeps for settling regions, and lazy keeps its
facts with the size. A reused page notes its reads again, so an edit of one
later in the pass reruns the pass.
PaintChip shows its paint kinds through Pages: its popover keeps the size of
its largest page, so a tab switch moves and resizes nothing.
OverlayUi::show shows its body closure through the container pipeline: a
private content-sized layer container (popup surface, POPUP_PAD, no node of
its own). Step 5 measures the body before the host places the layer, so a
popup whose content changes is placed by its new size in the pass that shows
it, and a filling child takes the width the popup settles on.
The popup keeps its owner key: ContainerProps::owner (crate-private) makes
the container's memory, presence and layer bookkeeping belong to the
component that shows the popup (or the opener its overlay names), so body
memory lasts across a close and KeepAnchor focus return finds the anchor.
The host places a measured layer by at least its least width. The layer's
least width at its anchor reaches a content-sized collection through the
LayerFloor env value the layer container gives its regions in both runs,
replacing the least width the layer memory carried from the last pass.
#1386 made testing::zip return craft_opc::Error and left the xlsb call sites
still expecting Vec<u8>, so craft-xlsx does not compile and Workspace / gate
fails on every pull request. Unwrap the fixture's error where the bytes were
expected.
Preserves codec algorithm from AniCraft1f3e603b7ff53a3da364e41ec4da8d43dc83aab0 and2b7571363b4b647266df758f95b6e397021cfd4d; neutral frame type and explicit caller limits adapt the shared API.
Pass::column shows a column, docked or floating: an IconicColumn while it is
collapsed, else a DockColumn, with what the user did turned into actions in
column_work. Each dock column calls it with its own bar; each floating window
calls it inside a FloatingGroup with ColumnBar::Window, the title row being
the column's bar: its double arrow sets the column iconic, and a collapsed
window shows its icons at their size against the float area's nearer edge.
The window's split tree, its split resizes and its minimized toggle are gone.
Trial: the double arrow collapses a floating window's column and expands it,
the window keeping its rect.
DockColumn and IconicColumn take ColumnBar::Window inside a floating window:
no bar, no frame and no edge bands, and an expanded column no edge divider,
since the window's title row, frame and edges carry them. FloatingGroup takes
the window's WindowColumn: the title row shows the column's double arrow at
the end the window keeps to, the arrow or a double click on the band reports
iconic, and a collapsed column shows at its collapsed size against that edge
of the rect, not resizable, a move keeping the rect's size. IconicSizes::of
and icons_height size a collapsed window.
FrameView prunes a floating window's column like a dock column and writes back
only the docked tree's splits. Drop placements ask the anchor's rights wherever
its column is. Collapse to Icons applies to every column, docked or floating,
and is off for a column holding a panel that does not collapse; Float Tab
Group keeps a window's only group where it is. rail_actions and rail_lit go
with the rail links; Minimize reads group and accordion state in the commands.
Collapse is kept when a column or its groups float and decided by the
joined column; a floating window takes Top, Bottom and Center drops and
nothing beside it; collapses and shares_column refuse their placements
in both directions and reconcile repairs them; a stepped column keeps
its count through JSON and refuses widths; v3 floating trees load as
one column window per side-by-side part.