Skip to content

Commit 2ccacf2

Browse files
authored
Improve deployment manager UI (#2661)
1 parent 45bd8db commit 2ccacf2

2 files changed

Lines changed: 2643 additions & 52 deletions

File tree

examples/agents_sdk/deployment_manager/frontend/src/main.jsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,7 +1711,7 @@ function AgentsList({
17111711
<div className="panel-head agents-panel-head">
17121712
<span className="panel-count">{rows.length} total</span>
17131713
</div>
1714-
<div className="agent-list" role="table" aria-label="Local apps">
1714+
<div className={`agent-list ${rows.length ? "" : "empty"}`} role="table" aria-label="Local apps">
17151715
{rows.length ? (
17161716
<>
17171717
<div className="agent-table-head" role="row">
@@ -1818,7 +1818,11 @@ function AgentsList({
18181818
})}
18191819
</>
18201820
) : (
1821-
<div className="agent-empty">Deploy an app to see it here.</div>
1821+
<div className="agent-empty">
1822+
<strong>No apps deployed</strong>
1823+
<span>Deploy an Agents SDK app to inspect traces, logs, and runtime state here.</span>
1824+
<code>make deploy PROJECT_PATH=/path/to/agents-sdk-app</code>
1825+
</div>
18221826
)}
18231827
</div>
18241828
</section>
@@ -1833,6 +1837,7 @@ function RecentRunsSummary({ appRows = [], sessions, rangeHours = 24, onRangeCha
18331837
const timeline = buildTraceTimeline(sessions, rangeHours, appRows);
18341838
const tracedCount = timeline.sessions.filter((item) => item.session.trace_id).length;
18351839
const emptyLabel = activeRange.hours === "all" ? "all time" : activeRange.label.toLowerCase();
1840+
const emptyMessage = appRows.length ? `No runs recorded in ${emptyLabel}.` : "Deploy an app to see run activity.";
18361841
const timelineWidth = `${Math.round(1600 * timelineZoom)}px`;
18371842

18381843
function resetTimelineView() {
@@ -1932,7 +1937,7 @@ function RecentRunsSummary({ appRows = [], sessions, rangeHours = 24, onRangeCha
19321937
</div>
19331938
<div
19341939
ref={gridRef}
1935-
className="trace-time-grid"
1940+
className={`trace-time-grid ${timeline.lanes.length ? "" : "empty"}`}
19361941
tabIndex={0}
19371942
aria-label="Zoomable run activity timeline"
19381943
style={{ "--trace-time-width": timelineWidth }}
@@ -1982,7 +1987,7 @@ function RecentRunsSummary({ appRows = [], sessions, rangeHours = 24, onRangeCha
19821987
))}
19831988
</>
19841989
) : (
1985-
<div className="trace-summary-empty">No runs recorded in {emptyLabel}.</div>
1990+
<div className="trace-summary-empty">{emptyMessage}</div>
19861991
)}
19871992
</div>
19881993
</section>

0 commit comments

Comments
 (0)