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

Closed
opened 2026-03-20 12:30:30 +01:00 by marcel · 0 comments
Owner

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/new and re-select the sender and receiver from scratch.

Desired behaviour

  • When both persons are selected, a subtle action link appears (e.g. below the summary header or at the bottom of the conversation list) reading "+ Neues Dokument in dieser Korrespondenz"
  • It navigates to /documents/new?senderId=<A>&receiverId=<B>, pre-filling the sender and receiver fields on the new-document form

Implementation notes

Frontend: The link is conditional on both senderId and receiverId being set. Use the existing "subtle action link" pattern from CODESTYLE.md / CLAUDE.md.

Backend / new-document form: The /documents/new page server load must read senderId and receiverId from url.searchParams and pass them as initialValues — similar to how the conversations page already pre-fills person names. No new endpoint needed.

## 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/new` and re-select the sender and receiver from scratch. ## Desired behaviour - When both persons are selected, a subtle action link appears (e.g. below the summary header or at the bottom of the conversation list) reading "+ Neues Dokument in dieser Korrespondenz" - It navigates to `/documents/new?senderId=<A>&receiverId=<B>`, pre-filling the sender and receiver fields on the new-document form ## Implementation notes **Frontend:** The link is conditional on both `senderId` and `receiverId` being set. Use the existing "subtle action link" pattern from `CODESTYLE.md` / `CLAUDE.md`. **Backend / new-document form:** The `/documents/new` page server load must read `senderId` and `receiverId` from `url.searchParams` and pass them as `initialValues` — similar to how the conversations page already pre-fills person names. No new endpoint needed.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: marcel/familienarchiv#33