feat: restore sender/receiver grouping on /documents when sorting by SENDER or RECEIVER #283
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
The old home-page document search grouped results by the active sort key:
/documents)sender.displayNamereceiver.displayName(a document with multiple receivers appears in every receiver's group)When the search was extracted to
/documentsin #281, only year-grouping was kept.Goal
Restore dynamic grouping in
DocumentList.svelteso the year-card style is reused for sender and receiver groups.Acceptance Criteria
documents/+page.sveltepasses the activesortvalue down toDocumentListFiles
frontend/src/routes/DocumentList.svelte— addsortprop, replaceyearGroupswith branchinggroupsderivedfrontend/src/routes/documents/+page.svelte— passsorttoDocumentListfrontend/messages/de.json,en.json,es.json— add fallback label keysImplemented ✅
Sender/receiver grouping restored on the
/documentspage.What was done:
DocumentListnow accepts asortprop and dispatches to one of three grouping functions (groupByYear,groupBySender,groupByReceiver) via$derived.by()sort=SENDER: documents group undersender.displayNamecards; falls back to "Unbekannter Absender" when sender is absentsort=RECEIVER: documents appear under each receiver's card (a document with N receivers appears N times); falls back to "Unbekannter Empfänger" for documents with no receiverssort=DATE(or anything else): original year grouping preserved unchangedsort={sort}passed fromdocuments/+page.svelteto<DocumentList>Commits:
06ba11afeat(i18n): add unknown sender/receiver fallback labels for document groupingca3d809feat(documents): restore sender/receiver grouping in document listBranch:
feat/issue-283-sender-receiver-grouping