Commit ee5a711
committed
feat(source-control): add Graph section with commit history and hover popover
Adds a full Git Graph section below the Source Control file list,
with commit history, Sync Changes flow, More Actions dropdown, and
a rich hover popover per commit.
- Add git:log IPC handler: parses commit subject, body, author, date,
branch refs, and per-commit --stat (insertions/deletions/files changed)
- Add git:pull IPC handler (pull --rebase)
- Expose gitLog and gitPull in preload/index.ts
- Graph section in SourceControlPanel:
- Collapsible header with Fetch, Pull, Push action buttons
- Commit rows: graph dot + line, message, branch badge, author avatar
- Hover popover: avatar, author (indigo), date + full date, commit
subject, bullet-point body, files changed stat with green/red
insertion/deletion counts, hash copy button, Open on GitHub link
- Popover position clamped to panel bounds using measured height
- Sync Changes button replaces Commit after a successful commit
- More Actions dropdown (opens downward): Commit, Commit & Push,
Commit & Sync1 parent 88001e7 commit ee5a711
3 files changed
Lines changed: 335 additions & 158 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1308 | 1308 | | |
1309 | 1309 | | |
1310 | 1310 | | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
0 commit comments