Files
wordcraft/apps
Martin BallandClaude Opus 5.5 27efb34a95 Repin craft-libs to d73e274a (egui 07c20531, winit 0dfcec0e) (#8250)
* 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>
2026-12-01 14:50:18 +00:00
..