Andreas Coroiu afbe27591b
fix(badge): [PM-24661] Improve performance of badge state calculation for large number of tabs
* refactor: rewrite the badge service to only calculate states for active tab

This also fixes an issue where the `difference` function didn't work and caused
all tabs to update for every single state update.

* fix: compilation issue

* feat: add error logging

* fix: linting

* fix: badge clearing on reload on firefox

* feat: optimize observable

* feat(wip): update all active tabs

tests are broken

* fix: existing tests

* feat: add new tests

(cherry picked from commit 1a57ad3fc5cb6ec93fc6b354367e6a0c1122e248)
2025-08-19 12:09:37 -04:00
..