Skip to content

Feat: Implement 'Commits Only' Toggle for DevRank Grid #9064

@tobiu

Description

@tobiu

We need to add a "Commits Only" toggle to the DevRank controls. This involves several updates:

  1. Data Model (Contributor.mjs):

    • Store a secondary array for commits (c mapping, commits field).
    • Update total_contributions and year fields (y2020, etc.) to be dynamic based on the active mode (Total vs. Commits).
  2. UI (ControlsContainer.mjs):

    • Add a CheckBox for "Commits Only".
    • Implement a handler to switch the grid's data context.
  3. Grid (GridContainer.mjs):

    • Ensure columns binding to yXXXX fields update correctly when the underlying data logic changes.
    • Trigger a re-sort if the active sort column is affected (e.g. total_contributions).
  4. Backend (Updater.mjs):

    • Already updated to fetch totalCommitContributions. We need to ensure this data is now persisted in the users.json schema (as a separate array or structure).

This ticket focuses on the frontend implementation (1-3) and assumes data is available or will be mocked until the backend fully populates it.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions