mozilla / pontoon

Mozilla's Localization Platform
https://pontoon.mozilla.org
BSD 3-Clause "New" or "Revised" License
1.45k stars 524 forks source link

Allow selecting months in contribution graph #2621

Open flodolo opened 1 year ago

flodolo commented 1 year ago

By default, the activity log in the profile page shows data for the last month. If you click one day, it won't be possible to go back without reloading the page.

Technically, we could fix this when adding the year selector (selecting current year -> shows activity log for last month of that year), but maybe it would be good to be able to select the month too, as mentioned in the original PR.

GitHub, in comparison, displays one month when selecting the year, but then also provides a "Show more activity" button. Being able to select a month would make that button less useful.

mathjazz commented 1 year ago

It's possible, although the workaround is not very obvious: use the contribution type selector and select the current value again. That will always show data for the default period.

We can also add a month selector, although that's a different period. Unlike GitHub, which shows data for the last calendar month, Pontoon shows data for the last month (i.e. 30 days). I like that option better, otherwise profile page suddenly changes at the beginning of each month.

I'm also in favor of adding "Show more activity" button.

These two features should probably be tracked separately.

flodolo commented 1 year ago

Morph this one into Allow to select months in contribution graph, and open a new one for Add a "Show more activity" button?

I wonder if we should also switch to "Last 30 days" though, because "last month" is potentially ambiguous.

mathjazz commented 1 year ago

Sounds good!