feat: show the installed commit and how many newer commits the remote has

The Manager card now shows the commit SHA the image was built from (GIT_SHA build arg, passed
by the panel's self-update and documented for compose) and counts the commits SELF_UPDATE_REF
has beyond it, with their subjects and a "Check for updates" button. The check is a cached,
background, history-only git fetch so GET /api/system never waits on it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5.5 committed 2026-10-19 09:14:35 +02:00
1 parent 4b3c8f213a
commit 9a85c3bca0
15 files changed
+400 -11

No files matched your search

+11
View File
@@ -19,8 +19,18 @@ export interface Installation {
updatedAt: string;
}
export interface RemoteStatus {
checkedAt: string;
remoteSha: string | null;
behind: number | null;
commits: { sha: string; subject: string }[];
error: string | null;
}
export interface SystemInfo {
version: string;
sha: string | null;
remote: RemoteStatus | null;
uptimeSec: number;
canSelfUpdate: boolean;
unavailableReason: string | null;
@@ -74,5 +84,6 @@ export const api = {
logs: (id: string) => request<{ log: string }>(`/api/installations/${id}/logs`),
systemInfo: () => request<SystemInfo>("/api/system"),
checkManager: () => request<SystemInfo>("/api/system/check", { method: "POST" }),
updateManager: () => request<{ ok: true }>("/api/system/update", { method: "POST" }),
};