Union of both sides in buttons, swatches, picture, lists and rows, menus,
notices, date picker, popup list, tabs, text fields and the tile grid, and
their stories and trials. Picture keeps upstream's Rendered source and the
port's Svg source on the shared packed store. Swatches take upstream's
hexagon shape with the port's WellFill and icon cells. Tab strips take
upstream's Fitting (ghosts, kept tabs, end items) with the port's document
tab gap; tabs take upstream's place() with the port's marker dot. Menu rows
keep the port's RowInput with upstream's pointer-driven activation. Test
module lists are the union, pub(crate).
257 conflicted files staged with their conflict markers (630 hunks). The one
modify/delete, crates/ui-patterns/src/patterns/preferences/body.rs (deleted
upstream, modified by the port), keeps the port's file for its area to carry
into upstream's preferences/page.rs. Plan: landing/fw-sync-plan.md.
Brings in craft-libs#2756 (frame-t3), #2810 (a memoized view in a row sits on the row's line) and #2838 (home rail look).
- egui pin and Cargo.lock: rework-d2's egui rev, which contains #2756's; frame-t3's serde line for craft-tracked.
- menu bar: EnglishFn goes with frame-t3's removal of english; rework-d2's docs stay.
- Env::start_view_room: keeps both column flags, then Shrink::Fit when the view fits.
- lazy::Place: both opacity and fits.
- Lazy::run_keyed: a memoized view's room is the row's cap when the row narrows it, else the flow region, and then moves down onto the row's line (on_row_line); the cap is horizontal and the move vertical, and the move keeps the room's size, so a kept run replays moved with it.
A memoized member of a bar whose content held a vertical rule took the bar's whole open room as its height: the
view's layout room started with no content-sized axes, so a child that fills took the room. The room keeps the
enclosing body's content axes (they join the scope key), so the view takes what its content used, as without the
view. Trial: a bar with a memoized member is as high as the bar with the same content shown plainly.
next's submenu switch (62189858af) requests a plain repaint, and its trial counts a memoized view beside the bar,
which replays while sibling submenus switch, in place of a settling Lazy region.
next's WordCraft port and the framework work under it (243d68e12d) take the memoized-view APIs where they meet the
branch: story values bind through StoryData::bind, value_at and pair_at (next's copy-out stories included; one held
form story still binds a copy, as its held answer is a note beside the value); next's env values (GroupLevel,
ControlPlace, RibbonLook, ScreenModeSet), IconMark and PageBandRoom derive MemoProps, and the shell entry keys the page
band's room; request_own_repaint calls become request_repaint. The collection extent next reworked (motion-owned
style context, FillHeight, ideal width by item count) moves into items_extent. The header's hosted cells join the
parts' roving group from the pass's own membership (parts_group over Cx::join_roving), as the parts' stops do. A
content-sized shell slot measures its content with the app running in it every pass. The gallery card hands the
story's output from its view's real run (StoryRun).
Conflicts resolved by keeping both sides. The start screen keeps next's
Greeting layout and its move of the recent body to recent_list.rs; the
desktop Home grid aspect and card padding now reach recent_body through a
desktop_home flag. The scroll bars keep both the document chrome (arrows,
corner) and next's drag tip.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The measuring run records the content's extent, and the real run takes it at step 5:
whether the content overflows (the wheel, the bars, the strips) and how far it
scrolls. A bar too short for its members takes the wheel from its first frame.
A member that gives no place of its own marks its stop at its report;
the group's owner, at its report after its body ran, writes each marked
member's position and set size from this pass's members. The mark is on
the stop record, so a replayed member carries it. Nothing reads last
pass's stops for a set position.
Stops register after update, which calls Cx::join_roving, so a stop and its focusable parts are in the body's
roving group from the first pass that shows them. Membership is a field of the pass (roving_member), read by the
stops and the report step; the pass-stamped join slots in egui memory (join_group, member_group, join_part_group,
part_group) go. testing::focus::pass_stop_groups reads what the running pass registered.
Lazy::settles, Lazy::content, Key::Version, the input and unsettle rules
(Changes::input_through, unsettled_through, scan) and lazy::unsettle with its
callers are removed. frame::request_repaint marks the record of the view it
is asked in and reruns only that view; asked outside every view, every view
replays. request_own_repaint goes; ui-canvas calls request_repaint. Pages
measures each hidden page once per pass. The tests that used the old API are
memoized views, with trials for repaints in and outside views and for
given-value edits. API map rows and the framework doc describe memoized
views.
BarItem, ItemDisplay, MoreMenu, BarKind, StatusMessage, StatusProgress, StatusItem, StatusValues and StatusReadout key
a memoized view; Axis, Side and PixelSize implement MemoProps.
- framework-01-w8: written by an agent
- framework-01-w8: finished by an agent
- framework-01-w8: fade takes env (framework-01-w5's signature)
- framework-01-w8: review fixes (review-1)
- framework-01-w8: review fixes (review-1, files the rulings name)
- framework-01-w8: a content column adds no Ui of its own, so its children keep their ids when its width becomes bounded or unbounded (fw01 round 2)
- framework-01-w8: the keyframe lane story fills the width its time axis is fitted to (fw01 round 2)
- framework-01-w8: a body's reveal is queued as a jump for the next pass's step 4, like the scroll bar's moves (fw01 round 2)
- framework-01-w8: the filling-bar trial pages the narrow bar and reads only what its view shows (fw01 round 2)
- framework-01-w8: a body group names its container; a text part's keys read the selection it holds for its edit menu (top run round)
TextRun::least_width measures Wrap::ElidePath on the range layout_cut paints at that width (the last name cut, or
the name whole after the ellipsis), through one path_name helper both share. cut_pieces trims white space before the
ellipsis, in the paint and the least alike. The row shrink step records each unit's width and whether it dropped as a
Shrink record in layout memory (layout::ShrinkCap), and a leaf reads the drop from it.
Component::fills defaults to the width when the caller set Sizing::FillWidth,
and the sizing stays on the component after step 1 so the layout hooks read
it. Button, TextField and Slider lose their fill_width props and Swatch and
GradientSwatch their fill flags; callers set Sizing::FillWidth. The blend
select in BlendRows takes the room before Opacity, as in PhotoCraft.
A contract trial checks that a FillWidth leaf takes the row's room and a
Content leaf does not.
A layer's content starts from its opener's scope with the layer-local fields fresh (Scoped::start_layer), in the
measure its container makes under the opener's env as in the run under the layer's, and a layer or pane starts
without InBar. A select in a popover opened from a bar measured as a bar member and fitted its content. The bar
trials that narrowed a select at a fixed width take a narrower bar, since a select in a bar is now its fitted width,
and the rule trials use icon buttons, which keep their width.
A component declares itself a rule with Component::RULE; Divider does. In a bar's line the pass holds the shapes a
rule painted until the next member decides whether the view shows it: a member shown keeps them, a member the bar
hides takes them back, and so does the end of the line for a rule with nothing after it. A settling region's record
is taken after that, so a replay shows the line as the run did. A divider was left behind at the bar's end when the
members after it were hidden.
A content-sized select, and any select in a bar, fits its faces: as wide as its widest entry and the chevron need,
with no field floor, and at most a field length, where a longer entry elides. Options bars sized every select to the
field length or kept a 96 pt floor, so the whole-or-nothing rule hid later members the bar had room for. The bar
selects that asked for content sizing themselves no longer need to; LayerFilterBar's type select, in a row of its own,
asks for it.
Only a member in flow is judged: a part shown at a rect and a control in a label scope belong to the member around
them, and a labelled leaf is hidden together with its label. Containers that fill keep their content width in a
bar (a Field fills by default), so only a leaf that fills takes the room the view leaves.
A leaf or a captioned field in a bar's scrolling body that the view shows only in part gets an empty clip: it
neither paints nor takes the pointer until a scroll brings it in whole, and it keeps its Tab stop, so the reveal
scrolls it in. Fields were cut at the bar's scroll edge.
The scroll made the room unbounded along x, so Slider::fill_width, TextField fill and fill-width rows in a bar
kept their measured widths. The room a row shrinks to and the room a filling child fills are now the one view room;
a share there never cuts the child's content, which scrolls.
The scrolling branch ran its row without the shared line, and the end region centred over the band an
overflowing body's scroll bar adds under it: a bar's commit and cancel buttons sat below its members.
A content-sized body given a shrink cap in a right-to-left scroll region measured from the region's far end,
where its field took no width, so a bar too short for its members laid out differently from left-to-right.
Bar::align sets the body row's alignment; Bar::trailing gets the bar's body
context so an end-region group can read and write the state the body reads.
A centred or end-aligned row in a body that scrolls along x measures its band
from the view, as the shrink step does.
A row in a bar too long for its room narrows its last unit to its least before the one before it gives
anything (ShrinkOrder::FromEnd, read from InBar), as the old bars clipped from their end; rows elsewhere keep the
even share. A status bar's message now elides before its readout.
StatusMessage is the message and tone a component reports for the status bar and the member that shows it:
a rule, then the text faint or in its tone's colour, elided on one line. StatusProgress is a background
task's readout for the trailing group: name, progress bar, percentage and Cancel. The render-path label is a
Link in the warning tone. The Bar Status story becomes the old PhotoCraft, Error, Narrow and Job stories.
`Metrics::least_width` is the floor a least measure takes in place of
`min_size`'s width. A field keeps its 96-point floor where it takes its own
width and, in a row that shrinks it, narrows to its padding and one glyph plus
what its content measure adds there (a select face's ellipsis and chevron, a
text field's adornments).
A short row takes its shortfall from every unit in proportion to what each can
give, so all reach their least together.
The editor of a text field ran in a scope of the parent Ui, which moved the
parent's cursor back to the end of the text part after the root had taken its
place: a member after a search field started inside the field's clear button.
A captioned field or a nested row in an unwrapped row now takes part in the
row's shrink step. Its least comes from a probe sweep that runs only when the
row is short: the content measures unbounded along x with every leaf at its
least, and it reads and leaves no layout records. The row's width for the body
becomes the room the body measures and shows in (mount_room).
A Stack body fits each leaf in flow to its room, down to the leaf's least, so
a select inside a capped field elides instead of running past its edge.
A body that fills along an axis its flow does not bound measures its content
there, as `sized` already shows it, instead of counting at zero.