PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
M12: the Visual filter only hides shading, since visual differences are never listed: say so
Marco Arnulfo9e0937c3f740
diff --git a/crates/ui-egui/src/compare_ui.rs b/crates/ui-egui/src/compare_ui.rsindex c3f37e502..60e787ffd 100644--- a/crates/ui-egui/src/compare_ui.rs+++ b/crates/ui-egui/src/compare_ui.rs@@ -24,8 +24,8 @@ pub struct CompareState {pub leader: usize,/// Each half's scroll offset last frame, to tell which one moved.pub prev_scroll: [egui::Vec2; 2],- /// Show: whether the list and the shading include the text changes and the visual- /// differences (Acrobat's Filter).+ /// Show: whether the text changes are in the list and the shading, and whether the visual+ /// differences (counted, never listed) are shaded (Acrobat's Filter).pub show_text: bool,pub show_visual: bool,}diff --git a/crates/ui-egui/tests/compare.rs b/crates/ui-egui/tests/compare.rsindex 27fbb853f..a6fd03596 100644--- a/crates/ui-egui/tests/compare.rs+++ b/crates/ui-egui/tests/compare.rs@@ -73,8 +73,9 @@ fn text_and_visual_versions() -> (Vec<u8>, Vec<u8>) {(v1, s.save_bytes(id).unwrap().to_vec())}-/// The Compare panel's Show: Text / Visual filter hides that kind of change from the list and-/// from the shading on both halves, and brings it back.+/// The Compare panel's Show: Text / Visual filter, on both halves: Text takes the text changes+/// out of the list and the shading, Visual takes the visual differences (counted, never listed)+/// out of the shading, and each brings them back.#[test]fn compare_filters_hide_text_or_visual_changes() {let (v1, v2) = text_and_visual_versions();diff --git a/docs/gaps.md b/docs/gaps.mdindex 4b8637f27..933a3515c 100644--- a/docs/gaps.md+++ b/docs/gaps.md@@ -353,7 +353,8 @@ update the numbers.### 21. Compare: filters by Acrobat's finer kinds of change, page ranges, scanned documents- **Done:** the synchronised side-by-side view; the Compare panel's Show: Text / Visual filter- hides either kind from the list and the shading.+ (Text hides the text changes from the list and the shading, Visual hides the visual differences+ from the shading; they are counted, not listed).- **Missing:** telling images, annotations, formatting and background/header-footer changes apart(all of them are Visual today), scrolling the two halves by matching content rather than byoffset, page ranges, scanned documents.diff --git a/parity/acrobat-features.toml b/parity/acrobat-features.tomlindex 186b907ec..d025854b0 100644--- a/parity/acrobat-features.toml+++ b/parity/acrobat-features.toml@@ -9193,7 +9193,7 @@ status = "partial"commands = ["doc.compare"]tools = []evidence = ["crates/ui-egui/tests/compare.rs::compare_filters_hide_text_or_visual_changes"]-notes = "The Compare panel's Show: Text / Visual checkboxes (both on after Compare files) hide that kind of change from the list and from the shading on both halves of a side-by-side view, and bring it back; hiding the text does not uncover the visual differences a text change explains. The counts, Mark as comments and Report… still cover every change. Still missing against Acrobat's Filter menu: telling images, annotations, formatting and background/header-footer changes apart (the comparison finds text changes and pixel differences only, so those all fall under Visual), and Acrobat's defaults with annotations, formatting and background off. Headless: doc_compare returns every change with its kind, so an agent filters the result itself."+notes = "The Compare panel's Show: Text / Visual checkboxes (both on after Compare files) hide that kind of change on both halves of a side-by-side view and bring it back: Text takes the text changes out of the list and the shading, Visual takes the visual differences out of the shading (the list holds only text changes; visual differences are counted, not listed); hiding the text does not uncover the visual differences a text change explains. The counts, Mark as comments and Report… still cover every change. Still missing against Acrobat's Filter menu: telling images, annotations, formatting and background/header-footer changes apart (the comparison finds text changes and pixel differences only, so those all fall under Visual), and Acrobat's defaults with annotations, formatting and background off. Headless: doc_compare returns every change with its kind, so an agent filters the result itself."[[feature]]id = "misc.compare-page-ranges"