LearnNewsExamplesServices
Frontmatter
id9064
titleFeat: Implement ''Commits Only'' Toggle for DevRank Grid
stateClosed
labels
enhancementai
assigneestobiu
createdAtFeb 9, 2026, 12:56 AM
updatedAtFeb 9, 2026, 1:45 AM
githubUrlhttps://github.com/neomjs/neo/issues/9064
authortobiu
commentsCount1
parentIssue8930
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 9, 2026, 1:45 AM

Feat: Implement 'Commits Only' Toggle for DevRank Grid

Closed v12.0.0 enhancementai
tobiu
tobiu commented on Feb 9, 2026, 12:56 AM

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.

tobiu added the enhancement label on Feb 9, 2026, 12:56 AM
tobiu added the ai label on Feb 9, 2026, 12:56 AM
tobiu assigned to @tobiu on Feb 9, 2026, 12:56 AM
tobiu added parent issue #8930 on Feb 9, 2026, 12:57 AM
tobiu referenced in commit 1143fbf - "Feat: Map 'cy' (Commits) array to Contributor Model fields (#9064)" on Feb 9, 2026, 1:38 AM
tobiu referenced in commit f739be8 - "Feat: Implement 'Commits Only' Toggle (UI & Model) (#9064)" on Feb 9, 2026, 1:44 AM
tobiu
tobiu Feb 9, 2026, 1:45 AM

Input from Gemini 3 Pro:

✦ I have implemented the "Commits Only" toggle in the DevRank UI.

Features:

  • UI: Added a "Commits Only" checkbox to the Controls panel.
  • Grid Logic: Toggling the checkbox dynamically updates:
    • Year Columns: Switches between Total (yXXXX) and Commits (cyXXXX) data.
    • Sparkline: Updates the chart to show the corresponding dataset.
    • Total Column: Updates to show total_commits (calculated).
    • Sorting: Automatically switches the active sorter to the corresponding field (e.g., total_contributions -> total_commits).

Model Support:

  • Updated Contributor model to include commits_array (mapped to cy) and a calculated total_commits field.

Note: A known issue with sorting in Turbo Mode (lazy instantiation) has been identified and tracked in #9066.

tobiu closed this issue on Feb 9, 2026, 1:45 AM