refactor: PersonTypeahead — replace compact/large boolean props with size enum #187
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
The
PersonTypeaheadcomponent currently uses two boolean props (compactandlarge) to control input sizing. This results in a nested ternary for the class string that's hard to read and extend:Proposed change
Replace
compactandlargewith a singlesizeprop:Use a lookup map for the class strings:
Update all call sites (Briefwechsel person bar, hero, document search advanced filters, person detail pages).
Origin
Flagged by @felixbrandt during PR #186 review — cosmetic cleanup, not blocking.