Skip to content
Open
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: 11 additions & 0 deletions apps/admin/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ describe("App routing", () => {
expect(await screen.findByRole("button", { name: "Open workflow exec_1" })).toBeTruthy();
});

test("shows the demo warm-up reminder", async () => {
vi.mocked(orchestratorApi.listExecutions).mockResolvedValue([listedExecution]);
render(
<MemoryRouter initialEntries={["/"]}>
<App />
</MemoryRouter>,
);

expect(await screen.findByText(/fire two warm-up events before presenting/i)).toBeTruthy();
});

test("clicking a row navigates to its execution's detail route", async () => {
vi.mocked(orchestratorApi.listExecutions).mockResolvedValue([listedExecution]);
vi.mocked(orchestratorApi.getExecution).mockResolvedValue(fullExecution);
Expand Down
6 changes: 6 additions & 0 deletions apps/admin/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ export default function App() {
<ResetDemoButton />
<ThemeToggle storageKey="admin-theme" />
</header>
{/* Idle Lambdas fail their first invocation after weeks unused (platform
reactivation, 2026-08-27 AACRAO demo) — remind presenters to warm up. */}
<p className="demo-hint">
Demo tip: after an idle stretch, the first request to each AWS service can fail
while it wakes — reset, then fire two warm-up events before presenting.
</p>
<main className="main">
<Routes>
<Route path="/" element={<ListRoute />} />
Expand Down
9 changes: 8 additions & 1 deletion apps/admin/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,17 @@ button {
font-family: var(--font-mono);
}

.demo-hint {
padding: 6px 22px 0;
font-size: 12px;
color: var(--ink-dim);
}

.app {
min-height: 100vh;
display: grid;
grid-template-rows: auto 1fr;
/* topbar / demo-hint / main */
grid-template-rows: auto auto 1fr;
}

:root {
Expand Down
Loading