Copy from Spouse: scaffold a partner client from their spouse #53
Loading…
Reference in a new issue
No description provided.
Delete branch "copy-from-spouse"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
copy_from_spouse_lilyTauri command: promotes a Spouse contact in the source folder to the client of a new.lily, demotes the original client to a Spouse contact, retargets bindings, copies questionnaire data + required documents, and recreates each of source's documents from template with the swapped variable values.GPOA - Jack Doe.docx→GPOA - Jane Doe.docx); collisions get(2),(3), ... appended;required_documents.document_filenameis updated to track renames.CopyFromSpouseDialogand an empty-state CTA onClientHub(only when the workspace is fresh — no questionnaire, contacts, docs, or required docs). The dialog walks pick → review → run, auto-detects a single Spouse contact (offers a picker for the multi-spouse case), and notes that manual.docxedits in the source don't carry over since documents are rebuilt from template.Test plan
make typecheckmake lintcargo test(79 → 87, 19 inlily_file::tests)Has Spouse/Client Spouse Nameresolve correctly in the new file.