Factory: blinking blue lamp while a phase is being prepared
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
585fdd58de
commit
724405b245
6 files changed
+33
-2
No files matched your search
@@ -3,6 +3,12 @@
|
|||||||
All notable changes to CodeCraft. Versions follow [Semantic Versioning](https://semver.org/);
|
All notable changes to CodeCraft. Versions follow [Semantic Versioning](https://semver.org/);
|
||||||
until 1.0, minor versions may contain breaking changes.
|
until 1.0, minor versions may contain breaking changes.
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- **Factory: "preparing" lamp.** An issue card whose phase has been started but whose chat does not exist yet – checkout and, for acceptance, installing and starting the app in its throw-away container – shows a blinking blue lamp with the elapsed time instead of staying silent. (Active chats keep their accent-coloured lamp.)
|
||||||
|
|
||||||
## [v202611-00071] – 2026-11-20
|
## [v202611-00071] – 2026-11-20
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -577,9 +577,11 @@ function FactoryOverview({ onSettings }: { onSettings: () => void }) {
|
|||||||
const rs = runsOf(i);
|
const rs = runsOf(i);
|
||||||
const active = rs.find((r) => !r.ended_at);
|
const active = rs.find((r) => !r.ended_at);
|
||||||
const latest = active ?? rs[0];
|
const latest = active ?? rs[0];
|
||||||
|
// Claimed by a phase but no chat yet: checkout, and – for acceptance – installing and starting the app in its throw-away container.
|
||||||
|
const preparing = !active && ["review", "building", "testing"].includes(i.state);
|
||||||
const tokens = rs.reduce((a, r) => a + r.input_tokens + r.output_tokens, 0);
|
const tokens = rs.reduce((a, r) => a + r.input_tokens + r.output_tokens, 0);
|
||||||
return (
|
return (
|
||||||
<button key={`${i.repo}#${i.number}`} data-state={i.state} className={`factory-card ${sel === `${i.repo}#${i.number}` ? "active" : ""} ${active ? "running" : ""}`} onClick={() => setSel(sel === `${i.repo}#${i.number}` ? "" : `${i.repo}#${i.number}`)}>
|
<button key={`${i.repo}#${i.number}`} data-state={i.state} className={`factory-card ${sel === `${i.repo}#${i.number}` ? "active" : ""} ${active ? "running" : ""} ${preparing ? "preparing" : ""}`} onClick={() => setSel(sel === `${i.repo}#${i.number}` ? "" : `${i.repo}#${i.number}`)}>
|
||||||
<span className="factory-card-head">
|
<span className="factory-card-head">
|
||||||
<span className="hint">
|
<span className="hint">
|
||||||
{repoName(i.repo)} #{i.number}
|
{repoName(i.repo)} #{i.number}
|
||||||
@@ -608,7 +610,13 @@ function FactoryOverview({ onSettings }: { onSettings: () => void }) {
|
|||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
<b>{i.title || `#${i.number}`}</b>
|
<b>{i.title || `#${i.number}`}</b>
|
||||||
{latest && (
|
{preparing && (
|
||||||
|
<span className="hint" title={t("factory.preparing.hint")}>
|
||||||
|
<span className="factory-pulse prep" />
|
||||||
|
{i.state === "testing" ? t("factory.preparing.env") : t("factory.preparing.start")} · {fmtDuration(now - i.updated_at)}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
{latest && !preparing && (
|
||||||
<span className="hint">
|
<span className="hint">
|
||||||
{active && <span className="factory-pulse" />}
|
{active && <span className="factory-pulse" />}
|
||||||
{t(`factory.phase.${latest.phase}` as any)} · {(latest.model || "").split("/").pop()} · {fmtDuration(runMs(latest, now))}
|
{t(`factory.phase.${latest.phase}` as any)} · {(latest.model || "").split("/").pop()} · {fmtDuration(runMs(latest, now))}
|
||||||
|
|||||||
@@ -1243,6 +1243,9 @@ export const de: Messages = {
|
|||||||
"factory.power.stopped": "Factory gestoppt",
|
"factory.power.stopped": "Factory gestoppt",
|
||||||
"factory.power.stopHint": "Klicken zum Stoppen: keine neuen Agenten, laufende werden fertig",
|
"factory.power.stopHint": "Klicken zum Stoppen: keine neuen Agenten, laufende werden fertig",
|
||||||
"factory.power.startHint": "Klicken, um die Factory zu starten",
|
"factory.power.startHint": "Klicken, um die Factory zu starten",
|
||||||
|
"factory.preparing.env": "Testumgebung wird vorbereitet",
|
||||||
|
"factory.preparing.start": "Lauf wird vorbereitet",
|
||||||
|
"factory.preparing.hint": "Der Agent-Chat startet, sobald der Checkout fertig ist und – bei der Abnahme – die App in ihrem Wegwerf-Container installiert ist und läuft",
|
||||||
"factory.col.review": "Prüfung",
|
"factory.col.review": "Prüfung",
|
||||||
"factory.col.question": "Rückfragen",
|
"factory.col.question": "Rückfragen",
|
||||||
"factory.col.approved": "Freigegeben",
|
"factory.col.approved": "Freigegeben",
|
||||||
|
|||||||
@@ -1242,6 +1242,9 @@ export const en = {
|
|||||||
"factory.power.stopped": "Factory stopped",
|
"factory.power.stopped": "Factory stopped",
|
||||||
"factory.power.stopHint": "Click to stop: no new agents start, running ones finish",
|
"factory.power.stopHint": "Click to stop: no new agents start, running ones finish",
|
||||||
"factory.power.startHint": "Click to start the factory",
|
"factory.power.startHint": "Click to start the factory",
|
||||||
|
"factory.preparing.env": "Preparing the test environment",
|
||||||
|
"factory.preparing.start": "Preparing the run",
|
||||||
|
"factory.preparing.hint": "The agent chat starts when the checkout is done and – for acceptance – the app is installed and running in its throw-away container",
|
||||||
"factory.col.review": "Review",
|
"factory.col.review": "Review",
|
||||||
"factory.col.question": "Questions",
|
"factory.col.question": "Questions",
|
||||||
"factory.col.approved": "Approved",
|
"factory.col.approved": "Approved",
|
||||||
|
|||||||
@@ -5319,6 +5319,13 @@ td.fold-indent {
|
|||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
animation: factory-pulse 1.4s ease-in-out infinite;
|
animation: factory-pulse 1.4s ease-in-out infinite;
|
||||||
}
|
}
|
||||||
|
/* Preparing (checkout, test environment): same lamp, other colour than an active chat. */
|
||||||
|
.factory-pulse.prep {
|
||||||
|
background: var(--blue, var(--accent2));
|
||||||
|
}
|
||||||
|
.factory-card.preparing {
|
||||||
|
border-left: 3px solid var(--blue, var(--accent2));
|
||||||
|
}
|
||||||
@keyframes factory-pulse {
|
@keyframes factory-pulse {
|
||||||
50% {
|
50% {
|
||||||
opacity: 0.25;
|
opacity: 0.25;
|
||||||
|
|||||||
@@ -3,6 +3,10 @@
|
|||||||
* under "unreleased"; scripts/release.sh renames the key to the release version.
|
* under "unreleased"; scripts/release.sh renames the key to the release version.
|
||||||
*/
|
*/
|
||||||
export const WHATS_NEW: Record<string, { en: string[]; de: string[] }> = {
|
export const WHATS_NEW: Record<string, { en: string[]; de: string[] }> = {
|
||||||
|
unreleased: {
|
||||||
|
en: ["Factory: a blinking blue lamp shows that a phase is being prepared (checkout, test environment) before its chat starts"],
|
||||||
|
de: ["Factory: eine blinkende blaue Lampe zeigt, dass eine Phase vorbereitet wird (Checkout, Testumgebung), bevor der Chat startet"],
|
||||||
|
},
|
||||||
"202611-00071": {
|
"202611-00071": {
|
||||||
en: ["Unsent messages are saved per chat and can be continued on another device (web and terminal client)", "Factory: main switch (green running, yellow stopping, red stopped) with a soft stop – running agents finish", "Factory: chats open in an overlay on the desktop; every issue card has an open-chat button; the overview uses the full width"],
|
en: ["Unsent messages are saved per chat and can be continued on another device (web and terminal client)", "Factory: main switch (green running, yellow stopping, red stopped) with a soft stop – running agents finish", "Factory: chats open in an overlay on the desktop; every issue card has an open-chat button; the overview uses the full width"],
|
||||||
de: ["Ungesendete Nachrichten werden pro Chat gespeichert und lassen sich auf einem anderen Gerät fortsetzen (Web und Terminal-Client)", "Factory: Hauptschalter (grün läuft, gelb stoppt, rot gestoppt) mit sanftem Stopp – laufende Agenten werden fertig", "Factory: Chats öffnen auf dem Desktop in einem Overlay; jede Issue-Karte hat einen Chat-Knopf; die Übersicht nutzt die volle Breite"],
|
de: ["Ungesendete Nachrichten werden pro Chat gespeichert und lassen sich auf einem anderen Gerät fortsetzen (Web und Terminal-Client)", "Factory: Hauptschalter (grün läuft, gelb stoppt, rot gestoppt) mit sanftem Stopp – laufende Agenten werden fertig", "Factory: Chats öffnen auf dem Desktop in einem Overlay; jede Issue-Karte hat einen Chat-Knopf; die Übersicht nutzt die volle Breite"],
|
||||||
|
|||||||
Reference in new issue
Block a user