Skip to content

Commit c1f2f98

Browse files
committed
format
1 parent 50b66c0 commit c1f2f98

45 files changed

Lines changed: 47 additions & 218 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/webapp/app/components/GitMetadata.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ export function GitMetadata({ git }: { git?: GitMetaLinks | null }) {
1414
);
1515
}
1616

17-
function GitMetadataBranch({
18-
git,
19-
}: {
20-
git: Pick<GitMetaLinks, "branchUrl" | "branchName">;
21-
}) {
17+
function GitMetadataBranch({ git }: { git: Pick<GitMetaLinks, "branchUrl" | "branchName"> }) {
2218
return (
2319
<SimpleTooltip
2420
button={

apps/webapp/app/components/dashboard-agent/DashboardAgentSuggestedPrompts.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,15 @@ import {
1717
} from "./suggested-prompts";
1818

1919
// The only slot-to-button-style mapping: a new slot is styled here and nowhere else.
20-
const PROMPT_SLOT_BUTTON: Record<
21-
ResolvedPromptSlot,
22-
{ variant: ButtonVariant; icon: RenderIcon }
23-
> = {
24-
promoted: { variant: "primary/small", icon: SparklesIcon },
25-
investigate: { variant: "primary/small", icon: MagnifyingGlassIcon },
26-
watch: { variant: "secondary/small", icon: EyeIcon },
27-
status: { variant: "secondary/small", icon: ChartBarIcon },
28-
explain: { variant: "tertiary/small", icon: QuestionMarkCircleIcon },
29-
docs: { variant: "docs/small", icon: BookOpenIcon },
30-
};
20+
const PROMPT_SLOT_BUTTON: Record<ResolvedPromptSlot, { variant: ButtonVariant; icon: RenderIcon }> =
21+
{
22+
promoted: { variant: "primary/small", icon: SparklesIcon },
23+
investigate: { variant: "primary/small", icon: MagnifyingGlassIcon },
24+
watch: { variant: "secondary/small", icon: EyeIcon },
25+
status: { variant: "secondary/small", icon: ChartBarIcon },
26+
explain: { variant: "tertiary/small", icon: QuestionMarkCircleIcon },
27+
docs: { variant: "docs/small", icon: BookOpenIcon },
28+
};
3129

3230
// This surface never writes dismissals; only the row surfaces do.
3331
export function DashboardAgentSuggestedPrompts({

apps/webapp/app/components/dashboard-agent/demo/fixtures/chart.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ const SERIES: Record<string, number[]> = {
1616
const START_MS = Date.parse("2026-07-26T23:00:00.000Z");
1717
const HOUR_MS = 3_600_000;
1818

19-
const demoChartRows: Record<string, unknown>[] = Object.entries(SERIES).flatMap(
20-
([task, points]) =>
21-
points.map((failures, i) => ({
22-
hour: new Date(START_MS + i * HOUR_MS).toISOString(),
23-
task_identifier: task,
24-
failures,
25-
}))
19+
const demoChartRows: Record<string, unknown>[] = Object.entries(SERIES).flatMap(([task, points]) =>
20+
points.map((failures, i) => ({
21+
hour: new Date(START_MS + i * HOUR_MS).toISOString(),
22+
task_identifier: task,
23+
failures,
24+
}))
2625
);
2726

2827
const demoChartConfig: ChartConfiguration = {

apps/webapp/app/components/dashboard-agent/demo/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Must stay free of server imports. `demo.test.ts` asserts that.
2-
export { DEMO_WORLD, demoReportUri, } from "./ids";
2+
export { DEMO_WORLD, demoReportUri } from "./ids";
33

44
export * as demoFixtures from "./fixtures";
55

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
// The webapp's import point for these contracts. UI code should not import from
22
// `@internal/dashboard-agent-contracts` directly.
3-
export type {
4-
AgentPage,
5-
AgentPageContext,
6-
7-
} from "@internal/dashboard-agent-contracts";
3+
export type { AgentPage, AgentPageContext } from "@internal/dashboard-agent-contracts";

apps/webapp/app/components/dashboard-agent/report-sparkline.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,6 @@ export function ReportNoteBlock({ label, children }: { label: string; children:
313313
// surfaces classify a code the same way. `action` is a primary button, `docs` the
314314
// docs button, `reference` a text link because a button would promise an action,
315315
// and `note` is prose for an option stated rather than offered.
316-
;
317-
318316
/**
319317
* The recovery-watch offer. No report emits it; the card adds it. Two codes
320318
* because it is phrased differently when it is the only thing on offer.
Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
// Client-safe only: the promoted-slot flag reader lives in `promotedPrompt.server.ts`.
2-
;
32
export {
4-
53
resolveSuggestedPrompts,
64
resolveSuggestedPromptsBySlot,
75
type ResolvedPromptSlot,
8-
9-
106
} from "./resolver";
117
export {
128
agentsAgentPageContext,
@@ -20,13 +16,10 @@ export {
2016
deploymentsAgentPageContext,
2117
errorAgentPageContext,
2218
errorsAgentPageContext,
23-
24-
2519
limitsAgentPageContext,
2620
modelsAgentPageContext,
2721
playgroundAgentPageContext,
2822
promptsAgentPageContext,
29-
3023
queueAgentPageContext,
3124
queuesAgentPageContext,
3225
runAgentPageContext,
@@ -36,11 +29,5 @@ export {
3629
taskAgentPageContext,
3730
testAgentPageContext,
3831
waitpointsAgentPageContext,
39-
4032
} from "./page-mappers";
41-
;
42-
export {
43-
44-
readDismissedPromptIds,
45-
46-
} from "./dismissal";
33+
export { readDismissedPromptIds } from "./dismissal";

apps/webapp/app/components/dashboard-agent/suggested-prompts/registry.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,7 @@
55
* Split by responsibility; this file is the registry's public face.
66
*/
77

8-
export { PROMPT_SLOTS, type PromptSlot } from "./prompt-chips";
8+
export { PROMPT_SLOTS, type PromptSlot } from "./prompt-chips";
99
export { GENERIC_PROMPTS } from "./docs-prompts";
10-
export { pageDefaultPrompts, pageSlotPrompts } from "./page-prompts";
11-
export {
12-
13-
contextualPromptsBySlot,
14-
15-
16-
17-
18-
19-
} from "./signal-prompts";
10+
export { pageDefaultPrompts, pageSlotPrompts } from "./page-prompts";
11+
export { contextualPromptsBySlot } from "./signal-prompts";

apps/webapp/app/components/layout/MetricsLayout.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,5 +360,3 @@ export const MetricsLayout = {
360360
Content: MetricsLayoutContent,
361361
Sidebar: MetricsLayoutSidebar,
362362
};
363-
364-
;

apps/webapp/app/components/primitives/Alert.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,5 @@ export {
111111
AlertFooter,
112112
AlertTitle,
113113
AlertDescription,
114-
115114
AlertCancel,
116115
};

0 commit comments

Comments
 (0)