Repository navigation
v2.9281 — Papers: a blank nobody filled reads as a ruled line - #10776
Queued
realrobertdouglas wants to merge 1 commit into
Queued
realrobertdouglas wants to merge 1 commit into
realrobertdouglas wants to merge 1 commit into
Conversation
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
enabled auto-merge
December 3, 2026 07:48
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)
paperParagraphsin_shared/personPaperPdf.ts).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_valuesholds 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-contractandperson-paper-pdfare the two functions that bundlepersonPaperPdf.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