Skip to content

✨[Feat] Add document scanner core - #141

Open
maruson08 wants to merge 4 commits into
v2.4from
feat/v2.4-scanner-core
Open

maruson08 wants to merge 4 commits into
v2.4from
feat/v2.4-scanner-core

Conversation

@maruson08

@maruson08 maruson08 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Document Scanner now opens at /scan/document/ in the v2.4 development build. Users can add JPEG/PNG/WebP images with the picker, drop or paste, reorder pages with keyboard-accessible controls, remove/clear pages, and apply Original, Grayscale or deterministic Document appearance locally.

The first commit reconciles AGENTS.md, branch enforcement, CI/security triggers and Dependabot targets for v2.4. The integration branch was created from production main at 2eb8e86. The second commit adds scanner core using the existing signature validation and EXIF-aware decoder, 1,000px bounded previews, a 20-page/200-MiB queue, cancellation/stale-result guards and resource cleanup. Shared OCR and PDF libraries remain unchanged.

Validation:

  • Typecheck, compile, scanner unit tests and production build passed locally.
  • Existing regressions passed through release artifact checks. The local HTTP security gate fails because installed AdGuard rewrites CSP; expected policies were not relaxed.
  • Chromium completed 30 functional viewport/locale cases across six languages, actual EXIF JPEG, PNG/WebP, preprocessing, keyboard ordering/focus, drop/paste, two 12-megapixel images, stale clear and URL cleanup. Local privacy checks correctly reject AdGuard-injected requests/CSP mutations. The same strict scanner browser gate is included in hosted CI.
  • Physical mobile, Firefox and Edge were not tested locally.

Exact changed files, implementation details, QA limitations and Sprint 24B follow-ups are recorded in docs/sprint-24a-scanner-core.md. PDF export, scanner OCR and searchable-PDF adapter work are outside 24A.

Review only. Do not merge automatically. No production deployment or release tag.

Hosted verification at final head f33acad: all checks passed. CI run 44093166469 passed the full suite, production build/provenance, real OCR, clean artifact HTTP/CSP/OCR/download verification, responsive/accessibility checks, scanner orientation/input/lifecycle/privacy browser smoke and isolated release artifact inspection. Security monitoring passed CodeQL and exact lockfile/vendor advisory checks. This clean hosted result resolves the local AdGuard verification limitation without relaxing any gate.

Administrator follow-ups: configure equivalent remote protection rules on the newly created v2.4 branch; Dependabot target migration activates only when that configuration reaches the default branch through a separately reviewed policy change.

This branch has not been deployed

No deployments
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