feat(conversations): filter person typeahead to correspondents of selected person #42
Reference in New Issue
Block a user
Delete Branch "feat/29-correspondent-typeahead"
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 #29
Summary
GET /api/persons/{id}/correspondents?q=endpoint returns the persons who share at least one document with the given person, ordered by number of shared documents descending, limited to 10PersonTypeaheadgains an optionalrestrictToCorrespondentsOfprop — when set, it fetches correspondents immediately on focus (no typing required) and uses the new endpoint for filtering while typing/conversationspass each other's selected ID asrestrictToCorrespondentsOf, so selecting Person A immediately restricts Person B's suggestions (and vice versa)Test plan
./mvnw test— 76 backend tests pass (3 newPersonServiceTestcases)npm run test— 111 frontend tests pass (4 newPersonTypeaheadcorrespondent-mode cases)npm run lint && npm run check— no errors/conversations, click the second field → dropdown opens immediately with their top correspondents