🇬🇧 English
📝 In Short
Two fixes: the sidebar bell icon attempt from the previous release now actually shows up, and the bell's category filters stay clickable after you empty a category.
🐛 What's Fixed
- Filters became unclickable when you emptied a category — In the bell, if you dismissed the last item in a filtered category (e.g. "Movies"), the other category tabs stopped responding to clicks. You had to close and reopen the bell to navigate. They stay clickable now.
- Sidebar bell icon was missing — The icon registration from the previous release didn't produce a visible result. This release added a JavaScript-side injection that finds the NotifySync sidebar entry and adds the bell icon. (Note: this approach is replaced by a cleaner native fix in 5.5.11.5 → 5.5.11.6.)
🔧 Technical details for the curious
Filter pills — In updateList(), the onclick wiring for the filter pills used to live at the end of the function, after the if (filtered.length === 0) { ...; return; } early return that renders the empty state. Result: when the current filter emptied out, pills got re-rendered (their HTML was rebuilt) but never received click handlers. Moved the wiring up, right after filterBar.innerHTML = ..., before the early return.
Sidebar icon — Added installAdminSidebarIcon() in client.js, called from startMainObserver()'s debounced MutationObserver callback. Finds anchors whose textContent is "NotifySync" and whose href contains "notifysync", prepends a <span class="material-icons">notifications</span> if no Material icon child is already present. Removed in 5.5.11.6 once the native EnableInMainMenu route worked.
🇫🇷 Français
📝 En bref
Deux corrections : la tentative d'icône cloche dans la sidebar de la version précédente s'affiche enfin, et les filtres de catégories de la cloche restent cliquables après vidage d'une catégorie.
🐛 Corrections
- Les filtres devenaient inutilisables après vidage d'une catégorie — Dans la cloche, si tu supprimais le dernier item d'une catégorie filtrée (ex. "Films"), les autres onglets de catégorie ne répondaient plus aux clics. Il fallait fermer et rouvrir la cloche pour naviguer. Ils restent cliquables maintenant.
- L'icône cloche dans la sidebar manquait — L'enregistrement d'icône de la version précédente ne produisait pas de résultat visible. Cette release ajoute une injection côté JavaScript qui trouve l'entrée NotifySync de la sidebar et y ajoute l'icône cloche. (Note : cette approche est remplacée par un fix natif plus propre en 5.5.11.5 → 5.5.11.6.)
🔧 Détails techniques pour les curieux
Filtres — Dans updateList(), le wiring onclick des filter pills vivait à la fin de la fonction, après le retour anticipé if (filtered.length === 0) { ...; return; } qui rend l'état vide. Résultat : quand le filtre courant se vidait, les pills étaient re-rendues (leur HTML reconstruit) mais ne recevaient jamais leurs click handlers. Déplacé le wiring en haut, juste après filterBar.innerHTML = ..., avant le retour anticipé.
Icône sidebar — Ajout de installAdminSidebarIcon() dans client.js, appelé depuis le callback debouncé du MutationObserver de startMainObserver(). Trouve les ancres dont le textContent est "NotifySync" et dont le href contient "notifysync", insère un <span class="material-icons">notifications</span> si aucun enfant Material icon n'est déjà présent. Supprimé en 5.5.11.6 une fois que la route native EnableInMainMenu a fonctionné.