pdfcraft/crates/ui-egui/tests
Raj Patel d0975b974d
M5: quick-bar colour recolours the selected comment (#1191) (#1255)
* Fix selected comment quick-bar color (#1191)

* M5: skip quick-bar recolour when commenting is forbidden (#1191)

The quick-bar colour swatch now checks allows_annotation() before
restyling the selected comment, matching the canvas and context-menu
gating. Without it, a restricted document showed a "Change comment
properties failed" toast on every swatch pick; the engine already
rejected the edit. Adds a regression test on an encrypted, print-only
fixture that fails without the guard.

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

* M5: quick-bar colour also recolours a selected arrow (#1191)

Arrows are saved as Line annotations with an ending, so tool_for()
reports them as the Line tool and the Arrow tool's swatch never matched
the selected arrow. comments::made_by() treats the Line and Arrow tools
as the same kind. Adds a regression test that fails without the fix.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-12 01:32:40 -04:00
..
data M6.1/M6.2: form filling: new fonts (L2) and forms (L3) crates; field tree with inheritance, widgets, options; set_value with validation and regenerated appearances (auto-size, comb, multiline, password, quadding, /MK, combo, list selection), check/radio states (own AP when missing), reset to /DV; engine SetFieldValue/ResetForm with fill-forms permission; UI in-place editor (Enter/click-away commit, Escape, Tab with select-all), check/radio toggle, choice popup, Clear form; tools form_fields/form_fill/form_reset. Perf: named destinations indexed once (190 MB manual opens in 1.8 s instead of 172 s); comment and form edits refresh view data from the object graph instead of a full re-inspection (6x faster per edit on large files; equivalence-tested). annot uses the shared fonts helpers. Docs, parity, roadmap. 2026-10-01 22:37:35 -04:00
ui_group M10.5: Reconcile hosted CI and keep the Arabic golden in both font builds 2026-10-12 00:23:30 +02:00
accessibility.rs Accessibility: compare checker results after each recheck (#1250) 2026-10-12 01:32:26 -04:00
actions.rs M13: preserve desktop Action Wizard batch results (#886) 2026-10-10 15:31:06 -04:00
bookmarks.rs M7: preserve overlapping text when dragging paragraphs (#594) (#1052) 2026-10-11 18:25:25 -04:00
buttons.rs tests: pin the interface language so the suite passes outside English (#502) 2026-10-09 09:14:19 -04:00
camera.rs i18n: let the layers below hand their sentences over, so they can be translated (#478) 2026-10-11 15:45:51 -04:00
combine_grid.rs Combine files: move and remove single pages before combining (3 of 3, closes #611) (#790) 2026-10-10 17:01:08 -04:00
commands.rs M10: Presentation (.pptx) export (#1137) (#1162) 2026-10-11 21:55:25 -04:00
comments.rs M5: quick-bar colour recolours the selected comment (#1191) (#1255) 2026-10-12 01:32:40 -04:00
compare.rs M10: Presentation (.pptx) export (#1137) (#1162) 2026-10-11 21:55:25 -04:00
content.rs M7: support shaped Thai text in Add Text and UI fallback fonts (#767) 2026-10-11 18:07:36 -04:00
control.rs Add editable page-range selection to Organize Pages (#1092) (#1174) 2026-10-12 01:25:38 -04:00
create.rs M10: Create separate PDFs from multiple files (#1183) 2026-10-11 21:20:13 -04:00
date_format.rs Content edits on heavy documents: narrow refresh, cached appearances, per-page invalidation (#1122) 2026-10-11 17:28:30 -04:00
dialog_chrome.rs Give dialogs roomier text fields and padding (#487) 2026-10-11 15:38:14 -04:00
document_links.rs M7: report unsupported link actions without a JavaScript claim (#1242) 2026-10-12 01:31:50 -04:00
editing.rs Add editable page-range selection to Organize Pages (#1092) (#1174) 2026-10-12 01:25:38 -04:00
export.rs tests: pin the interface language so the suite passes outside English (#502) 2026-10-09 09:14:19 -04:00
fill_sign.rs M5.7: Fill & Sign Scan tab for photographed signatures (#1110) (#1111) 2026-10-11 21:16:34 -04:00
folders.rs Issue #425: long file names and paths on Home end in "…" before the row's details (#443) 2026-10-09 09:15:00 -04:00
fonts.rs Edit text: support Devanagari system font fallback and Indic pre-base matra reordering (#1033) 2026-10-11 21:03:40 -04:00
forms.rs Forms: keep tiles and render unbaked field values during page re-render (#636) 2026-10-11 15:15:48 -04:00
javascript.rs Content edits on heavy documents: narrow refresh, cached appearances, per-page invalidation (#1122) 2026-10-11 17:28:30 -04:00
object_selection.rs M7: select and move mixed PDF objects together (#844) (#907) 2026-10-10 17:38:34 -04:00
ocr.rs Issue #1028: OCR can read pictures on pages that already have text (#1184) 2026-10-11 18:45:36 -04:00
perf.rs tests: pin the interface language so the suite passes outside English (#502) 2026-10-09 09:14:19 -04:00
pickers.rs Extract pages: a File name field names the extracted files (#737) (#751) 2026-10-10 08:20:08 -04:00
prepare.rs M6: keep field Properties color palettes independent (#1054) 2026-10-11 13:12:04 -04:00
print.rs M10: Windows two-sided binds on the chosen edge; note drivers that ignore Two-sided (#1154) 2026-10-11 18:41:02 -04:00
recovery.rs Issue #813: a cancelled recovery password no longer attaches to the next unlocked document (#858) 2026-10-10 15:38:59 -04:00
reload.rs Issue #431: reload a document when its file changes on disk (#459) 2026-10-11 14:31:32 -04:00
signing.rs Give dialogs roomier text fields and padding (#487) 2026-10-11 15:38:14 -04:00
stamps.rs tests: pin the interface language in the harnesses added since #502 (#593) 2026-10-09 18:37:24 -04:00
theme_button.rs UI: theme picker with light and dark theme cards (#1082) 2026-10-11 13:12:47 -04:00
trust_signer.rs Security: fix 10 verified audit findings in redaction, signature validation, and untrusted-input handling (#1099) 2026-10-11 15:09:39 -04:00
ui.rs M14: choose Tools panel side in Preferences (#1130) 2026-10-11 18:54:06 -04:00
view.rs Polish chrome hover, press, and selection (#457) 2026-10-11 21:01:36 -04:00
viewer.rs Fix viewport jitter when annotating with search active (#1254) (#1283) 2026-10-12 01:29:39 -04:00