mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-16 01:35:36 -04:00
e7466175ef
Typing a filter keyword now surfaces the matching filter row in the autocomplete (each with its existing dropdown icon). Picking one pins a filter pill and drives the global filter state. Keyword catalog (_LIB_FILTER_OPTIONS): - has-attachments ← 'attachment', 'attachments', 'has attachment', 'attach' - unread ← 'unread', 'new', 'unseen' - favorites ← 'favorite', 'starred', 'star', 'flagged' - undone ← 'undone', 'pending', 'todo' - reminders ← 'reminder', 'reminders' - unanswered ← 'unanswered', 'unreplied', 'no reply' - pending_30d ← 'pending 30d', 'pending', 'recent pending' - stale_30d ← 'stale', 'old', 'stale 30d' - tag:urgent ← 'urgent', 'critical' - tag:reply-soon ← 'reply soon', 'reply', 'follow up' - tag:spam ← 'spam', 'junk' - tag:newsletter ← 'newsletter', 'newsletters', 'subscriptions' - tag:marketing ← 'marketing', 'promo', 'promotional' Filter pill behaviour: - Only one filter pill is active at a time — adding a new one replaces any existing filter pill. - _applyFilterPillSideEffect drives the existing #email-lib-filter select (or the #email-attach-btn toggle for has-attachments). The server-side list refetch follows for free via the existing 'change' handler. - Removing the filter pill clears the side effect. Pill render gains the filter icon as a leading glyph; the suggestion row renders icon + label in the accent colour so it visually reads as a filter, not a contact.