refactor: extract sort/filter/count row from CorrespondenzPersonBar #188
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?
Context
CorrespondenzPersonBaris at 183 lines after the Briefwechsel redesign (PR #186). It now handles person inputs, swap button, sort button, filter toggle, document count, and correspondent suggestions dropdown.It's still one visual region (the search card's top section), but if more controls are added later it should be split.
Proposed change
Extract the sort/filter/count row (Row 2) into a dedicated
CorrespondenzToolbar.sveltecomponent. The person bar keeps Row 1 (person inputs + swap). The toolbar receivessortDir,showAdvanced,documentCount, and the toggle callbacks as props.When to do this
Only when the next feature adds controls to this area. Not needed now — tracking to avoid forgetting.
Origin
Flagged by @felixbrandt during PR #186 review.