Commit Graph
3638 Commits
Author SHA1 Message Date
Lucas Batista Vargas c11504affa Ribbon: align Table Design › Table Style Options checkboxes in two columns (#7691) (#7695)
* Ribbon: align Table Style Options checkboxes in two columns (#7691)

* Ribbon: widen Table Style Options column gutter while keeping tight rows
2026-11-24 17:03:14 +00:00
Lucas Batista Vargas 604ad56f0a fix(keytips): show legacy menu key hint under slim screen bar without ribbon (#7731) (#7628) 2026-11-24 14:26:12 +00:00
Lucas Batista Vargas 852330e928 fix(chrome): return canvas focus after picking an Undo History row (#7726) (#7632) 2026-11-24 14:25:57 +00:00
Lucas Batista Vargas b5fb29b539 test(dialogs): restore RTL Page Setup oversized margin test (#7722) (#7637)
Closes #7722. Part of #7317.
2026-11-24 14:25:41 +00:00
Lucas Batista Vargas 012d0dd875 test(control_server): adapt per-connection token auth test post-#7101 (#7720) (#7631) 2026-11-24 14:25:28 +00:00
Lucas Batista Vargas 352042d41f Canvas: size Web Layout from PageView's side gutter instead of rail width (#7687) (#7701) 2026-11-24 11:50:56 +00:00
Lucas Batista Vargas 4f6cc31af6 test(dialogs): verify Customize Keyboard empty shortcuts list shows None (#7317) (#7644) 2026-11-24 11:50:50 +00:00
Lucas Batista Vargas 58e52bc962 test(dialogs): restore the_title_bar_close_box_is_the_whole_corner test (#7317) (#7638) 2026-11-24 11:50:45 +00:00
Lucas Batista Vargas bf2be3cad8 fix(dialogs): adapt chart types tile grid to craft-libs GridZoom API (#7697) (#7698) 2026-11-24 01:50:21 +00:00
aiongg 805fb543fa Merge pull request #7670 from aiongg/repin-next-1123
deps: bump craft-libs pin to next b436ae9925 (shared FontPicker fixes)
2026-11-23 19:42:14 -05:00
Lucas Batista Vargas 73de5b5569 Ribbon: use large 3:2 thumbnails in Table Design › Table Styles gallery (#7317) (#7689)
Table Design › Table Styles (crates/ui-egui/src/ribbon/galleries.rs)
omitted .thumb(ThumbSize::Large) and .aspect(...), unlike sibling Styles
and Style Sets galleries. Gallery therefore fell back to ThumbSize::Medium
with a square aspect ratio, shrinking the 112×74 pt (3:2) table previews
into cramped strips with empty space above and below.

Configure .thumb(ThumbSize::Large).aspect(ThumbAspect::new(3, 2)) to match
table_style_image's 3:2 landscape ratio and v0.18.1's ribbon tile height,
and add a focused regression test in crates/ui-egui/src/ribbon/tests.rs.
2026-11-24 00:37:16 +00:00
Lucas Batista Vargas 5e83839736 Mini toolbar: suppress text labels on Text Highlight Color and Font Color SplitButtons (#7482) (#7511)
- Run mini toolbar members with GroupLevel::Compact and ControlPlace::Ribbon env overrides so SplitButtons suppress button face text labels while retaining tooltips and accessibility, and ComboBox controls size by content.
- Update Grow Font and Shrink Font controls to 24 pt Buttons matching Row 1 control height.
- Re-enable and update mini toolbar regression tests verifying toolbar width constraint (< 350 pt), height alignment, and hover previews.
2026-11-24 00:05:57 +00:00
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
aiongg c939e644aa Control keyboard test: a modeless dialog's first Escape reverts the field, the second closes it; table resize button events carry the held modifiers 2026-11-23 23:24:26 +00:00
aiongg c406211ce9 Selection bar test: button events carry the held modifiers 2026-11-23 22:28:38 +00:00
aiongg 720d6f4586 Test the CJK composition through the served face's glyphs 2026-11-23 21:59:16 +00:00
aiongg 224b65101c web host: Files::write takes the write intent 2026-11-23 21:18:18 +00:00
aiongg ada0a0247d Review fixes for the next API adaptation 2026-11-23 21:10:21 +00:00
aiongg 027dc1f197 Adapt to craft-libs next b436ae9925 API changes 2026-11-23 21:02:46 +00:00
aiongg 57a9ff0dda deps: bump craft-libs pin to next b436ae9925 (shared FontPicker fixes) 2026-11-23 20:51:58 +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