Skip to content

v2.9281 — Papers: a blank nobody filled reads as a ruled line - #10776

Queued
realrobertdouglas wants to merge 1 commit into
mainfrom
claude/ruled-blanks
Queued

realrobertdouglas wants to merge 1 commit into
mainfrom
claude/ruled-blanks

Conversation

@realrobertdouglas

Copy link
Copy Markdown
Contributor

What this does

The owner was asked whether a signer should ever be shown a paper with unfilled blanks like [Company legal name]. Their words: no, make them "__________________".

Where a signer reads a paper, a name in square brackets that nobody filled is now drawn as a ruled line of 18 underscores, with the words before it kept: Company: and then the line. A filled blank is untouched. The paper's own words are never changed: the line is drawn, not written.

One kernel decides what is a blank

supabase/functions/_shared/paperRuledBlanks.ts, pure, no imports, read by the client and by the two functions that draw a PDF. A bracket is a blank when it holds a name of 2 to 60 characters that starts with a letter and is made of letters, digits, spaces and ' - / & . , #. It is not a blank when it is a tick box, a footnote, a list mark, a quote's alteration ([T]he), a mark a lawyer writes ([sic], [Reserved], [Signature page follows], [Remainder of page intentionally left blank]), or in Markdown a link, a picture or a reference. 38 tests hold the rule.

Where the rule holds (the picks)

  • The signer's page, both kinds of paper.
  • The signed PDF and the PDF of a paper that waits (paperParagraphs in _shared/personPaperPdf.ts).
  • The signed record's reader.
  • Read the paper in the send window, which also names each such blank under the paper.
  • The library's Preview, the page that prints.

Edit, View, History and the preview's Download keep the bracket and its name, so the office can tell which blank a line stands for. The email carries no paper words.

The line is 18 underscores: the owner's own string.

What the signed record holds

Nothing new. When a paper is signed with a line still ruled, the row keeps the words as written, bracket and name, and blank_values holds nothing for that blank. The signed PDF shows the line.

The three fill-in PDFs made by hand

Preview now prints such a paper with its lines, and so does the PDF of a paper that is out and not signed. The three files themselves are not replaced or filed by this PR.

Owes prod: two function deploys after the merge

The PDFs are drawn on the server. accept-contract and person-paper-pdf are the two functions that bundle personPaperPdf.ts. Until both are deployed a new PDF still prints the brackets, while the pages already show lines. A signed PDF kept before the deploy stays as it was drawn. No migration.

Not armed. It is armed once green and once the thread that holds the push slot knows of the two deploys.

A change to watch

An older paper that meant a short name in square brackets as its own words now reads as a line where a signer reads it. One test's placeholder was such a name and was changed.

Tests

paperRuledBlanks.test.ts (38), personPaperPdf.test.ts, readThePaper.test.ts, ContractAccept.blanks.render.test.tsx, PersonContractSignedRecordModal.reader.render.test.tsx, ContractSendWindow.readThePaper.render.test.tsx, ContractBookPreview.render.test.tsx. Not looked at on the live site: the signer's page needs a real link.

🤖 Generated with Claude Code

The owner was asked whether a signer should ever be shown a paper with
unfilled blanks like [Company legal name]. Their words: no, make them
"__________________".

- One kernel decides what is a blank nobody fills, a name in square brackets
  a person typed, and draws it as a line of eighteen underscores with the
  words before it kept (supabase/functions/_shared/paperRuledBlanks.ts, read
  by the client and the functions). The braces kernel is untouched.
- The rule holds on the signer's page, in both PDFs (paperParagraphs), on the
  signed record, in Read the paper of the send window, which names each blank
  under the paper, and on the Contract library's Preview, the page that
  prints.
- The library's Edit, View and History and the preview's Download keep the
  name in brackets.
- A tick box, a footnote, a list mark, [sic], [Reserved], [Signature page
  follows], a bracket that touches a letter and a Markdown link stay as typed.
- The line is drawn, never written: a signed row keeps its words as written
  and nothing for the blank in blank_values.

Owes two function deploys after the merge: accept-contract and
person-paper-pdf. No migration.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@realrobertdouglas
realrobertdouglas added this pull request to the merge queue Dec 3, 2026
Any commits made after this event will not be merged.

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