Commit Graph
3619 Commits
Author SHA1 Message Date
Lucas Batista Vargas cf161d30a3 Dialogs: compact tile sizing for Insert › Chart type selector (#7456) (#7466)
In Insert › Chart and Change Chart Type dialogs (dialogs_chart.rs),
the chart types TileGrid configured a 3-column gallery without thumbnail
sizing, causing tiles to expand to the default card size (128 pt compact /
160 pt comfortable, resulting in ~132×104 pt cells). This caused the
3-column grid to balloon over ~420 pt in width, crowding the modal dialog.

Configure .thumb_size(ThumbSize::Large).zoom(1.6).aspect(19.0 / 15.0) on
the chart types TileGrid, producing ~76.8×60.6 pt preview pictures in
~85×87 pt cells within a ~280 pt grid, matching pre-refactor parity
(~112×92 pt cells with 76×60 pt preview pictures). Add a regression test
verifying cell and grid bounds.
2026-11-24 00:05:52 +00:00
Lucas Batista Vargas e4633540c0 Ribbon: bind table.selectTable command to Table Layout › Select menu button (#7457) (#7461)
In crates/ui-egui/src/ribbon/table.rs, the Table Layout › Table › Select menu
button previously passed None as its command binding, leaving the menu button
face permanently enabled even when the selection was outside a table.

Bind the menu button to Some("table.selectTable") (which is gated by in_table),
so that the Select button accurately disables when outside a table, matching
pre-port ribbon behavior. Add regression test assertions in ribbon/tests.rs.
2026-11-24 00:05:47 +00:00
Lucas Batista Vargas 73d3c71346 Ribbon: compact tile sizing for Text Effects › Transform menu (#7449) (#7453)
In Text Effects › Transform (wordart_menus.rs), the warp effects TileGrid
did not configure thumbnail sizing, causing tiles to expand to the default
card size (128 pt compact / 160 pt comfortable, resulting in ~132×93 pt
cells). With 4 columns, this expanded the dropdown menu to ~554 pt in width.

Set .thumb_size(ThumbSize::Small) on the TileGrid, rendering compact preview
tiles (~46×32 pt) and keeping the 4-column menu around ~200 pt wide with
crisp previews, matching pre-refactor parity. Add a regression test verifying
tile and grid dimensions.
2026-11-24 00:05:42 +00:00
Lucas Batista Vargas 4700018be7 deps: bump craft-libs pin to next for the Styles gallery well and PageView spacing (#7371) (#7379)
* deps: bump craft-libs pin to next to activate merged File rail icons (#2569) and Styles gallery well (#7371)

Bump craft-libs pin to e953d47a378776dea207899b10baf969fc8cbe53 to activate
upstream fixes for File rail icons on Brand/Scrim surfaces (craft-libs#2569)
and Home › Styles gallery sunken well surface in Dark Mode (craft-libs#2986).
Update DOCX settings fixtures to provide external mail merge relationship targets
matching craft-docx source preservation (craft-libs#2349) and assert source rel ID resolution.

Tracks #7149 Item 4 and C3-7 in EPIC #7317. Closes #7371.

* deps: keep the DOCX test edits out of the pin bump

The settings merge fixture changes and the zoom trial do not belong to a
craft-libs rev move. The mail-merge fixtures already landed on main in
1094d3c3 and cc9778eb, and both craft-docx fixes are in the current pin.
The remaining coverage moves to its own DOCX test pull request.
2026-11-23 20:49:29 +00:00
Dylan M. Taylor 700ce2f861 revert: restore scheduled release.yml dry-run on main (#7666) 2026-11-23 14:45:53 -05:00
Dylan M. Taylor 6088bf6f30 ci(release): publish scheduled nightly prereleases (#7663) 2026-11-23 13:17:47 -05:00
Martin BallandClaude Opus 5.5 7fd0136bc8 Missing Fonts: one compact framed row per font (#7283) (#7578)
* Missing Fonts: one compact row per font (#7283)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* Missing Fonts: frame each download group (#7283)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* Missing Fonts: cut a long unbroken font name at the end so Download stays in its card (#7283)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7283: the long-name test holds the name and button inside the dialog, not just the window

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 17:06:04 +00:00
Dylan M. Taylor f94728dea0 ci(release): forward ARTCRAFT_SERVICES_DISPATCH_TOKEN secret (#7651) 2026-11-23 09:34:31 -05:00
Martin BallandClaude Opus 5.5 6837508ec9 i18n audit: ignore clock data and URLs, and never call GitHub (#7463) (#7487)
* #7463: i18n audit ignores clock data and URLs, and never calls GitHub

The audit compared the Date and Time preview with the clock at the moment of the
check, so a second ticking over between drawing and checking failed it. It now
accepts any preview from any second since the audit began, and any single-word
http(s) link. Check for Updates in the audit's apps answers from a stub, so the
GitHub rate limit's error text can't appear. A test pins that wording and
sentences with links are still reported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7463: i18n audit asserts the update check ran through the stub

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7463: wait for the update-check worker thread in the audit test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7463: wait for the stubbed update check by wall-clock time, not a frame count

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7463: the audit's clock catch-up survives a backward step and is bounded after a forward jump

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:48:51 +00:00
Martin BallandClaude Opus 5.5 262d036420 Mini toolbar: anchor at the selection's start in right-to-left paragraphs (#7464) (#7488)
* #7464: Mini toolbar anchors at the right edge in right-to-left paragraphs

The bar sat at anchor.min.x + inset, the end of a selection that starts in an
RTL paragraph. Mirror it to anchor.max.x - inset when the paragraph where the
selection starts is RTL. Adds an RTL test and a multi-line LTR test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7464: Anchor the mini toolbar at the whole line's edge in mixed-direction RTL lines

visible_anchor kept only the first emitted run of the topmost line; runs come out left to right, so an RTL line with several runs anchored at the leftmost run's right edge. Union the runs on that line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #7464: Union line runs for the mini toolbar anchor in RTL only

Vertical text stacks whole lines at one y-range, so the union moved the left-to-right anchor off the first line. Left to right keeps the first rectangle again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:48:46 +00:00
Martin BallandClaude Opus 5.5 eb7d54c59d Window title: strip NUL from every title source (#3634) (#7545)
* Window title: strip NUL from every title source (#3634)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* Window title: test every OS-bound window title for NUL (#3634)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #3634: collect title commands from every frame of the NUL title test, the first three too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:48:41 +00:00
batistalucasv c369c3a20b Mini toolbar: anchor floating TaskBar to selection start rather than bounding center (#7447) (#7452) 2026-11-22 18:52:36 +00:00
batistalucasv 0ce25a8d6d Dialogs: compact tile sizing for Insert › SmartArt layouts picker (#7446) (#7451)
In Insert › SmartArt (dialogs_smart_art.rs), the layouts picker TileGrid
did not configure thumbnail sizing, causing tiles to expand to the default
card size (128 pt compact / 160 pt comfortable, resulting in ~136×154 pt
cells). This caused three rows to take ~482 pt in height, overflowing the
dialog's 304 pt viewport budget and pushing detail/footer controls out
of view.

Set .thumb_size(ThumbSize::Large).zoom(1.4) on the layouts TileGrid,
producing 67.2 pt thumbnails in 75.2×93.2 pt cells that cap at 299.6 pt
for 3 rows, matching pre-refactor parity (~96×96 pt cells within
PICKER_HEIGHT = 304 pt). Add a regression test verifying cell and grid
dimensions.
2026-11-22 18:52:26 +00:00
batistalucasv 3d2d9a3d9b Backstage: adopt portrait template cards and full frames in Home and New (#7372) (#7380)
Configure StartScreen in File › Home with the active region's portrait page
aspect (17:22 Letter or 70:99 A4), a fixed card zoom factor of 1.0 (~150 pt
card width without filling the row), and white paper behind page pictures.
Update File › New template grid to use the region's page aspect and render
cards with Cover fit and white paper. Remove thumbnails from File › Open's
RecentList to restore production plain list rows without letterbox bars.

Tracks #7149 items 2 and 3.
2026-11-22 18:52:16 +00:00
batistalucasv e34e841b8f Title bar: provide dedicated single-ink Discord icon for title-bar accent pill (#7445) (#7448)
Follow-up to #7311 and PR #7315.

In crates/ui-egui/icons/discord.svg, restore class="accent" (with #1E6FD9
fill fallback) so the Help › Community Discord ribbon button retains its
distinct brand accent coloration.

Add a dedicated single-ink discordPill.svg icon without class="accent"
(using pure currentColor fill) registered in WORDCRAFT_ICONS_TABLE as
IconId::new("discordPill"), and reference it in the title bar's compact
and full pill button variants (crates/ui-egui/src/chrome/title_bar.rs).
This ensures optimal on_strong contrast against the filled accent.strong
background in both light and dark themes.

Add an asset attribution entry in ATTRIBUTION.md and a regression test in
crates/ui-egui/src/chrome/tests.rs verifying that the title-bar Discord button
paints in text.on_strong while the Help ribbon button renders in accent.solid.
2026-11-22 18:52:06 +00:00
batistalucasv 9409bc7763 Ribbon: compact tile sizing for Decorative Text / WordArt Styles menu (#7374) (#7376)
In crates/ui-egui/src/ribbon/galleries.rs (pub(crate) fn wordart), the
Decorative Text / WordArt Styles TileGrid called .content_cells() without an
explicit thumbnail sizing constraint. Because TileGrid defaults picture_side
to tokens.size.thumb.card and .content_cells() ignores thumb_size/zoom, each
WordArt tile expanded to ~132×119 pt.

Replace .content_cells() with .thumb_size(ThumbSize::Small).zoom(2.0)
so each WordArt style tile renders at compact dimensions (~40×36.4 pt with
ThumbAspect::new(10, 9)), matching pre-refactor ribbon dropdown parity. Add
a regression test verifying compact tile bounds.
2026-11-22 18:49:44 +00:00
batistalucasvandMartin Ball d7085aabde Ribbon: bind command IDs for Table Styles, Borders, Delete, and AutoFit menus (#7324) (#7328)
* Ribbon: compact tile sizing for Home › Bullets library dropdown (#7323)

In the Home › Bullets dropdown popup (bullets_menu), the Bullet Library
grid tiles were rendered with .content_cells() without an explicit
thumbnail sizing constraint, causing each bullet tile to expand to default
card dimensions (~132×132 pt).

Replace .content_cells() with .thumb_size(ThumbSize::Small) so the
Bullet Library renders compact square bullet previews (~22×22 pt), matching
pre-refactor ribbon dropdown parity. Add a regression test verifying the
compact tile dimensions.

* Ribbon: bind command IDs for Table Styles, Borders, Delete, and AutoFit menus (#7324)

In crates/ui-egui/src/ribbon/table.rs, bind command IDs for four table
ribbon menu buttons (Styles -> table.style, Borders -> table.borders,
Delete -> table.deleteTable, AutoFit -> table.autofit) instead of None.

In crates/ui-egui/src/ribbon/common.rs, update menu_button to apply the
bound command's hint/tooltip when the command is disabled.

This ensures that menu button availability, disabled states, and disabled
tooltips accurately reflect engine command state and document protection rules.

---------

Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>
2026-11-22 17:40:08 +00:00
batistalucasvandMartin Ball 9cfe513477 Ribbon: compact tile sizing for Home › Bullets library dropdown (#7323) (#7327)
In the Home › Bullets dropdown popup (bullets_menu), the Bullet Library
grid tiles were rendered with .content_cells() without an explicit
thumbnail sizing constraint, causing each bullet tile to expand to default
card dimensions (~132×132 pt).

Replace .content_cells() with .thumb_size(ThumbSize::Small) so the
Bullet Library renders compact square bullet previews (~22×22 pt), matching
pre-refactor ribbon dropdown parity. Add a regression test verifying the
compact tile dimensions.

Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>
2026-11-22 16:49:00 +00:00
batistalucasv f1decbad01 Mini toolbar: stack formatting controls into two rows inside floating TaskBar (#7375) (#7378) 2026-11-22 15:38:58 +00:00
batistalucasv 139f3a2c7e Backstage: restore white page card and 44 pt icon for File › New personal templates (#7373) (#7377) 2026-11-22 15:38:48 +00:00
batistalucasv a5d5ee8a29 Dialogs: render Multilevel List preview with opaque paper background in Dark Mode (#7325) (#7333) 2026-11-22 15:38:40 +00:00
batistalucasv 08fe7bbb70 Dialogs: compact tile sizing for Insert › Symbol map and recently used grids (#7326) (#7330) 2026-11-22 15:38:31 +00:00
batistalucasv 9f1f2cfb4f Status bar: adjust view mode toggles spacing and zoom slider thumb proportions (#7319) (#7329)
- Group status bar controls using outer Gap::Section spacing between Focus, view mode buttons, and zoom controls.
- Group view mode buttons (Read Mode, Print Layout, Web Layout) in an inner row with Gap::Item spacing.
- Adjust Zoom slider size with ControlSize::Md to match the 14pt icon proportions of adjacent zoom icon buttons.
- Add regression test asserting view mode toggle button spacing/grouping and slider thumb size.
2026-11-22 15:38:22 +00:00
aiongg dda2b45e3c Merge pull request #7179 from aiongg/office-set
Rulers: use the productivity component set
2026-11-22 10:29:31 -05:00
batistalucasv b8627a2373 Ribbon: disable unimplemented stub commands in the command board (#7310) (#7314) 2026-11-22 14:13:55 +00:00
aiongg 993d39c723 Merge remote-tracking branch 'upstream/main' into office-set
# Conflicts:
#	crates/ui-egui/src/language_packs.rs
2026-11-22 07:00:15 +00:00
aiongg 33d874c1f5 Merge pull request #7337 from aiongg/harness-input-first
Tests: run the app window as an eframe app (fixes the intermittent Windows perf failure)
2026-11-22 01:59:47 -05:00
aiongg 85370b265f Add a language test: the reason row may sit partly below the list's visible edge 2026-11-22 05:56:03 +00:00
aiongg edd33f9db5 Add a language: the licence is the row's wrapped text, so an error notice has the row's width
ListRow::below lays its components out in one line. With the licence text
and the error notice both there, the licence took the row's width and the
notice was squeezed to a few pixels; in CI it dropped out of the tree. The
licence goes into the row's lines, and the notice (or the progress bar) is
alone below. The trial checks the reason is at least as wide as Install
and inside the list.
2026-11-22 05:25:43 +00:00
aiongg f005c58134 Perf test: scroll a range the table outruns on every platform's fonts 2026-11-22 04:58:35 +00:00
aiongg 8fb8a5b789 Tests: run the app window as an eframe app, so every pass has the app's input
The app-window harnesses built a ui closure that made the app's input inside a
pass and handed it to the runtime when the next pass began, so each pass ran
on the previous pass's input and the build pass had none. The page picture
loader fixes its job queue from the host it first sees, so in tests it took
the default thread queue instead of the app's host jobs, and the big-table
scrolling test read the resident picture count before those threads finished:
it failed intermittently on loaded runners (Windows).

The harnesses now build with kittest's `build_eframe` over a test-only
`eframe::App` for `WordApp` whose `raw_input_hook` calls `embed::before_input`,
as the desktop driver does. `driver_logic`, `HandOver` and its pending input
are gone.

The scrolling test gives the app a host with `ManualJobs`, runs the queued
renders after each scroll step and checks that the renders use the host's
jobs. Its table and scroll steps are smaller; the relations are unchanged.

Key chords fire their command in the runtime's key stage, which the app reads
before the next pass, as on the desktop: the chord rows step twice.

ui-egui declares `craft`'s `ui-testing` for its own tests, so they build
without the workspace's feature union.
2026-11-22 04:44:26 +00:00
aiongg 616b43bb74 Add a language: the licence is the row's wrapped text, so an error notice has the row's width
ListRow::below lays its components out in one line. With the licence text
and the error notice both there, the licence took the row's width and the
notice was squeezed to a few pixels; in CI it dropped out of the tree. The
licence goes into the row's lines, and the notice (or the progress bar) is
alone below. The trial checks the reason is at least as wide as Install
and inside the list.
2026-11-22 03:17:16 +00:00
aiongg fbade3d8c2 Pin craft-libs next 750a9bdd57 (craft-libs#2905: content-sized shell slots grow to their content, so ribbon groups fit above their labels) 2026-11-22 02:19:33 +00:00
batistalucasv 678f9473d8 Title bar: restore accent pill styling on Discord button (#7311) (#7315) 2026-11-22 01:14:01 +00:00
batistalucasv c3d854b644 Ribbon: keep Home Font and Paragraph buttons icon-only (#7308) (#7313) 2026-11-22 01:13:45 +00:00
batistalucasv 8151605909 Styles gallery tiles keep opaque dimmed paper in Dark Mode (#7309) (#7312) 2026-11-22 01:13:37 +00:00
e6bc8fd884 CI: faster Print gate (Windows and macOS only, clippy on its own leg, stripped test binaries) (#7145)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-21 22:34:10 +00:00
aiongg ec483a4fb0 Pin craft-libs next 13353a0fd3 (craft-libs#2778: Go To, reveals in the scroll owner, the ribbon's first frame) 2026-11-21 18:49:45 +00:00
8b73226375 Newspaper columns keep a paragraph's last lines together, as Word does (#6828)
* Layout: balanced columns keep a continued paragraph's last lines together from Word 2013's layout

When the columns of a section's last page are balanced before a continuous
break, Word (compatibility mode 15) does not leave one line of a paragraph
alone in a column: the last two or three lines of a paragraph that began on the
page before, and a two- or three-line paragraph that begins the page, stay in
the first column that can hold them. settled_end only guarded a paragraph's
start, and skipped even that at the top of a column, so the balancing tries
split such lines one per column and the section came out a line short.

In mode 15, while balancing, widow/orphan control also applies at the top of a
column, a one-line fragment of a continued paragraph with more after it moves
on whole, and lines it moved go to the next column instead of overflowing.
Mode 14 and unbalanced flow are unchanged. Part of #6821 fix, measured in Word
with synthetic documents (see layout::tests::balanced_tail).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Layout: balanced columns also keep kept paragraphs whole, and the lines are pinned beside notes and floats (#6821)

Measured in Word for Windows (synthetic documents, exact 14 pt lines, two and
three columns, compatibility mode 15): a paragraph with keep lines together, or
keep with next and the paragraph after it, stays whole in the first balanced
column; the tails and short paragraphs behave as before beside a footnote and a
square-wrapped picture; a section that starts and ends on one page, and plain
page flow with a footnote, widow control on and off, already matched.

keep_together now also applies at the top of a column while balancing in mode 15.
The move-on after widow/orphan control is taken only when that control, not a row
beside a floating object, moved the lines back (review of the first commit).
Tests added for notes, floats, a mid-page section, keep lines/next, unbalanced
columns and mode 14.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Layout: balanced columns fall back to the old layout when the strict rules cannot fit, and keep paragraphs ask again at a column top (#6821)

Second review: pass(full) can now fail (a page whose columns are a couple of
lines high), so balance_columns lays the page out once more without the strict
rules of Word 2013's layout (PageBuilder::relaxed, kept across the snapshot
restore) instead of leaving a spilled pass. A paragraph moved to a column top
by the lines before it asks keep lines / keep with next again there, and keeps
going on to a column that holds it. Tests: the columns' left edges come from the
first page, a page too short for the rules keeps every line, docs reworded.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Layout tests: classify columns by the declared column edges

The balanced-tail test helper took column edges from observed caret positions, so an empty middle column could be mistaken for the last one. The edges now come from the section geometry and keep every declared column.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Layout: release floats when balancing moves their anchors (#6821)

Use the same overflow decision for line emission and for retaining late floats. Cover the strict widow control case and qualify the balancing evidence.

---------

Co-authored-by: vangel76 <271991477+vangel76@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>
2026-11-21 17:00:25 +00:00
e15a3f9861 A header with a logo and title in an older-layout document no longer pushes the page body down, as in Word (#6809)
* Layout: a header at compatibility mode 14 or lower keeps its text beside its own floats

In Word, a header in a document of Word 2010's layout or older does not move its
text below or beside the header's own floating objects. A top and bottom object
only makes the header taller when it starts above the end of the text. From mode
15 the text goes below the object, which WordCraft already did in every mode.

Part of #6805. Not built or run yet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Layout: header floats at mode 14: measured wraps only, tests read the header, distances

Only top and bottom and square objects stop wrapping the header's text at
compatibility mode 14 and lower (Tight and Through were not measured). The
distance below a top and bottom object counts, as in Word. The tests read the
header's own items, add the distance, space-after and multi-paragraph cases, and
the measured numbers are in the test file's header. The layout_box change moves
into three small helpers.

Part of #6805.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Layout: header floats at mode 11 measured in Word, test and notes say so

The legacy header path applies below compatibility mode 15, so mode 11 (.doc files)
takes it too. Measured in Word on synthetic .doc files: mode 11 keeps the header text
beside its own top and bottom object like modes 12 and 14. Add a test for it and drop
"mode 11 not measured" from the test header, ROADMAP and layout-parity notes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* docs: narrow header float coverage

Refs #6805

* docs: specify header contour compatibility

Refs #6805

---------

Co-authored-by: vangel76 <271991477+vangel76@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>
2026-11-21 16:37:17 +00:00
05fe5c0598 Layout: a row of hyphens wraps at any hyphen, as in Word (#6856)
Word breaks a line between two hyphens in a row, so a ruled line made of
hyphens after a gap first fills the line and continues on the next. UAX #14
(LB21) keeps the hyphens together, so the whole row moved to the next line
and the paragraph got one line more than in Word. Add the break after U+002D
when another U+002D follows, next to the existing breaks before a digit and
before a slash and a letter. Non-breaking hyphens and minus signs stay
unbreakable.

Co-authored-by: vangel76 <271991477+vangel76@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Martin Ball <98639962+benandez@users.noreply.github.com>
Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>
2026-11-21 16:14:39 +00:00
4db39e40eb Layout: a paragraph of only a page break moves when it doesn't fit (#3198)
* Layout: a paragraph of only a page break moves when it doesn't fit

* Apply cargo fmt

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* docs: name the deferred double-spacing case in the break-only paragraph entry

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Dominik Strebel <dominik.strebel@gmail.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Martin Ball <98639962+benandez@users.noreply.github.com>
Co-authored-by: vangel76 <271991477+vangel76@users.noreply.github.com>
Co-authored-by: Martin Ball <martin.ball@ucscaregroup.co.uk>
2026-11-21 15:52:13 +00:00
f44b2e4165 A table row split across pages no longer runs off the bottom of the page (#6827)
* Tables: split the paragraph that starts a cell's part of a page where its lines fall

A row split across pages whose cell continued with a paragraph of two or three
lines, of which only the first (or two) fit, kept nothing on the page: the
orphan/widow rule moved the paragraph on whole, but it already started the page.
The row was then placed whole and ran off the bottom. Word splits such a paragraph
where the lines fall (a lone first line stays; three lines with room for two split
two and one; a continuation's lone line stays). A paragraph below other content of
its cell, and a row starting below other content of a page, keep the rule.

Part of #6823 (phase 1: not built or run yet).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Tables: a can't split row taller than a page splits at the page's end; more Word-measured cases

A can't split row (not an exact one) taller than a page now moves to a new page when it starts
below text and splits where the page ends, as Word does, instead of running off the page. The
tests now cover nested tables, a repeated header row, text lines, rows with several paragraphs and
the exact configurations measured in Word. The earlier note that Word keeps two and one below
other content was a misreading of a run without compatibility mode 15 and is removed.

Part of #6823 (phase 1: not built or run yet).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Tables: review fixes for the split-row work

The new test module defines its own lay helper; only text in the flow decides which paragraph
starts a cell's part of a page, so a floating picture above it no longer keeps the old orphan
rule; a can't split row only splits when it is taller than the room; a stale test comment is
updated; tests for a floating picture and a row that fits a page.

Part of #6823.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Tables: a test for a floating picture above the first paragraph; rustfmt

Floats are placed with the first piece of their paragraph, so the test puts the picture on the
table's first page. Without the in-flow-only rule it fails.

Part of #6823.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* 6823: Document split-row limits

* 6823: Clarify widow control in split rows

---------

Co-authored-by: vangel76 <271991477+vangel76@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Martin Ball <98639962+benandez@users.noreply.github.com>
2026-11-21 15:32:16 +00:00
45f49e9990 No empty page before the next section when a section's last paragraph has Keep with next (#6835)
* Layout: Keep with next on a section's last paragraph no longer adds an empty page

A paragraph that closes a section whose next section starts on a new page (next page, odd or
even) has nothing on its page to keep with. Keep with next still added the next section's first
line to the room it needed, so a closing paragraph that fitted at the bottom of a full page was
moved to the next page, leaving a page holding only it. Word ignores Keep with next there. The
chain lookahead stops at the closing paragraph too. Before a continuous section the old
behaviour stays (not measured in Word).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Layout: exact-geometry tests for keep with next at a section end (#6834)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Layout: format, and say odd/even breaks are by analogy (#6834)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: vangel76 <271991477+vangel76@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Martin Ball <98639962+benandez@users.noreply.github.com>
2026-11-21 15:30:13 +00:00
Martin BallandClaude Opus 5.5 8a047c333b mcp: --connect=… gets the --connect refusal, not unknown option (#7186)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 10:55:17 +00:00
70ecef86df #7124: mcp refuses to start without both automation roots, and refuses --connect (#7157)
* #7124: mcp refuses to start without both automation roots, and refuses --connect

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* #7124: control protocol says --connect is refused; test folder comment matches

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* #7124: refuse --connect without a value; test folders removed by Drop guards

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* #7124: scratch folders retry only a name that exists

Scratch::new and Folders::new retried every create_dir failure, so a
missing or read-only temp folder looped forever instead of failing the
test (CodeRabbit). Retry only AlreadyExists; any other error panics with
the path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* #7124: mcp's headless session is built by a function the unit tests reach

SonarCloud's new-code coverage was 57%: the session set-up after the
root checks ran only in the subprocess integration tests, which coverage
does not see. headless_mcp builds the confined session and applies
--author; mcp_headless_session_takes_the_author_flag covers it without
confining the test process.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-21 10:08:42 +00:00
Martin BallandClaude Opus 5.5 60ac6f5e6d Rotation preview test: compare only the preview's texture across moves (#7175)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 10:08:38 +00:00
aiongg 1094d3c35e DOCX settings merge trials: the mail merge source has its relationship part
craft-docx carries a kept w:mailMerge's external source relationship and refuses a missing one (storytold/craft-libs#2349). The fixture's rId9 now has its mailMergeSource part in word/_rels/settings.xml.rels, and the trial checks that mail merge and its source survive a save.
2026-11-21 03:34:46 +00:00
aiongg cc9778ebe1 DOCX passthrough trial: settings without a dangling mail merge source
craft-docx rebinds a kept w:mailMerge's r:id to its external source relationship and refuses a missing one (storytold/craft-libs#2349). The fixture's rId9 had no relationship part; the trial checks the privacy flags, so the element goes.
2026-11-21 02:55:00 +00:00
aiongg 442d1c3f53 craft-libs next: move the pin past the ruler tab selector fix 2026-11-21 02:27:55 +00:00