Conflicts and how each was resolved:
- crates/text/src/ui/spelling.rs: upstream 463af6d25 makes Done the default
button (close_on_enter(true)); the port's buttons disable Change All and
Add for a repeated word and the dialog can be modeless. Both kept: the
port's button list and modeless switch, with upstream's close_on_enter.
- crates/ui-canvas/src/canvas/mod.rs: upstream adds Settled::wheel_token
(wheel claims, 988e77876/66923d268); the port adds Settled::zoomed. Both
fields kept.
- crates/ui-canvas/tests/it/canvas/tools.rs: import union (upstream's
ToolReadout, the port's ViewFit and ViewRequest).
- crates/ui-contract/src/runtime/egui/alt_code.rs: the two sides disagree.
The port (c064eb616, 8577b382a) let only keypad digits enter a code, so an
unclaimed main-row Alt+digit stayed a shortcut. Upstream (744812cbf,
9f649dc80, 4b1d442bb) keeps top-row digits composing codes and builds the
Windows carrier and echo handling on a top_row flag. Took upstream's
design and file. An app's Alt+digit shortcut now has to be claimed by the
key target (upstream's `claimed` path), as it already is for the keypad.
- crates/ui-contract/tests/it/runtime/alt_code.rs: upstream's helpers
(keypad(), top_row_code()) replace the port's on_keypad/send_main_row.
All of upstream's assertions are kept. The port's assertion that an
unclaimed main-row Alt+5 reaches egui became "a claimed top-row Alt+3
reaches egui", which carries the port's shortcut need into upstream's
design. The port's assertion that main-row digits type nothing is
dropped: it contradicts upstream's "the text after a top-row code is
typed as normal" (éй).
- crates/ui-contract/src/runtime/focus.rs: each side added a function (the
port's text_root, upstream's surrender_stop). Both kept.
- crates/ui-widgets/src/list/row/placement.rs: upstream adds TreeIndent
(a host's indent step) and ThumbSize::Custom; the port adds the side-menu
place row (larger icon, roomy pad, section gap, taller row) and
ThumbAspect. Merged: the port's place sizes with upstream's TreeIndent
step, and the imports combined.
- crates/ui-widgets/src/menu/item.rs: upstream no longer imports level::Row
(065818eeb); the port imports ValueMark. Result: {MenuLevel, ValueMark}.
- crates/ui-widgets/tests/it/list.rs: both sides added trials after
text_rows_are_shorter_than_control_rows. All kept: the port's
a_list_in_a_side_menu_has_taller_place_rows, and upstream's three
thumbnail-size trials.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CanvasSpace::with_wheel takes only the share again, as before the claim
token; the canvas attaches the token through a crate-private method, so
a space built with with_wheel carries no token and cannot claim.
craft_ui::runtime::wheel::mark_modal also marks a gesture that `id`
received a share of in this pass, for example the horizontal share of a
diagonal gesture that a nested scroller owns. Claims stay with the
gesture's owner.
CanvasSpace keeps a ClaimToken with its wheel share, and claim_wheel
passes it to craft_ui::runtime::wheel::claim, which refuses a token
other than that of the share it would claim. A CanvasSpace kept from
an earlier pass, or from a viewport that was closed and opened again
under the same id, can no longer claim a later share. Tokens never
repeat in the process.
TouchpadGlide::stop also clears the lift samples, so the next swipe
cannot glide on the motion of a claimed swipe whose device end the
canvas did not read.
Wheel gains claimed, claimed_gathered, claimed_zoom_gathered and
claimed_spent. CanvasSpace::claim_wheel claims the pass's share of the
gesture the canvas owns and records the motion the body used up; the
gesture's later shares carry the claim and count only the shares the
body claimed, so a body that turns a gesture into steps keeps no state
of its own. A second claim in the same pass replaces the first, and a
claim outside a running pass, of a gesture another taker owns, or with
a non-finite spent value is refused. claim_wheel returns whether the
claim was taken.
The canvas does not move its view by a claimed gesture: it skips the
navigation of claimed shares and drops the eased wheel, the eased wheel
zoom, the touchpad glide and any partial zoom notch the gesture still
owed, also in passes without a share and after a device end.
CanvasSpace::mark_wheel_modal marks the running gesture as gone on
under one of the app's own modal windows, so its later shares carry
Wheel::modal until it ends. Synthesized end shares carry the claims of
the gesture they end, and a gesture the split hands to another owner
starts its claims again.
- upload_buffer and request_read check the device before returning a
recorded error other than a loss, so a device destroyed while its loss
callback is deferred reports GpuFault::DeviceLost. An out-of-memory error
still takes precedence over a validation error on a valid device.
- craft_gpu_device::native_descriptor includes OpenGL on Windows when it is
the only compiled native backend, and craft-gpu-wgpu uses that descriptor.
- An allocation error whose handling finds the device lost returns
GpuFault::DeviceLost instead of an allocation error, in upload_buffer and
request_read.
- request_read checks the device after submitting its copy, so a copy that a
destroyed device rejected does not become a pending read.
- On Windows, the context's instance includes OpenGL when it is the only
compiled native backend.
- craft_gpu_device::native_instance returns OpenError::NoAdapter when no wgpu
backend is compiled, instead of wgpu panicking.
- docs/gpu-backends.md says read_buffer waits for the read's own copy
submission.
Conflicts:
- items/press.rs: the port's cell_press takes the modifiers; it now reads upstream's pick_mods, the release's own.
- run/typed.rs and primitives/record.rs: the face record keeps the port's Name, so a decorative or labelled-by face stays one. Upstream's rule is added: an empty own text falls back to the label.
- Test imports take both sides; menu bar test comments take upstream's wording for its row naming.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`wait_between_reads` checked `DeviceHealth::fault()`, which reports an
out-of-memory error ahead of a recorded validation error. With both
recorded, it skipped the early stop, submitted empty work, and failed the
read with "Out of Memory". It now uses `polling_fault()` for the check and
for the returned error, as `poll_reads` does. An out-of-memory error alone
still waits normally, and a loss is still left to `poll_reads`.
docs/gpu-backends.md no longer says that `adapter-probe` turns on wgpu's
default native backends: the workspace sets wgpu to
`default-features = false`, and native backends come only from the
`native-*` features.
* Inspector: name generic components by their type and list a text field's value
The component name dropped the path before the generic arguments, so Select<'_, String> was
recorded as `String>`. A text node's value, which AccessKit reads, now also shows in the
inspector's facts.
* Inspector: test generic component names and text field values
* Keep the components of a replayed memoized view in the enclosing inspected region
* SwatchPair: each well's access node is named by its own label, not the pair's
* rustfmt
* Inspector: clippy tidy-ups in the replay step and its trial
* Inspector: a text field's value is journaled like the other steps, so a replayed view keeps it; the pair trial checks each name is its well's radio button
* inspect: list a text value whichever order the node's facts arrive in
A text value noted before its node's facts in the same pass was dropped, as it
was only written on facts that already existed. The open region now keeps the
noted value per component and writes it on the facts when they arrive, so the
order no longer matters; a value the node states itself still wins. The steps
journal and replay as before.
The trial drives the record's calls in each order: text value before facts,
facts before text value, facts reported again, and a node's own value.
* Inspector trial: a null-rooted id and a let-else in place of expect, for next's lints
* Inspector trial: assert the region ran instead of panicking, for next's lints
* docs: regenerate contract-api.md
* contract-api: an entry's summary is its first sentence, not its first line
The generator showed the first line of each item's doc comment, so an entry whose doc comment wrapped
mid-sentence ended on a dangling word: the press latch's `release` stopped at "an earlier", `swallows` at
"true for the", and about a quarter of the file's entries were cut off the same way.
The summary now carries the wrapped lines to the end of the first sentence, stopping at a colon that
introduces a list, so every entry reads whole. Only the clipped tails change: each completed entry keeps
its text and gains the rest of the sentence from the item's own doc comment. docs/contract-api.md is
regenerated with it.
* contract-api.md: regenerated after the merge of main (the generator's own output, not a hand merge)
* contract-api: a summary stops at its first sentence's end inside a line
`doc_summary` only stopped at the end of a line, so a doc line that held two sentences (`... release or
cancel. A press that begins while nothing is latched is not swallowed.`) carried both, and the entry was
two sentences long.
`sentence_end` now finds the boundary inside the line: a full stop, question or exclamation mark that ends
the line, or that a space and a capital letter follow, and never a run of dots (`(LRI ... PDI)`) or one of
the short forms e.g., i.e., cf., vs., etc., approx. The summary stops there; a colon that introduces a list
below still ends it too.
docs/contract-api.md is regenerated with the rebuilt binary.
* memo keys: whether a region is open; contract-api: no Self:: link targets
A memoized view's key held the props, the `fn` and what the scope around it hands down, but not whether an
inspected region was open. A view that settled outside a region kept a run that recorded no inspection steps
(`runtime::inspect::run` notes one only while a region is open), so when a region later wrapped the unchanged
view it replayed that run and the region's record showed none of its components: the inspector listed nothing
for what the region showed.
Whether a region is open now feeds the key, one byte after the show address, so a view settled outside a
region runs in the pass that shows it inside one and records the region's steps; a run made inside a region is
not replayed outside one either. `contract::inspect_region` trials both directions and the region's recorded
components, and `record`'s doc says why. Without the key byte that trial fails.
`doc_summary` also drops the target of a link that names the item's own type (`Self::zoom_x`), which rustdoc
resolves in the source and this file has no page for: the entry keeps its reference text, as the file writes
every name it cannot link. docs/contract-api.md is regenerated with the rebuilt binary: 77 lines, the 82 link
targets and nothing else, and a second run leaves it byte-identical.
Focused trials pass: ui-contract's `contract::inspect_region` (new), `memo`, `derived` and `contract::fixes`,
ui-widgets' `memo` and `runtime::inspect` (the region's components through a replay included), and
craft-menu's `keytips`.
* docs: regenerate the contract catalog on current main
- dialog host: upstream's per-opening serials (OpenedDialog, take_by_open_serial,
get_by_open_serial, typed get_by_id) carried into the port's kept-actions store.
- ParamDialog: upstream's tagged footer toggles and per-instance flips replace the
port's session flip; the port's accepting extras and their OK gating stay.
- Param: upstream's and_enabled_when_in is the port's enabled_when list (one
mechanism; RowOptions::enabled_when_also dropped).
- New Document cards: upstream's Your Recent Items zoom on the port's ColumnRule.
- CommandPalette: upstream's least_width and field look on the port's bound state.
- PreferencesWindow: upstream's Classic layout, page steps and size beside the
port's LiveCancel mode and page-only disable while nested.
- AppShell: upstream's versioned, memoized page view inside the port's PageKind
ordering (after the slots, band only when the page covers the title).
- Tests and docs: both sides' pane trials, About imports and dialog host notes kept.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cargo.toml takes main's egui pin (932a73b2) and vendor list; Cargo.lock is main's, resolved again after the combine.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>