mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-05-01 11:02:32 +02:00
Replace hours-based cleanup with multi-criteria contact filtering system: - Add name filter (partial match, case-insensitive) - Add contact type selection (CLI, REP, ROOM, SENS) - Add date field selector (last_advert vs lastmod) - Add days of inactivity filter (0 = ignore) - Add path length filter (> X, 0 = ignore) - Implement preview modal before deletion - Support all contact types (CLI, REP, ROOM, SENS) Backend changes: - Add POST /api/contacts/preview-cleanup endpoint - Refactor POST /api/contacts/cleanup with new filter logic - Implement _filter_contacts_by_criteria helper function - Use last_advert (reliable) instead of lastmod (unreliable) Frontend changes: - Move cleanup section below Existing Contacts - Add collapsible Advanced Filters section - Replace handleCleanupInactive with handleCleanupPreview/Confirm - Add confirmation modal with contact list preview - Display deletion results (success/failure counts) Documentation updates: - Update API endpoints in CLAUDE.md - Update README.md with new cleanup instructions - Remove deprecated MC_INACTIVE_HOURS from docs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>