feat(FN-858): add click-to-diff in Remotes tab commit lists

- Add clickable commit rows in GitManagerModal Remotes tab that open inline diff view
- Add diff viewer with syntax highlighting and file-level stats
- Add CSS styles for diff view, commit detail, and click-to-diff interactions
- Add comprehensive tests for click-to-diff behavior in Remotes tab
- Clean up unused types and store methods (diffFile, getCommitDiff, DiffOptions)
- Update dashboard README with inline commit diff feature documentation
This commit is contained in:
gsxdsm
2026-04-04 05:50:59 -07:00
parent e250f99b8b
commit 911b7bd0c7
4 changed files with 427 additions and 24 deletions

View File

@@ -14164,6 +14164,41 @@ html .column.drag-over * {
flex-direction: column;
}
/* ── Remotes Tab: Clickable Commit Diff ── */
.gm-commit-item-compact-wrapper {
display: flex;
flex-direction: column;
}
.gm-commit-clickable {
cursor: pointer;
transition: background var(--transition-fast);
}
.gm-commit-clickable:hover {
background: var(--card-hover);
}
.gm-commit-expand-icon {
flex-shrink: 0;
color: var(--text-muted);
display: flex;
align-items: center;
padding-top: 1px;
}
.gm-commit-diff-compact {
margin: var(--space-xs) var(--space-sm) var(--space-sm) var(--space-sm);
}
.gm-ahead-commits-list {
max-height: 280px;
overflow-y: auto;
display: flex;
flex-direction: column;
}
/* ── Responsive ── */
@media (max-width: 640px) {