Skip to content

[Discussion] Add document assembly, save/load config, and unit tests #1

@bencarver

Description

@bencarver

Proposal

I'd like to contribute the following enhancements to Signature Packet IDE:

  1. Document Assembly Mode — Match executed/signed PDFs to blank signature pages and assemble final documents with auto-matching and manual override
  2. Configuration Save/Load — Save/restore entire sessions with bundled PDFs (base64-encoded) for instant restore without re-uploading
  3. Unit Tests — Vitest integration with 13 unit tests covering the matching algorithm

Motivation

  • Assembly Mode: Completes the signature workflow (extract → assemble)
  • Save/Load: Users can pause/resume work without re-uploading documents
  • Tests: Provides confidence in the matching algorithm and prevents regressions

Technical Notes

  • Uses existing Google Gemini API for executed page analysis
  • Matching algorithm: Jaccard similarity-based scoring (50% doc, 35% party, 15% signatory)
  • All processing remains in-browser; no server-side changes needed
  • Tests use Vitest (zero additional config with Vite)

Would you be open to these additions? I have a working implementation ready in my fork and can open a PR once you've reviewed the approach.

See: https://github.com/bencarver/SignaturePacketIDE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions