As CodeRabbit noted, text.insert does not depend on focus, so the test
passed without focus_page_after_pass. Assert the canvas is focused and
type through the harness instead.
The port to craft::ui made Home a regular button, though its comment
(and the original change) has it reading as a link beside Blank
document and Browse…. Use the ghost variant, as other quiet buttons do.
* chore(deps): repin craft-libs to d73e274a, egui to 07c20531, winit to 0dfcec0e
Moves every craft-libs rev (including craft-nightly and the craft-libs
patches) from 7097741460 to craft-libs main d73e274a, and the egui and
winit forks to the revs craft-libs builds with at that commit. Cargo.lock
holds one egui and one winit; only the affected git packages changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx
* fix(ui-egui): adapt to craft-libs d73e274a API
RibbonLook::body takes a RibbonBody (Band keeps the ruled fill), the
GalleryMore::Body closure takes a BodyCx, ToggleButtonOutput is read
through .edit.response, and DrawEnv has a mark field.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx
* test(ui-egui): follow craft-libs name and list changes
Tests that look controls up by access name or by list contents follow
intended craft-libs changes. No assertion is removed or weakened.
- Split arrows are named "<label> options" and a stacked label's line
break reads as a space (craft-libs 487b29c55): Bullets arrow, Switch
Windows arrow; the View ribbon's Web Layout and Print Layout buttons now
share a name with the status bar toggles, so the toggle is picked by state.
- The table size picker names squares "<columns>x<rows> Table" (was
"<rows> × <columns>").
- A dropdown list ends on its last whole row and scrolls the rest
(craft-libs f2b9450d8): the font size list no longer holds 28 unscrolled,
so the tests use 24, which is shown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx
* fix(wordcraft): adapt the ui.json import to craft-libs LegacyFile
LegacyFile takes the old files as `paths` and its parse gets one slot per
path (bytes, absent or a read error). The ui.json import passes its one
path and a small wrapper over legacy_ui_json; behaviour is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx
* fix(ui-egui): pass grid rows to TileGrid max_rows after the craft-libs repin
craft-libs a84275d0d/f6ae74bf4 make a grid's max_rows count visual rows, not
items, so the tile_rows_cap workaround (rows*columns items) now asked for up to
128 rows and the Symbols map grew to ~3600 px. Drop the workaround and pass the
row counts (Symbols 8, Insert Diagram 3) directly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx
* fix(wordcraft-web): adapt the web host to craft-libs d73e274a
The web app still used the old craft-libs API, so it no longer compiled
(CodeRabbit on #8250; macOS Print / lint):
- LegacyFile now takes `paths` and a slot-based parse. The slot adapter
moves from the desktop app into ui-egui as `legacy_ui_json_slots`, and
both hosts use it.
- web-host's `Message::Open` name is now `Option<String>`; a missing name
becomes `Document.docx` as a blank one did.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCWNarDG3QfXK2YMzdx
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* #7818: Review › Delete: Delete All Comments in Document and Delete All Resolved Comments
Review › Comments › Delete becomes a split button whose menu has Delete,
Delete All Comments in Document (the existing review.deleteComment
{"all": true}) and Delete All Resolved Comments, a new
review.deleteComment {"resolved": true} that deletes each resolved
comment with its replies and keeps the open ones, in one undo step.
thread_of becomes threads_of, taking several roots and building the
reply map once, so deleting many resolved threads stays one pass.
* #7818: regenerate the parity checklist after merging main
main added the headless count; with this PR's two commands it is 512.
---------
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
* fix(validate): preserve established TIFF graph defects across traversal bounds (#8186)
* test(validate): probe adjacent TIFF cycle, malformed, and bound shapes (#8186)
* chore(validate): satisfy clippy::obfuscated_if_else in TIFF tests (#8186)
* fix(validate): preserve established TIFF edges across budget stops and charge examined directories (#8186)
* fix(validate): defer TIFF walk continuation past initial part assessments (#8186)
* fix(validate): disclose every affected TIFF and budget-stopped part in canonical order (#8186)
* test(validate): add discriminating tests for #8186 round-1 findings and box PausedWalk
* fix(validate): install cached TIFF chain edges as soon as chain role is established (#8186)
* fix(validate): confine multi-part decode-stop disclosure to TIFF parts (#8186)
* test(validate): add discriminating tests for #8186 round-2 findings
* chore(validate): satisfy clippy in TIFF chain-role helper and tests (#8186)
* test(validate): match all three TIFF admission outcomes in graph oracle (#8186)
Match Admission::Admitted, Admission::MalformedOrCyclic, and Admission::Limited explicitly in media_magic_tiff_admission_is_a_function_of_the_directory_graph instead of collapsing Limited and MalformedOrCyclic via matches!, and key the sampled report-level check to the same three-way outcome.
---------
Co-authored-by: Muse <muse@Mac-mini.local>
* fix(doc): collect text boxes inside nested shape groups (#8068)
Walk InlineObject::Group trees iteratively in member order in both
InlineObject::text_boxes and InlineObject::text_box_slots so text boxes
nested inside groups of groups are collected, kept alive by
Document::prune_text_boxes, and repointed consistently during fragment
adoption and comparison.
* test(doc,engine): cover nested-group text box collection, pruning and Session survival (#8068)
Add wordcraft-doc unit tests for nested-group text_boxes and text_box_slots
collection across depths 1..40, prune_text_boxes preservation with chain links
and unreachable boxes, and cyclic nested-group story termination. Add an
end-to-end wordcraft-engine Session test verifying nested-group text boxes
survive mutating commands and copy/paste adoption.
* test(doc): flatten text_box_slots iterator to satisfy clippy (#8068)