As a user I want a "New document in this correspondence" link in the conversation view so I can add a document without losing my filter context #33
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Background
When a user is browsing a conversation and wants to add a new document between the same two people, they currently have to navigate to
/documents/newand re-select the sender and receiver from scratch.Desired behaviour
/documents/new?senderId=<A>&receiverId=<B>, pre-filling the sender and receiver fields on the new-document formImplementation notes
Frontend: The link is conditional on both
senderIdandreceiverIdbeing set. Use the existing "subtle action link" pattern fromCODESTYLE.md/CLAUDE.md.Backend / new-document form: The
/documents/newpage server load must readsenderIdandreceiverIdfromurl.searchParamsand pass them asinitialValues— similar to how the conversations page already pre-fills person names. No new endpoint needed.