übersicht: bei Arcane die Zahl der Images nennen („11 Images“ statt „Images“); frontend: dist gebaut
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
67ed0458a9
commit
5fcac05642
@@ -31,11 +31,14 @@ describe("kurzform", () => {
|
||||
})
|
||||
|
||||
it("lässt aktuelle Geräte weg und stellt Knopf-Updates nach vorn", () => {
|
||||
const arcane = ziel("vm-106", "Arcane", [b({ id: "arcane", zustand: "neu", verfuegbar: "2.13.1", grund: "über die eigene Oberfläche" })])
|
||||
const arcane = ziel("vm-106", "Arcane", [
|
||||
b({ id: "arcane", zustand: "neu", verfuegbar: "2.13.1", grund: "über die eigene Oberfläche" }),
|
||||
b({ id: "docker", zustand: "neu", kurz: "11 Images" }),
|
||||
])
|
||||
const gitea = ziel("ct-104", "Gitea", [b({ id: "os", zustand: "neu", kurz: "73 Pakete", aktion: knopf })])
|
||||
const ruhig = ziel("ct-103", "PVE Scripts", [b({ id: "app", zustand: "aktuell" })])
|
||||
expect(kurzformen([arcane, ruhig, gitea]).map((z) => z.id)).toEqual(["ct-104", "vm-106"])
|
||||
expect(kurzform(arcane)?.teile).toEqual(["App → 2.13.1 (über die App)"])
|
||||
expect(kurzform(arcane)?.teile).toEqual(["App → 2.13.1 (über die App)", "11 Images"])
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ function wartetText(b: BausteinStand): string | null {
|
||||
return null
|
||||
}
|
||||
|
||||
/** „App → 0.79.0 (ab 26.09. 08:06)“, „48 Pakete“, „Images“ — was an einem Gerät ansteht. */
|
||||
/** „App → 0.79.0 (ab 26.09. 08:06)“, „48 Pakete“, „11 Images“ — was an einem Gerät ansteht. */
|
||||
export function kurzform(ziel: ZielStand): KurzZeile | null {
|
||||
const neu = ziel.bausteine.filter((b) => b.zustand === "neu")
|
||||
if (neu.length === 0) return null
|
||||
@@ -32,7 +32,7 @@ export function kurzform(ziel: ZielStand): KurzZeile | null {
|
||||
teile.push(`App → ${app.verfuegbar ?? "neu"}${w ? ` (${w})` : ""}`)
|
||||
}
|
||||
const sys = systemBaustein(ziel)
|
||||
if (sys?.zustand === "neu") teile.push(sys.id === "docker" ? "Images" : sys.kurz || "Pakete")
|
||||
if (sys?.zustand === "neu") teile.push(sys.kurz || (sys.id === "docker" ? "Images" : "Pakete"))
|
||||
// KI-Box: Bausteine heißen selbst (Betriebssystem, Hermes, Motor …).
|
||||
for (const b of neu) {
|
||||
if (b === app || b === sys) continue
|
||||
|
||||
Reference in New Issue
Block a user