feat: history tracking — manual snapshots, fingerprint diff, trends view#8
Merged
feat: history tracking — manual snapshots, fingerprint diff, trends view#8
Conversation
Storage: append-only NDJSON at .vscode/codeclimate-visualiser.history.ndjson Fingerprint resolution (HistoryManager): - native: issue.fingerprint used directly - derived: sha1(check_name:path:line) when fingerprint absent - volatile: sha1(check_name:description) as last resort derived/volatile shown with ⚠ warning in diff Sidebar (SourcesViewProvider): - New "History" collapsible section showing snapshots newest-first - Each entry: label, date, total count, +new/-fixed diff vs previous, ⚠ if derived - Save icon button in History header → runs saveSnapshot command - Delete button per snapshot Command: CodeClimate: Save History Snapshot - Prompts for optional label (e.g. v1.2.3, sprint-42) - Saves current loaded issues as snapshot Trends view (buildTrendsView): - 0 snapshots → save-first prompt - 1 snapshot → severity KPI cards - 2+ snapshots → SVG line chart (total + per-severity overlays), new/fixed/persisting diff KPIs, full snapshot table with inline label editing, delta indicators, delete per row Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Sidebar: click report filename → opens JSON in editor (vscode.open) - History diff now compares current loaded issues vs last snapshot (not snapshot vs snapshot) — uses computeCurrentState() fingerprints - Trends view redesigned to match Claude Design prototype: * 3 header cards with colored left stripe (Introduced/Fixed/Net) * New vs Fixed SVG area chart with area fills and dots per data point * Per-severity mini-cards with ▲/▼ delta + sparkline * Full line chart including current state as rightmost point - Overview KPI cards now show ▲/▼ delta vs last snapshot + sparklines - KPI secondary row (Major/Minor/Info) shows delta arrows - CSS: kpi-delta, kpi-spark, kpi-sev-delta, trend-card-stripe styles Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
HistoryManager— append-only NDJSON storage in.vscode/codeclimate-visualiser.history.ndjson; fingerprint resolution with 3 tiers (native / derived / volatile)CodeClimate: Save History Snapshot— prompts for optional label, saves current loaded issuesFingerprint strategy
nativeissue.fingerprintderivedsha1(check_name:path:line)volatilesha1(check_name:description)Derived/volatile issues are counted but flagged with ⚠ in diff displays — new/fixed counts may drift if code moves.
Test plan
🤖 Generated with Claude Code