feat(conversations): swap button, year dividers, summary bar, new-doc link #43
Reference in New Issue
Block a user
Delete Branch "feat/conversation-page-improvements"
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?
Closes #30, #31, #32, #33
Summary
senderId+receiverIdin the new-document form; hidden for read-only userssenderId/receiverIdfrom URL search params and pre-selects them in the formTest plan
npm run test— 129 frontend tests passnpm run lint && npm run check— no errors/conversations, select two persons → summary bar, year dividers, swap button, and new-doc link all appear correctlyThe swap button was conditionally removed from the DOM with {#if}, which caused the receiver input to collapse into the narrow auto column of the grid-cols-[1fr_auto_1fr] layout on desktop when no persons were selected. The button is now always rendered. On desktop it becomes invisible (visibility:hidden) when no persons are selected, preserving the middle column width so both 1fr columns stay equal. On mobile it remains hidden (display:none) via the hidden class so no empty gap appears between the stacked inputs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>