@atolis-hq/wake 0.2.24 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,7 +48,7 @@ export const indexHtml = `<!DOCTYPE html>
|
|
|
48
48
|
nav button:hover { color: #fff; }
|
|
49
49
|
nav button.active { color: var(--accent-light); border-bottom-color: var(--accent); }
|
|
50
50
|
main { padding: 1rem; }
|
|
51
|
-
.columns { display: grid; grid-template-columns: repeat(
|
|
51
|
+
.columns { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 0.6rem; overflow-x: auto; }
|
|
52
52
|
.col { background: #1a1d23; border-radius: 10px; padding: 0.5rem; min-height: 200px; }
|
|
53
53
|
.col h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: #9aa2ad; margin: 0.2rem 0.4rem 0.5rem; }
|
|
54
54
|
.card { background: #22262e; border: 1px solid #2c313a; border-radius: 8px; padding: 0.5rem; margin-bottom: 0.5rem; cursor: pointer; font-size: 0.8rem; transition: border-color 0.12s ease; }
|
|
@@ -140,7 +140,7 @@ export const indexHtml = `<!DOCTYPE html>
|
|
|
140
140
|
</div>
|
|
141
141
|
<script>
|
|
142
142
|
const API = '/api/v1';
|
|
143
|
-
const CONDITIONS = ['
|
|
143
|
+
const CONDITIONS = ['ready', 'active', 'needs-human', 'error', 'finished'];
|
|
144
144
|
let currentView = 'board';
|
|
145
145
|
let analyticsWindow = '7d';
|
|
146
146
|
let analyticsMetric = 'runs-over-time';
|
|
@@ -63,10 +63,10 @@ function deriveCondition(item, lastRun, config) {
|
|
|
63
63
|
const workflow = workflowForProjection(item, config);
|
|
64
64
|
const hasRoute = config.stages[stage] !== undefined || workflow?.stages[stage] !== undefined;
|
|
65
65
|
if (!hasRoute) {
|
|
66
|
-
return { condition: '
|
|
66
|
+
return { condition: 'error', reason: `no route configured for stage "${stage}"` };
|
|
67
67
|
}
|
|
68
68
|
if (lastRun?.sentinel === 'FAILED') {
|
|
69
|
-
return { condition: '
|
|
69
|
+
return { condition: 'error', reason: 'last run failed; awaiting operator/retry policy' };
|
|
70
70
|
}
|
|
71
71
|
return { condition: 'ready', reason: 'has a route and no blocking condition' };
|
|
72
72
|
}
|
|
@@ -139,8 +139,7 @@ export async function buildStatus(input) {
|
|
|
139
139
|
'needs-human': 0,
|
|
140
140
|
active: 0,
|
|
141
141
|
ready: 0,
|
|
142
|
-
|
|
143
|
-
stalled: 0,
|
|
142
|
+
error: 0,
|
|
144
143
|
finished: 0,
|
|
145
144
|
};
|
|
146
145
|
for (const card of board) {
|
package/dist/src/version.js
CHANGED