Since #2363, craft-ui-contract's testing no longer carries snapshot and the
framework crates have a suite feature. Every cl command still resolves one
framework feature set (feature-root brings the gallery's craft-ui suite), so the
three doctor reports were out of date, not second builds:
- drop the pin on craft-ui-contract's testing including snapshot: each framework
crate's suite forwards to the runtime's suite, which cl picks first
- the gallery's must-be-optional rule covers domain crates, not the framework
- the story renderer's lines are compared with the features the gallery's lines
turn on, implied features included (suite implies testing)
CL_DRY_RUN with cl render no longer runs the renderer after printing the command.
Upstream's photocraft#15540 selects a text field's whole text when a layer opens on it, so the
port's edit composer (ComposerDraft::Edit / EditVerbatim, port-only kinds) replaced the comment
being edited with the first key typed; production appends ("Original" + " edited").
TextOptions::keep_caret_on_open (TextField::keep_caret_on_open, off by default) leaves the codec's
caret on open; the composer sets it for edits only, so a new comment and every other field keep
upstream's rule. The popover call landed with 5abaa7360; this adds the option it uses.
Trial: note_popup::an_edit_composer_opens_with_the_caret_after_the_text (New still selects all).
Real fixes, no allows: split long functions (portal first reads, canvas wheel read, text editor input pass, list row toggle parts, notice action rows, thumbnails grid aspect and edit rules, comments row entries), boxed the large Entry item row, type aliases for complex types, a StatusMeasure for the status cell's measures, double #[must_use] removed where the type is #[must_use], Copy clones and useless conversions dropped, struct-update syntax in place of field reassignment, a split press-pass test.
* Font samples sit on one baseline in a fixed band, shrunk only where their ink would leave it
A font sample was as high as its face's line (ascent, descent and line gap, the gap
below the baseline as egui lays it out) and centred in its rect, so faces with a taller
or bottom-heavy line sat higher in the picker's rows, and a face whose line was taller
than the banner's band was centred past its edge and clipped.
One rule, faces::sample_line, now serves FontSample and the picker's banner: the sample
fills a fixed band, sits on the baseline of the interface face's line at its size
centred in the band, and is laid out at its size unless its ink (the galley's mesh
bounds) would cross the band's top or bottom, then at the largest size whose ink fits.
FontSample takes its band as an option; the picker's rows set it to the thumbnail side,
as the banner's band is the large thumbnail side, and the panels keep LINE_EM of the
sample's size.
Trials: rows follow a host text that arrives after the list opened, in a CJK face; and
samples in faces with different lines sit on one baseline with their ink inside their
bands, rows and banner. Story font_picker_cjk_sample_text over the repository's Noto
Sans CJK SC subset.
* font-manager: declare the CJK test font its picker trials and story read
* font-manager: FontSample::band as a derived prop
* Swatch: the image well's mesh takes the shared UNTINTED vertex colour
Upstream passes a disabled binding's chord to the next binding (Matcher::press_where),
so a press whose only binding is state-disabled matched nothing and the port's decline
(FrameOutput::declined) never ran. Both kept: with no enabled binding the board matches
the press once more without the filter and declines that command when only the app's
own state disables it (gate, modal rule and instance state still not declined).
The port's story command set (registered with the stories in the test binary) bound
Cmd+K, so the trial's Find command lost its chord and its row showed none. The story's
chord moves to Cmd+Shift+F; the trial is upstream's and unchanged.
Upstream routes an opener's list keys only to the list the popup names
(PopupList::list / Overlay::list); the port found the first type-ahead stop in the
layer. Upstream's mechanism wins; the trial's fixture names its list, its check stands.
Upstream made the unsaved question Role::ALERT_DIALOG; the port trial looked it up as
Role::DIALOG. Only the lookup changes; the check that the text stays inside stands.
Upstream shows a hinted command's label and chord over the hint even when the label
shows whole; the port showed the hint alone (L-72). Upstream's default kept; the port's
look is the opt-in CommandState::hint_alone(true), carried as ResolvedCommand::hint_alone.
The trial asserts both.
Upstream's one-Escape dialog cancel (focus::escape_closes_dialog) now counts modal
dialogs only, as the port's focus_in_modal_dialog does: a modeless window's edits belong
to the app, so Escape ends one thing at a time (field, then window). Modal dialogs keep
upstream's one Escape.
The port's latch ended on PassPointer::focus_lost and a PointerGone event; upstream's
MiddleAutoscroll read egui's focus flag only, which a blur event does not change in its
pass. The port's addition kept on top of upstream's autoscroll (L-321).
Upstream reports a layer move once, on the Commit, at the rect the layer already shows
at; the port's filter that dropped a move ending where the bar shows threw that report
away, so a drag never wrote the place. A click reports no move upstream, so the filter
is redundant: removed. Fixes the three task bar trials.