Closed Bug 1398415 Opened 7 years ago Closed 3 years ago

Show numbers in tabs for the locale home screen

Categories

(Webtools Graveyard :: Pontoon, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED MOVED

People

(Reporter: etrapani, Unassigned)

Details

If I visit the main page for my locale https://pontoon.mozilla.org/eo/ I see Contributors, Bugs and Info without a number.

When I click on the Bugs tab for example, I see the number of bugs and it stays there when I go to the other tabs.

Would it be possible to show the numbers in the tabs when the page is first loaded? Then, after the click the tabs could be populated. For Bugs particularly it would be nice to see the number right away.

The behaviour seems to be already implemented: if I go directly to https://pontoon.mozilla.org/eo/bugs/ then Projects tab (and only that one) shows the number of projects, and loads them when I click on it.
We currently only show the number for the Projects and the Info tab, because these numbers are cheap (we can get them fast). Similarly, we show the number for Teams and Resources in the Project and Localization Dashboards.

Getting numbers for Bugs and Contributors is a little bit more expensive, because the former requires an API call to the external service (BugZilla), and the latter is very slow. That said, I believe we should still give this a try after bug 1357361 is fixed, because having these numbers should save users a bunch of clicks. We should even consider preloading content for all tabs in background once the requested tab is loaded.

Note, behaviour should be the same on Team, Project and Localization Dashboards, e.g.:
https://pontoon.mozilla.org/fr/
https://pontoon.mozilla.org/projects/firefox/
https://pontoon.mozilla.org/fr/firefox/
Priority: -- → P3
*This bug has been moved to GitHub.*

*Please check it out on https://github.com/mozilla/pontoon/issues.*
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → MOVED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.