Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions inferedgelab/studio/static/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,11 +544,13 @@ function pipelineStatus() {
const anyRunning = currentJobs.some((job) => job.status === "queued" || job.status === "running");
const anyCompleted = currentJobs.some((job) => job.status === "completed") || Boolean(importedResult);
const hasCompareDecision = Boolean(activeDecision);
const hasImportedEvidence = Boolean(importedResult);
const hasGuardEvidence = Boolean(activeDecision?.guard_status);
return {
forge: importedResult ? "completed" : "idle",
runtime: anyRunning ? "running" : anyCompleted ? "completed" : "idle",
lab: hasCompareDecision ? "completed" : anyRunning ? "running" : "idle",
aiguard: hasCompareDecision && activeDecision?.guard_status ? "completed" : "idle",
runtime: hasImportedEvidence || anyCompleted ? "completed" : anyRunning ? "running" : "idle",
lab: hasCompareDecision || hasImportedEvidence ? "completed" : anyRunning ? "running" : "idle",
aiguard: hasGuardEvidence ? "completed" : "optional",
};
}

Expand All @@ -569,6 +571,9 @@ function normalizeState(state) {
if (value === "running") {
return "running";
}
if (value === "optional" || value === "skipped") {
return "optional";
}
return "idle";
}

Expand Down
4 changes: 2 additions & 2 deletions inferedgelab/studio/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
}
}
</style>
<link rel="stylesheet" href="/studio/static/style.css?v=7" />
<link rel="stylesheet" href="/studio/static/style.css?v=8" />
</head>
<body>
<main class="shell">
Expand Down Expand Up @@ -275,6 +275,6 @@ <h2 id="future-title">Future Work</h2>
</section>
</main>

<script src="/studio/static/app.js?v=7" defer></script>
<script src="/studio/static/app.js?v=8" defer></script>
</body>
</html>
5 changes: 5 additions & 0 deletions inferedgelab/studio/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,11 @@ body {
color: var(--red);
}

.state-pill.optional {
border-color: rgba(148, 163, 184, 0.28);
color: var(--muted);
}

.form-stack,
.list-stack {
display: grid;
Expand Down
3 changes: 3 additions & 0 deletions tests/test_studio_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ def test_studio_static_assets_include_redesigned_ui_contracts():
assert "responseErrorMessage" in app_text
assert "runtimeModelName" in app_text
assert "Same backend" in app_text
assert "hasImportedEvidence" in app_text
assert 'aiguard: hasGuardEvidence ? "completed" : "optional"' in app_text
assert "#0b0f14" in style_text
assert "grid-template-columns" in style_text
assert ".form-stack button" in style_text
assert ".tool-card" in style_text
assert ".state-pill.optional" in style_text


def test_studio_app_preserves_selected_job_detail_contract():
Expand Down
Loading