Skip to content

fix: group failed redactions by page (PRO-7985) - #3

Merged
jonwiggins merged 3 commits into
mainfrom
jon/pro-7985-group-unredact-findings-by-page-and-remove
Nov 20, 2026
Merged

jonwiggins merged 3 commits into
mainfrom
jon/pro-7985-group-unredact-findings-by-page-and-remove

Conversation

@jonwiggins

@jonwiggins jonwiggins commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Closes PRO-7985
Ref PRO-7938

Overview

Context A page with several failed redactions repeated in separate cards. Each preview marked only one passage.
Scope Browser analysis and results for uploaded PDFs, plus the browser-test CI runner.
Refactors Finding details share a page card and preview. Duplicate detections are removed before adjacent lines are joined.
Dependencies Includes the earlier label-only fix from PRO-7938. No package changes.
Infra PR Not needed. No infrastructure changes.

Changes

  • Show every finding on a page in one numbered preview. Keep each passage's reveal control and each width warning.
  • Count repeated detections of the same box once. Preserve separate positions and pages, and prefer annotation evidence when its drawn appearance produces the same leak.
  • Retain the earlier fix that ignores recovered text containing only redacted. Pin browser CI to Ubuntu 24.04, which the installed Playwright version supports.

Proof

  • Added four deduplication and page-boundary cases in tests/merge-findings.test.ts.
  • Added a two-page synthetic PDF and an upload test. It checks four distinct findings on page 1, one on page 2, independent text reveal, and all four preview markers.

Pictures

Desktop and 390px mobile views checked with the synthetic PDF. Screenshots are saved locally and are not attached here.

@jonwiggins
jonwiggins marked this pull request as ready for review November 20, 2026 02:01
@jonwiggins
jonwiggins merged commit 6b9c173 into main Nov 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant