Self-hosted AI workspace.
Python
Email library bulk Done: animate-out + drop when filter='undone'
pewdiepie-archdaemon299625b559dc
diff --git a/static/js/emailLibrary.js b/static/js/emailLibrary.jsindex 8fda6b898..b77e932a2 100644--- a/static/js/emailLibrary.js+++ b/static/js/emailLibrary.js@@ -5046,6 +5046,14 @@ async function _bulkAction(action) {await _animateEmailCardRemoval(uids);const removed = new Set(uids.map(uid => String(uid)));state._libEmails = state._libEmails.filter(e => !removed.has(String(e.uid)));+ } else if (action === 'done' && state._libFilter === 'undone') {+ // The undone filter is a "show only not-done" view — after marking+ // selected emails done, they no longer match. Animate them out and+ // drop them from the local list so the view reflects the filter+ // instead of leaving freshly-done cards sitting there.+ await _animateEmailCardRemoval(uids);+ const removed = new Set(uids.map(uid => String(uid)));+ state._libEmails = state._libEmails.filter(e => !removed.has(String(e.uid)));}} finally {if (busySpinner) busySpinner.destroy();