Lawyer's view: a third field level and print mode between masked and complete #29

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

Goal

A third print view, lawyer's view, between "withhold secrets" and "include secrets". Some fields (e.g. a bank account number) are things a lawyer needs but a casual reader of the overview should not see, while others (e.g. the current balance) stay private even from the lawyer.

Example, a bank account record:

Field Level Masked print Lawyer print Complete print
Name normal shown shown shown
Account number lawyer masked shown shown
Current amount secret masked masked shown

Design

  • Three levels per field: normal, lawyer, secret. A lawyer-level field is still sensitive: masked on screen until Show, and masked in the default print.
  • Applies to text fields, image fields and walkthrough steps (frames). Label in the UI: "Lawyer".
  • Model: keep secret: boolean. A lawyer-level field or frame is secret: true, lawyer: true. Older builds still treat it as a secret (fails closed). validate() accepts lawyer only as a boolean, and only together with secret: true.
  • Print: displayValue(field, mode) and frameView(frame, mode) take a mode 'masked' | 'lawyer' | 'complete' instead of the includeSecrets boolean. The print dialog gets a third radio, with counts of what each view hides. The page note says which view the copy is.
  • Edit UI: the per-field and per-step "secret" checkbox becomes a three-way choice (Normal / Lawyer / Secret).
  • Related code that reads secret: countSecrets, clearSecrets (the ?reset=1 eraser still erases lawyer-level values, since they are secret), usesView credential references, and the on-screen Show/Hide.
  • Tests: print.test.js (all three modes, empty values, images, frames), model.test.js (validation, older-shape files), ops.test.js (clearSecrets and counts).

Decided: frames and image fields included; "Lawyer" is the label.

## Goal A third print view, **lawyer's view**, between "withhold secrets" and "include secrets". Some fields (e.g. a bank account number) are things a lawyer needs but a casual reader of the overview should not see, while others (e.g. the current balance) stay private even from the lawyer. Example, a bank account record: | Field | Level | Masked print | Lawyer print | Complete print | |---|---|---|---|---| | Name | normal | shown | shown | shown | | Account number | lawyer | masked | **shown** | shown | | Current amount | secret | masked | masked | shown | ## Design - **Three levels per field:** normal, lawyer, secret. A lawyer-level field is still sensitive: masked on screen until Show, and masked in the default print. - **Applies to** text fields, image fields and walkthrough steps (frames). Label in the UI: "Lawyer". - **Model:** keep `secret: boolean`. A lawyer-level field or frame is `secret: true, lawyer: true`. Older builds still treat it as a secret (fails closed). `validate()` accepts `lawyer` only as a boolean, and only together with `secret: true`. - **Print:** `displayValue(field, mode)` and `frameView(frame, mode)` take a mode `'masked' | 'lawyer' | 'complete'` instead of the `includeSecrets` boolean. The print dialog gets a third radio, with counts of what each view hides. The page note says which view the copy is. - **Edit UI:** the per-field and per-step "secret" checkbox becomes a three-way choice (Normal / Lawyer / Secret). - **Related code that reads `secret`:** `countSecrets`, `clearSecrets` (the `?reset=1` eraser still erases lawyer-level values, since they are secret), `usesView` credential references, and the on-screen Show/Hide. - **Tests:** `print.test.js` (all three modes, empty values, images, frames), `model.test.js` (validation, older-shape files), `ops.test.js` (`clearSecrets` and counts). Decided: frames and image fields included; "Lawyer" is the label.
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#29
No description provided.