Skip to content

Commit e94aa1d

Browse files
style: auto-fix formatting
1 parent 9bce821 commit e94aa1d

13 files changed

Lines changed: 575 additions & 1716 deletions

File tree

showcase/shell-dashboard/src/app/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,8 @@ function Legend() {
9393
{" / "}
9494
<span className="text-[var(--danger)]">docs-shell ✗</span>
9595
{" / "}
96-
<span className="text-[var(--amber)]">!</span>
97-
{" "}
98-
docs: ok / missing / 404 / probe error
96+
<span className="text-[var(--amber)]">!</span> docs: ok / missing / 404
97+
/ probe error
9998
</div>
10099
<div className="flex items-center gap-1.5">
101100
<span className="text-[var(--accent)] font-medium">Demo ↗</span>/

showcase/shell-dashboard/src/components/cell-pieces.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,11 @@ export function CellStatus({ ctx }: { ctx: CellContext }) {
202202
<LiveBadge
203203
name="E2E"
204204
badge={cell.e2e}
205-
dimensionKey={keyFor("e2e_smoke", ctx.integration.slug, ctx.feature.id)}
205+
dimensionKey={keyFor(
206+
"e2e_smoke",
207+
ctx.integration.slug,
208+
ctx.feature.id,
209+
)}
206210
/>
207211
</div>
208212
</>

showcase/shell-dashboard/src/components/feature-grid.test.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,14 @@ describe("computeColumnTally", () => {
9696

9797
it("missing health row contributes zero (does not count as red)", () => {
9898
const live: LiveStatusMap = new Map();
99-
live.set(
100-
"e2e_smoke:i1/f1",
101-
row("e2e_smoke:i1/f1", "e2e_smoke", "green"),
102-
);
99+
live.set("e2e_smoke:i1/f1", row("e2e_smoke:i1/f1", "e2e_smoke", "green"));
103100
const t = computeColumnTally(integration, features, live);
104101
expect(t).toEqual({ green: 1, amber: 0, red: 0, unknown: false });
105102
});
106103

107104
it("returns unknown=true when connection is error", () => {
108105
const live: LiveStatusMap = new Map();
109-
live.set(
110-
"e2e_smoke:i1/f1",
111-
row("e2e_smoke:i1/f1", "e2e_smoke", "green"),
112-
);
106+
live.set("e2e_smoke:i1/f1", row("e2e_smoke:i1/f1", "e2e_smoke", "green"));
113107
const t = computeColumnTally(integration, features, live, "error");
114108
expect(t.unknown).toBe(true);
115109
expect(t.green).toBe(0);

showcase/shell-dashboard/src/components/feature-grid.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,7 @@ export function FeatureGrid({
176176
chat.rows,
177177
tools.rows,
178178
),
179-
[
180-
smoke.rows,
181-
health.rows,
182-
e2eSmoke.rows,
183-
agent.rows,
184-
chat.rows,
185-
tools.rows,
186-
],
179+
[smoke.rows, health.rows, e2eSmoke.rows, agent.rows, chat.rows, tools.rows],
187180
);
188181
const connection = aggregateConnection(
189182
smoke.status,

showcase/shell-dashboard/src/components/level-strip.test.tsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ function mapOf(rows: StatusRow[]): LiveStatusMap {
3434

3535
const makeIntegration = (
3636
slug: string,
37-
demos: Array<{ id: string; name: string; description: string; tags: string[] }> = [],
37+
demos: Array<{
38+
id: string;
39+
name: string;
40+
description: string;
41+
tags: string[];
42+
}> = [],
3843
): Integration => ({
3944
slug,
4045
name: slug,
@@ -63,7 +68,12 @@ describe("LevelStrip", () => {
6368

6469
it("shows green tone when dimension rows are green", () => {
6570
const integration = makeIntegration("test", [
66-
{ id: "tool-rendering", name: "Tool Rendering", description: "", tags: [] },
71+
{
72+
id: "tool-rendering",
73+
name: "Tool Rendering",
74+
description: "",
75+
tags: [],
76+
},
6777
]);
6878
const live = mapOf([
6979
row("health:test", "health", "green"),
@@ -118,7 +128,12 @@ describe("LevelStrip", () => {
118128

119129
it("Tools badge shows real state when integration has tool-rendering demo", () => {
120130
const integration = makeIntegration("test", [
121-
{ id: "tool-rendering", name: "Tool Rendering", description: "", tags: [] },
131+
{
132+
id: "tool-rendering",
133+
name: "Tool Rendering",
134+
description: "",
135+
tags: [],
136+
},
122137
]);
123138
const live = mapOf([row("tools:test", "tools", "green")]);
124139
const { getByTestId } = render(

showcase/shell-dashboard/src/components/level-strip.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ export function LevelStrip({
5656
);
5757
const tools: LevelBadge = hasToolRendering
5858
? resolveBadge(liveStatus, "tools", slug, "Tools")
59-
: { name: "Tools", tone: "gray", title: "Tools: n/a (no tool-rendering demo)" };
59+
: {
60+
name: "Tools",
61+
tone: "gray",
62+
title: "Tools: n/a (no tool-rendering demo)",
63+
};
6064

6165
const badges = [up, wired, chats, tools];
6266

showcase/shell-dashboard/src/components/packages-section.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
*/
66
import { useMemo } from "react";
77
import { getPackages, type Package } from "@/lib/registry";
8-
import { mergeRowsToMap, type ConnectionStatus, type LiveStatusMap } from "@/lib/live-status";
8+
import {
9+
mergeRowsToMap,
10+
type ConnectionStatus,
11+
type LiveStatusMap,
12+
} from "@/lib/live-status";
913
import { useLiveStatus } from "@/hooks/useLiveStatus";
1014
import { LevelStrip } from "@/components/level-strip";
1115

showcase/shell-dashboard/src/lib/live-status.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ describe("resolveCell — post-Phase 3 (rollup uses health + e2e_smoke only)", (
9898
});
9999

100100
it("rolls up to unknown when health is missing", () => {
101-
const live = mapOf([
102-
row("e2e_smoke:agno/ac", "e2e_smoke", "green"),
103-
]);
101+
const live = mapOf([row("e2e_smoke:agno/ac", "e2e_smoke", "green")]);
104102
const c = resolveCell(live, "agno", "ac");
105103
expect(c.rollup).toBe("gray");
106104
});
@@ -180,9 +178,7 @@ describe("resolveCell — post-Phase 3 (rollup uses health + e2e_smoke only)", (
180178
});
181179

182180
it("red row + connection=error: red wins over the hook error tone (C5 F14)", () => {
183-
const live = mapOf([
184-
row("health:a", "health", "red"),
185-
]);
181+
const live = mapOf([row("health:a", "health", "red")]);
186182
const c = resolveCell(live, "a", "b", { connection: "error" });
187183
expect(c.rollup).toBe("red");
188184
});

showcase/shell-dashboard/src/lib/packages-drift.test.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,23 @@ interface RegistryShape {
1717
describe("packages-drift", () => {
1818
it("packages.json slugs match integration slugs from registry", () => {
1919
const registry = registryData as unknown as RegistryShape;
20-
const integrationSlugs = new Set(
21-
registry.integrations.map((i) => i.slug),
22-
);
20+
const integrationSlugs = new Set(registry.integrations.map((i) => i.slug));
2321
const packageSlugs = new Set(getPackages().map((p) => p.slug));
2422

2523
// Every package must correspond to an integration
2624
for (const slug of packageSlugs) {
27-
expect(integrationSlugs.has(slug), `package ${slug} not in integrations`).toBe(true);
25+
expect(
26+
integrationSlugs.has(slug),
27+
`package ${slug} not in integrations`,
28+
).toBe(true);
2829
}
2930

3031
// Every integration must have a corresponding package
3132
for (const slug of integrationSlugs) {
32-
expect(packageSlugs.has(slug), `integration ${slug} not in packages`).toBe(true);
33+
expect(
34+
packageSlugs.has(slug),
35+
`integration ${slug} not in packages`,
36+
).toBe(true);
3337
}
3438

3539
expect(packageSlugs.size).toBe(integrationSlugs.size);

0 commit comments

Comments
 (0)