mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
- Add query parameter 'types' to GET /api/contacts/pending endpoint - Save user's type filter selection to localStorage (pendingContactsTypeFilter) - Restore filter on page reload (Pending Contacts page) - Contact Management badge shows count based on saved filter - Default filter: CLI only (type=1) Frontend changes: - Add localStorage functions (save/load/set checkboxes) - Modify loadPendingContacts() to use types from checkboxes - Modify loadContactCounts() to use filter from localStorage - Checkbox changes trigger save to localStorage + API reload Backend changes: - Add 'types' query parameter to GET /api/contacts/pending - Filter pending contacts by type before returning - Validate types parameter (must be 1-4) This allows users to customize which contact types they want to see in pending contacts list, and the selection persists across sessions. The same filter is used consistently across all pages (Pending Contacts page and Contact Management page). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>