Git-Status Endpoint mit Outgoing-Commits und Dashboard-Badges
- GET /api/sessions/{id}/git-status: Parsed git status --porcelain in add/edit/delete Listen
- Outgoing-Commits: Zählt unpushed Commits via git rev-list --count @{u}..HEAD
- Dashboard: Zeigt Git-Badges asynchron pro Session (+N, ~N, -N, ↑N)
- CSS: Farbige Badges (grün=add, orange=edit, rot=delete, blau=outgoing)
This commit is contained in:
1 parent
166465fd54
commit
ac150af4c5
4 files changed
+195
No files matched your search
@@ -114,3 +114,37 @@
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.card-git-status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--badge-spacing);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.git-badge {
|
||||
padding: var(--badge-padding);
|
||||
font-family: var(--mono);
|
||||
font-size: var(--mono-size);
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
|
||||
.git-add {
|
||||
background: rgba(68, 170, 17, 0.15);
|
||||
color: var(--secondary);
|
||||
}
|
||||
|
||||
.git-edit {
|
||||
background: rgba(255, 170, 0, 0.15);
|
||||
color: var(--warning);
|
||||
}
|
||||
|
||||
.git-delete {
|
||||
background: rgba(255, 102, 102, 0.15);
|
||||
color: var(--dangerous);
|
||||
}
|
||||
|
||||
.git-outgoing {
|
||||
background: rgba(100, 149, 237, 0.15);
|
||||
color: var(--primary);
|
||||
}
|
||||
Reference in new issue
Block a user