feat(aggregate): per-file edit tracking for code heatmap#181
Open
feat(aggregate): per-file edit tracking for code heatmap#181
Conversation
- Add FileEditStat struct to track edits, reverts, and agents per file - Extend DayStat, WeekStat, MonthStat with file_edits field - Add file_edits_by_date() function to aggregate file edits from sessions - Update build_daily_stats, build_weekly_stats, build_monthly_stats to handle file_edits - Add merge_file_edits() helper for rollup merging - Update CLI to display top edited files in rollup output Closes #163
Owner
Author
Code Review: PR #181 ### Summary Implements per-file edit tracking for Chronicle's code heatmap by extending rollup statistics with FileEditStat structure. Overall architecture is solid, but one logic issue needs attention. ### Findings #### Blockers - aggregate.rs:317-337 ??Agent count is incremented multiple times per session. If a session edits src/main.rs 5 times,
|
Owner
Author
Code Review: PR #181Thanks for the clean data structure design. FindingsBlockers
Suggestions
Four-Point Check
VerdictChanges Requested — fix duplicated parsing in ile_edits_by_date(). Reviewed by edda AI |
Owner
Author
|
Changes requested: duplicated parsing in file_edits_by_date(). See review comment for details. |
Made-with: Cursor
Owner
Author
Code Review: PR #181 Thanks for the clean rollup integration. ### Findings #### Blockers
|
…ting Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements per-file edit tracking for Chronicle's code heatmap visualization.
Changes
file_editsfieldfile_edits_by_date()to extract file edit counts from session summariesedda user rollupoutputData Structure
File edits are now tracked per file with:
{ "file_edits": { "src/auth/middleware.ts": { "edits": 12, "reverts": 0, "agents": 1 } } }Testing
Related Issues
Closes #163
Dependencies