-
-
Notifications
You must be signed in to change notification settings - Fork 202
Feat: Implement 'Commits Only' Toggle for DevRank Grid #9064
Copy link
Copy link
Closed
Labels
Description
We need to add a "Commits Only" toggle to the DevRank controls. This involves several updates:
-
Data Model (
Contributor.mjs):- Store a secondary array for commits (
cmapping,commitsfield). - Update
total_contributionsand year fields (y2020, etc.) to be dynamic based on the active mode (Total vs. Commits).
- Store a secondary array for commits (
-
UI (
ControlsContainer.mjs):- Add a
CheckBoxfor "Commits Only". - Implement a handler to switch the grid's data context.
- Add a
-
Grid (
GridContainer.mjs):- Ensure columns binding to
yXXXXfields update correctly when the underlying data logic changes. - Trigger a re-sort if the active sort column is affected (e.g.
total_contributions).
- Ensure columns binding to
-
Backend (
Updater.mjs):- Already updated to fetch
totalCommitContributions. We need to ensure this data is now persisted in theusers.jsonschema (as a separate array or structure).
- Already updated to fetch
This ticket focuses on the frontend implementation (1-3) and assumes data is available or will be mocked until the backend fully populates it.
Reactions are currently unavailable