- Shipped
- November 14, 2026 at 8:24 PM UTC
- Author
- Kamo
- Commit
- 1332676
The market page's Agreements tab was a raw-HTML text box saved org-wide; its variables never resolved, every edit 405'd, and nothing e-signed. It is replaced by the shared AgreementsPage: each agreement is a document in the market's own collection (MARKET_AGREEMENT, ordinal 21) with an e-sign template built in the fillable-PDF designer HR already uses. - AgreementsPage (app/components/agreements): responsive card grid of the market's agreements — Used For + one default per use, who signs (roles), what Kamo fills vs what the signer fills, warnings (no signature field, a role with nothing to sign, a signer without a role); drop a PDF/Word file to add one (the designer opens on it); Send by hand for non-mortgage lines (one row per role, optional customer account); Archive with confirm; read-only naming the rights; first-timer steps + Help & Tips. Mortgage shows the auto-send switch state as a linked row. Phase F mounts it at **************** - Designer: Fill From picker (writes the design field's `merge` key, groups by line of business), a "Kamo: <field>" chip on bound fields, and a Who Signs role picker on signer cards (co-borrowers can be "only when there is one"); signer cards lay out in a responsive grid; pickers name slots by role. - Loan Disclosures: Lender Agreements set type; the envelope dialog sends one of the market's agreements with Kamo eSign (defaults first, not-ready ones disabled with the reason) or records a send made elsewhere, and shows the server's refusal sentence inline (no e-sign consent, a borrower with no email, no agreement picked, a role the loan cannot fill). - BORROWER_LENDER_AGREEMENTS automation switch (off by default). - Removed: MarketAgreementTemplatesTab, the orphan **************** the agreement template and fake send/accept client calls; a subscription's agreement history renders sanitized. - document merge fields mirror (DOCUMENT_MERGE_FIELDS, kept apart from script/stream fields); @kamo/esign-core 0.1.6 + @kamo/esign-ui 0.1.4 (lockfile edited by hand: version, resolved, integrity).
