Skip to content

Git log dashboard#55

Merged
jaromil merged 16 commits intomainfrom
git-log-dashboard
Feb 19, 2026
Merged

Git log dashboard#55
jaromil merged 16 commits intomainfrom
git-log-dashboard

Conversation

@jaromil
Copy link
Member

@jaromil jaromil commented Feb 19, 2026

panel in dashboard showing current git log

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a “Git log” panel to the dashboard by introducing a backend /api/git/log endpoint and wiring a new frontend store + UI rendering path (replacing the previous “API metrics” dashboard column).

Changes:

  • Backend: add internal/gitlog (git command adapter + parser) and expose it via GET /api/git/log.
  • Frontend: add fetchGitLog, dashboard store plumbing, conventional-commit parsing, and a new Git log UI section in Dashboard.svelte.
  • Docs/plans: document the new endpoint and record implementation notes.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
internal/gitlog/parser_test.go Adds unit tests for parsing git log output (binary/truncation/empty).
internal/gitlog/parser.go Implements parsing of git log --numstat output into structured commits/files/stats.
internal/gitlog/gitlog.go Adds git command reader, options normalization, error classification, and shared DTOs.
internal/api/routes.go Registers /api/git/log route and wires GitCmdReader into the REST handler.
internal/api/rest_types.go Adds REST-layer response DTOs for the git log payload and adds GitLogReader to RestHandler.
internal/api/rest_git.go Implements GET /api/git/log handler, query param validation, timeout handling, and DTO conversion.
internal/api/rest_git_test.go Adds API handler tests for payload, validation, and error mapping.
frontend/src/lib/apiClient.js Adds fetchGitLog() plus normalization helpers for commits/files.
frontend/src/lib/dashboardStore.js Replaces metrics-summary loading with git-log loading + auto-refresh + event-triggered refresh.
frontend/src/lib/conventionalCommit.js Adds conventional-commit subject parser and type→badge-class mapping.
frontend/src/views/Dashboard.svelte Replaces “API metrics” section with “Git log” section and styles + conventional badges.
frontend/tests/apiClient.test.js Adds a test for fetchGitLog() normalization and request URL.
frontend/tests/dashboardStore.test.js Updates dashboard store tests to use git log loading and auto-refresh instead of metrics.
frontend/tests/dashboard.test.js Adds UI test coverage for rendering git log entries in the dashboard view.
frontend/tests/conventionalCommit.test.js Adds unit tests for conventional-commit parsing helper.
docs/reference/http-api.md Documents /api/git/log endpoint behavior and example response.
AGENTS.md Adds implementation notes for the git log dashboard feature.
.gestalt/plans/git-log-dashboard.org Adds/updates the implementation plan for the feature.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jaromil jaromil merged commit 5eb6735 into main Feb 19, 2026
6 checks passed
@jaromil jaromil deleted the git-log-dashboard branch February 19, 2026 16:11
@github-actions
Copy link

🎉 This PR is included in version 1.17.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants