Conflicts resolved (upstream's design and defaults win; the port's opt-ins stay):
- ui-contract fonts: upstream's served-faces provider, catalog job queue and byte budget;
the port's FaceBytes::chain (Word subset siblings, F-8) re-done on the provider: a served
face lists its served chain faces before the interface faces, a sibling landing after its
owner remakes egui's fonts once, drawing a face marks its chain drawn. The port's chain
trial moves onto upstream's rig, plus a late-sibling trial.
- text editor HostCx follows FacesCx's job-based document_face and document_face_bytes.
- ui-widgets Swatch: upstream's SwatchFill (split, spectrum, image, empty) with the port's
Swatch::optional / SwatchFace::optional (new SwatchFill::None, the "no colour" diagonal)
and Swatch::icon (glyph on the empty well) on top; both word sets kept.
- draw PaintBar: upstream's MixerLoad fill.
- font-manager: upstream's sample band; host rows (port) use it too.
- ui-panels / ui-patterns dock grips: upstream's drag_origin and named slack.
- platform clipboard tests: both trials kept.
Co-Authored-By: Claude <noreply@anthropic.com>
Upstream's editor runs in a restoring focus scope (FocusPolicy::TAB_LAYER), so an ended
session hands focus back to the stop it came from. A form field's editor takes focus
from the field's own page part, and focus arriving back there opens the field again:
Esc, Enter and picks no longer closed PdfCraft's fields. Component::focus_scope (default
FOCUS_SCOPE) lets an instance choose its scope; returns_focus(false) opens none.
Upstream's default is unchanged. Trial: an_editor_that_does_not_return_focus_leaves_its_opener_alone.
Pages: the port's page view keeps its pass (pre-draw tool callback, pager, GoTo, its picture stores) and takes
upstream's editor and inactive edits, snap and tool regions, rulers strips, picture reach with resident counts,
the zoom anchor and non-easing reflow, the thumb tip and Go To placement; PlacedPage::new takes upstream's
four arguments with showing() for the picture; page spacing is the theme insets for Creative and upstream's for
Productivity. Review: comment rows keep badges, lead and submit key beside upstream's balloon actions, body rows
and push buttons; a new lead keeps its own edit draft. Text: editor keeps holds_drafts with upstream's focus
scope. Module lists, stories and trials are the union.
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.
The text editor requested the I-beam every pass of an open session, wherever
the pointer was. At hover priority it beat the canvas tool's cursor and showed
over panels, the options bar and the rest of the UI. It now asks only while its
press is not idle: the pointer is over the editor or its own press is held.
Both fail on this branch: a stop that inherits the focus from a removed one is revealed, and a closed
editor on a canvas with rulers hands the focus to the rulers' corner instead of the canvas.
- note_editor ignores every editor but the IME owner, so a second editor shown after it leaves the owner's
composing report standing; editor_history answers non-owners (false, false).
- egui repinned to the fork's craft/ime-reset-retired (9b1f60c60): Event::ImeResetRetired reports a reset request
egui-winit or PlatformOutput::append dropped without a completion. The engine asks again on the retirement of
its own request; the focus check and the no-output retire in end_pass are gone. The test fixture reports
retirements where egui-winit does (focus loss, no IME output, another IME context, a newer request, egui's
dropped requests).
- The sheet grid's point mode ends a composition in the draft, its marked text kept as typed.
- TextEditor applies a pass's input before its press (the press is the pass's last pointer event, H0), so a
preedit and a press in one raw frame change the marked text once and the press interrupts.
Trials: a reset the integration retires is asked again (craft-ui-contract); the click trial gains a second
editor shown after the composing one and a preedit-then-press frame (craft-text).
EditorState.composing replaces EditorState.revision (and TextEditorHost::revision): an editor that reported
composing and now does not ended the composition itself (a press in its text, a selection, an app edit over the
marked text), and the engine interrupts the OS composition and drops its late events. TextEditor and the sheet
grid report their marked text; editors that show none report false throughout.
The reset fence ends only with the completion of the engine's latest request (ImeResetId); an earlier request's
completion is stale. A request the integration can no longer answer (a pass with no IME output, an unfocused
window) is retired and asked again when an owner returns.
Trials: preedit and a click during composition for a canvas TextEditor, with one press per pass holding the late
commit for the next pass (craft-text); reset requests and stale completions (craft-ui-contract).