-
-
Notifications
You must be signed in to change notification settings - Fork 202
DevIndex: Implement 4-Mode Data Toggle (Total, Public, Private, Commits) #9191
Copy link
Copy link
Closed
Labels
Description
We are currently using a "Commits Only" checkbox to switch between Total Contributions and Total Commits. To provide deeper insights, we want to expand this to a "Data Mode" concept with 4 mutually exclusive views:
- Total (Default): Shows Total Contributions.
- Public: Shows Public Contributions (Calculated:
Total - Private). - Private: Shows Private Contributions.
- Commits: Shows Total Commits.
Tasks:
- Model (
Contributor.mjs): AddtotalPublicContributionscalculated field. - View (
ControlsContainer.mjs): Replace "Commits Only" checkbox with a Radio Group for the 4 modes. - Grid (
GridContainer.mjs):- Replace
commitsOnlyconfig withdataMode(String enum). - Update
afterSetDataModeto switch columns (totalContributions,totalPublicContributions,totalPrivateContributions,totalCommits) and update the active sorter. - Update
activitysparkline logic to use the correct data source (Public =y - py, Private =py).
- Replace
- Toolbar (
StatusToolbar.mjs): Update summary labels based on the selected mode.
Reactions are currently unavailable