feat(dm): searchable contact selector, contact info modal, device-only contacts

Redesign DM chat contact selector:
- Replace <select> dropdown with searchable text input + filtered dropdown
- Show only device contacts (from /api/contacts/detailed), not all cached
- Sort contacts alphabetically, conversations by recency
- Type badge (CLI/REP/ROOM/SENS) shown in dropdown items
- Keyboard support: Enter selects first match, Escape closes

Add Contact Info modal (replaces Retry toggle in header):
- Shows contact name, type, public key, last advert, path/route, GPS
- Auto Retry toggle moved into modal footer
- Designed for future extensibility (manual path setting etc.)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MarekWo
2026-03-17 08:27:01 +01:00
parent 21b1c0510f
commit 8ce5fa85ba
3 changed files with 398 additions and 82 deletions
+1 -1
View File
@@ -322,7 +322,7 @@ main {
/* Navbar: Channel selector on mobile */
#channelSelector,
#dmConversationSelector {
#dmContactSearchInput {
min-width: 100px !important;
font-size: 0.9rem;
}