diff --git a/packages/alert-dashboard/e2e/ops.spec.ts b/packages/alert-dashboard/e2e/ops.spec.ts
index c94befc759..0d569df7fd 100644
--- a/packages/alert-dashboard/e2e/ops.spec.ts
+++ b/packages/alert-dashboard/e2e/ops.spec.ts
@@ -212,11 +212,14 @@ test("a section page leads with summaries, then trends, then the signals", async
const trends = page.getByRole("heading", { level: 2, name: "Trends" });
expect(await top(trends)).toBeGreaterThan(await top(summaries.last()));
expect(await top(signals)).toBeGreaterThan(await top(trends));
- const panels = page.locator(".signal-columns .panel");
+ const panels = page.locator(".ui-columns .ui-section");
await expect(panels).toHaveCount(4);
const backups = page.getByRole("region", { name: /^Maintenance/u });
await expect(backups.getByRole("heading", { level: 3 })).toHaveText(
- /^Maintenance\s*\d+$/u,
+ "Maintenance",
+ );
+ await expect(backups.locator(".ui-section-head .ui-count")).toHaveText(
+ /^\d+$/u,
);
await expect(backups.locator(".signal").first()).toBeVisible();
expect(await top(panels.first())).toBeGreaterThan(await top(signals));
diff --git a/packages/alert-dashboard/src/client/ops/ai-page.tsx b/packages/alert-dashboard/src/client/ops/ai-page.tsx
index b24ea07bf5..66dee14744 100644
--- a/packages/alert-dashboard/src/client/ops/ai-page.tsx
+++ b/packages/alert-dashboard/src/client/ops/ai-page.tsx
@@ -1,4 +1,8 @@
-import { ButtonLink, StatusGlyph } from "@shepherdjerred/console-ui";
+import {
+ ButtonLink,
+ Section as SectionBlock,
+ StatusGlyph,
+} from "@shepherdjerred/console-ui";
import { findMetric, findSection } from "@shepherdjerred/ops-model/assemble.ts";
import { METRIC_IDS } from "@shepherdjerred/ops-model/metric-ids.ts";
import { OPS_POLICY } from "@shepherdjerred/ops-model/policy.ts";
@@ -38,11 +42,10 @@ function SpendPanel({
const severity: Severity =
spent === null ? "unknown" : overBudget ? "warning" : "ok";
return (
-
{formatValue(spent, "usd")}
of {formatValue(budget, "usd")} budget
@@ -72,12 +75,12 @@ function SpendPanel({
/>
)}
-
+
Projected month end {formatValue(projected, "usd")}
{overBudget ? ", over budget" : ", within budget"}. Cluster LLM spend
for the UTC month, priced from the catalog; subscriptions are fixed.
API spend this month
-
- Other signals {other.length}
-
-
@@ -213,21 +209,16 @@ export function QuotaPanel({
}): React.JSX.Element {
const model = quotaTable(signals, generatedAt);
return (
- - Subscription quota {signals.length} --No quota windows reported. ) : (Usage by tool'); + expect(html).toContain("Usage by tool"); expect(html).toContain( - '
Incidents-- Product signals{" "} - {productSection.signals.length} --
- - Storm signals{" "} - {stormSignals.length} --
+
>
);
diff --git a/packages/alert-dashboard/src/client/ops/review-page.tsx b/packages/alert-dashboard/src/client/ops/review-page.tsx
index 540fc7b7ac..38eac87243 100644
--- a/packages/alert-dashboard/src/client/ops/review-page.tsx
+++ b/packages/alert-dashboard/src/client/ops/review-page.tsx
@@ -1,4 +1,4 @@
-import { State, Tabs } from "@shepherdjerred/console-ui";
+import { Section, State, Tabs } from "@shepherdjerred/console-ui";
import { Loaded } from "@shepherdjerred/loaded";
import { LoadingBlock } from "@shepherdjerred/loaded/react.tsx";
import { useQuery } from "@tanstack/react-query";
@@ -59,16 +59,15 @@ function ReviewLists({
readonly report: DigestReport;
}): React.JSX.Element {
return (
- Recent changes-
- - {report.kind === "daily" - ? "New since the last digest" - : "New this period"}{" "} - {report.newSinceLast.length} --
+
);
}
diff --git a/packages/alert-dashboard/src/client/ops/section-page.tsx b/packages/alert-dashboard/src/client/ops/section-page.tsx
index ffab7b57a9..a81ae683d6 100644
--- a/packages/alert-dashboard/src/client/ops/section-page.tsx
+++ b/packages/alert-dashboard/src/client/ops/section-page.tsx
@@ -1,4 +1,5 @@
import { findSection } from "@shepherdjerred/ops-model/assemble.ts";
+import { Section as SectionBlock } from "@shepherdjerred/console-ui";
import type {
Section,
SectionId,
@@ -36,22 +37,19 @@ function SectionSignals({
readonly section: Section;
readonly newIds: ReadonlySetChanges-- {section.title}{" "} - {section.signals.length} --
+
{columns.map((column) =>
column[0] === undefined ? null : (
diff --git a/packages/alert-dashboard/src/client/ops/service-page.tsx b/packages/alert-dashboard/src/client/ops/service-page.tsx
index 9bef94fd56..93ac4d3308 100644
--- a/packages/alert-dashboard/src/client/ops/service-page.tsx
+++ b/packages/alert-dashboard/src/client/ops/service-page.tsx
@@ -1,4 +1,4 @@
-import { State, StatusGlyph } from "@shepherdjerred/console-ui";
+import { Section, State, StatusGlyph } from "@shepherdjerred/console-ui";
import { Loaded } from "@shepherdjerred/loaded";
import { LoadingBlock } from "@shepherdjerred/loaded/react.tsx";
import { worstSeverity } from "@shepherdjerred/ops-model/severity.ts";
@@ -63,27 +63,28 @@ function Facts({
["Deploy variants", service.deploy.map((variant) => variant.name)],
];
return (
- Catalog-
-
-
-
- {rows.map(([label, values]) => (
-
-
+
+
+
- ))}
-
+
+ {rows.map(([label, values]) => (
+
+
+ ))}
+
+
+
-
- Signals-What changed-
{report.trends.length === 0 ? null : (
-
diff --git a/packages/alert-dashboard/src/styles/globals.css b/packages/alert-dashboard/src/styles/globals.css
index 30e6564521..44a264dfcc 100644
--- a/packages/alert-dashboard/src/styles/globals.css
+++ b/packages/alert-dashboard/src/styles/globals.css
@@ -87,9 +87,6 @@
border-bottom: 1px solid var(--ui-line);
}
/* Blocks side by side, split by a hairline; they stack when narrow. */
-.signal-columns,
-.review-lists,
-.service-layout,
.ai-row,
.review-grid,
.chart-grid {
@@ -98,15 +95,7 @@
border-bottom: 1px solid var(--ui-line);
overflow: clip;
}
-:is(
- .signal-columns,
- .review-lists,
- .service-layout,
- .ai-row,
- .review-grid,
- .chart-grid
- )
- > * {
+:is(.ai-row, .review-grid, .chart-grid) > * {
min-width: 0;
border-bottom: 0;
box-shadow:
@@ -228,7 +217,7 @@
gap: var(--ui-space-1) var(--ui-space-3);
padding: var(--ui-space-4) var(--ui-gutter) 9px;
}
-.panel-summary {
+.spend-summary {
padding: 0 var(--ui-gutter) var(--ui-space-2);
margin: 0;
}
@@ -278,9 +267,6 @@
font-size: var(--ui-text-lg);
font-weight: var(--ui-weight-strong);
}
-.signal-columns > :only-child {
- grid-column: 1 / -1;
-}
.charts-heading {
display: flex;
@@ -471,6 +457,8 @@
}
}
.tool-note {
+ margin: 0;
+ padding: 0 var(--ui-gutter) var(--ui-space-2);
font-size: 0.85rem;
}
@@ -482,9 +470,6 @@
font-weight: 700;
}
-.spend-panel {
- padding-bottom: var(--ui-space-3);
-}
.hero-figure {
margin: 0;
padding: 0 var(--ui-gutter) var(--ui-space-3);
@@ -509,10 +494,6 @@
.review-grid > :only-child {
grid-column: 1 / -1;
}
-.incident-panel {
- display: flex;
- flex-direction: column;
-}
/* Holds about the top block's height while the report loads, so the charts
under it barely move when it lands. The weekly block has the trend table. */
@@ -693,9 +674,6 @@
}
}
@container content (max-width: 900px) {
- .service-layout,
- .signal-columns,
- .review-lists,
.chart-grid,
.review-grid {
grid-template-columns: 1fr;
|
|---|