Your work: Sync sidebar counts with user bar counts

What does this MR do and why?

Use UserCounts for Your Work > To-Do List pill

Currently we let the backend expose the to do count on the super sidebar nav item, while the User Bar uses the userCounts from JS, which is updatable via the client (e.g. synced from other tabs, when opening them, or mutated by certain actions in the UI).

By aligning the two, we can make sure that the UserBar at the top and the count in the sidebar are always aligned.

Changelog: changed

Use UserCounts for Your Work > Merge requests pill

Ensure that User Bar and Your Work nav item are aligned for the Merge request dashboard counts.

Changelog: changed

Use UserCounts for Your Work > Issues pill

Ensure that User Bar and Your Work nav item are aligned for the Issues dashboard counts.

Changelog: changed

References

Screenshots or screen recordings

Before After
Screen_Recording_2025-03-19_at_14.38.17 Screen_Recording_2025-03-19_at_14.40.00

How to set up and validate locally

  1. Open a tab with the "your work sidebar", e.g. to-do list
  2. Open a new tab and generate either a new issue, todo or MR for your user.
  3. Reload that tab
  4. If you switch back to the first tab, the counts in the top should now match the counts in the sidebar

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Lukas Eipert

Merge request reports

Loading