Lawyer's summary: a compact print listing only records with lawyer-level fields #30

Closed
opened 2026-12-01 01:17:49 +00:00 by eric · 0 comments
Owner

Goal

A fourth print option, Lawyer's summary: a short list that keeps only the records with at least one lawyer-level field (see #29) and drops everything else, so a lawyer gets the accounts and account numbers and nothing extraneous. Unlike the lawyer's view (a full copy with lawyer-level values unmasked), this one is a compact extract.

Proposed behavior (defaults to confirm)

  • Which records: a record appears only if one or more of its fields is lawyer-level (secret: true, lawyer: true). Records with only plain-secret or normal fields are left out.
  • What each record shows: the record title, then only its lawyer-level fields (label and value, in clear text). Plain secrets never print.
  • What is left out: text sections, steps, checklists, walkthroughs (sequences), record notes, TBD badges, the contents list, and sections that have no matching record.
  • Layout: one compact list, not one page per section. The running header repeats on every page, as in the other prints. Records are grouped under their section title (and sub-tab heading where the section has tabs), in document order.
  • Cover note: title, owner, last update date, and a line saying this is the lawyer's summary and holds sensitive values, so keep it locked away.
  • Dialog: a fourth radio in the Print dialog, with the number of records and values it will include.

Implementation sketch

  • print.js: pure summaryGroups(doc) returning the sections, tabs, records and lawyer-level fields to print (unit-tested). It reuses the mode logic from #29; a new mode 'summary' is added to PRINT_MODES.
  • app.js: buildPrintDoc branches to a summary builder for that mode; the dialog gets the radio.
  • Tests: records with and without lawyer fields, sub-tabs, empty values ("(not set)"), plain secrets and frames never appear, empty document gives a clear "nothing to list" message.
  • Docs: README, thumbdrive README, OVERVIEW.

Open questions

  1. Should normal fields (e.g. a bank's name field) also be listed under each record, or only the lawyer-level ones? (Proposed: only lawyer-level; the record title carries the name.)
  2. Should lawyer-level walkthrough steps or image fields be listed? (Proposed: no; image fields print "[image]" would add clutter.)

Not implemented yet; awaiting agreement.

## Goal A fourth print option, **Lawyer's summary**: a short list that keeps only the records with at least one lawyer-level field (see #29) and drops everything else, so a lawyer gets the accounts and account numbers and nothing extraneous. Unlike the lawyer's view (a full copy with lawyer-level values unmasked), this one is a compact extract. ## Proposed behavior (defaults to confirm) - **Which records:** a record appears only if one or more of its fields is lawyer-level (`secret: true, lawyer: true`). Records with only plain-secret or normal fields are left out. - **What each record shows:** the record title, then only its lawyer-level fields (label and value, in clear text). Plain secrets never print. - **What is left out:** text sections, steps, checklists, walkthroughs (sequences), record notes, TBD badges, the contents list, and sections that have no matching record. - **Layout:** one compact list, not one page per section. The running header repeats on every page, as in the other prints. Records are grouped under their section title (and sub-tab heading where the section has tabs), in document order. - **Cover note:** title, owner, last update date, and a line saying this is the lawyer's summary and holds sensitive values, so keep it locked away. - **Dialog:** a fourth radio in the Print dialog, with the number of records and values it will include. ## Implementation sketch - `print.js`: pure `summaryGroups(doc)` returning the sections, tabs, records and lawyer-level fields to print (unit-tested). It reuses the mode logic from #29; a new mode `'summary'` is added to `PRINT_MODES`. - `app.js`: `buildPrintDoc` branches to a summary builder for that mode; the dialog gets the radio. - Tests: records with and without lawyer fields, sub-tabs, empty values ("(not set)"), plain secrets and frames never appear, empty document gives a clear "nothing to list" message. - Docs: README, thumbdrive README, OVERVIEW. ## Open questions 1. Should **normal** fields (e.g. a bank's name field) also be listed under each record, or only the lawyer-level ones? (Proposed: only lawyer-level; the record title carries the name.) 2. Should lawyer-level **walkthrough steps** or **image fields** be listed? (Proposed: no; image fields print "[image]" would add clutter.) Not implemented yet; awaiting agreement.
eric closed this issue 2026-12-01 01:29:09 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eric/final-wishes#30
No description provided.