-
-
Notifications
You must be signed in to change notification settings - Fork 202
DevIndex: Client-Side "Commits Only" Toggle & Total Commits Implementation #9150
Copy link
Copy link
Closed
Labels
aienhancementNew feature or requestNew feature or requestperformancePerformance improvements and optimizationsPerformance improvements and optimizations
Description
Implement "Commits Only" mode entirely on the client side to avoid data bloat, leveraging Store caching and App Worker performance.
GridContainer.mjs
- Modify
afterSetCommitsOnly:- Swap the
dataFieldof the Total column betweentotalContributionsandtotalCommitsinstead of overwriting renderers. - This leverages the Store's "Soft Hydration" (via
doSort) to cachetotalCommitsvalues on the raw objects upon first access. - Propagate
commitsOnlystate tothis.footerToolbar.
- Swap the
StatusToolbar.mjs
- Add
commitsOnly_reactive config. - Update
updateRowsLabelsto compute the "Total Contributions" sum based on the active mode:- Default: Sum
tc(Total Contributions). - Commits Only: Sum
cy(Commits Year Array) usingreduce.
- Default: Sum
This ensures zero data payload increase while maintaining high runtime performance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aienhancementNew feature or requestNew feature or requestperformancePerformance improvements and optimizationsPerformance improvements and optimizations