mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
Implements Contact Management UI with manual contact approval and pending contacts list. **Backend changes (meshcore-bridge/bridge.py):** - Remove forced manual_add_contacts on session init (was for testing only) - Add _load_webui_settings() to read .webui_settings.json from MC_CONFIG_DIR - Add /set_manual_add_contacts endpoint for persistent settings management - Settings now persist across container restarts via .webui_settings.json **Backend changes (app/meshcore/cli.py):** - Add get_pending_contacts() - proxy to bridge /pending_contacts - Add approve_pending_contact() - proxy to bridge /add_pending (always uses full public_key) - Add get_device_settings() - read .webui_settings.json - Add set_manual_add_contacts() - proxy to bridge /set_manual_add_contacts **API changes (app/routes/api.py):** - Add GET /api/contacts/pending - list pending contacts - Add POST /api/contacts/pending/approve - approve contact by public_key - Add GET /api/device/settings - get persistent settings - Add POST /api/device/settings - update manual_add_contacts setting **Frontend (app/routes/views.py, templates, js):** - Add /contacts/manage route rendering contacts.html - Add contacts.html template with mobile-first design - Add contacts.js with settings toggle and pending list UI - Add "Contact Management" menu item in base.html - Features: manual approval toggle, pending list, approve/copy actions, toast notifications **Documentation (README.md):** - Add Contact Management section in Usage - Add to Key Features list - Add debugging instructions **Key features:** - Manual approval toggle (persists across restarts) - Pending contacts list with name and public_key - Approve button (always sends full public_key for compatibility) - Copy full key button (clipboard API) - Auto-refresh on page load - Mobile-first responsive design - Info badge when manual approval is disabled - Toast notifications for user feedback 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>