@ekanos/harness 0.27.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/dist/internal/components/approvals-tray.d.ts +44 -6
- package/dist/internal/components/approvals-tray.js +252 -30
- package/dist/internal/components/connect-controls.js +4 -2
- package/dist/internal/components/connect-dialog.d.ts +8 -1
- package/dist/internal/components/connect-dialog.js +23 -10
- package/dist/internal/components/connect-panel.d.ts +3 -2
- package/dist/internal/components/connect-panel.js +680 -340
- package/dist/internal/components/connect-steps.d.ts +72 -0
- package/dist/internal/components/connect-steps.js +341 -0
- package/dist/internal/components/console-not-found.d.ts +14 -0
- package/dist/internal/components/console-not-found.js +57 -0
- package/dist/internal/components/dashboard-grid.d.ts +10 -5
- package/dist/internal/components/dashboard-grid.js +8 -9
- package/dist/internal/components/dev-toolbar.d.ts +27 -5
- package/dist/internal/components/dev-toolbar.js +214 -176
- package/dist/internal/components/ekanos-logo.d.ts +18 -0
- package/dist/internal/components/ekanos-logo.js +74 -0
- package/dist/internal/components/events-panel.d.ts +13 -4
- package/dist/internal/components/events-panel.js +478 -81
- package/dist/internal/components/harness-widget-provider.d.ts +6 -8
- package/dist/internal/components/harness-widget-provider.js +5 -19
- package/dist/internal/components/health-panel.d.ts +8 -1
- package/dist/internal/components/health-panel.js +328 -31
- package/dist/internal/components/integration-badge.js +4 -2
- package/dist/internal/components/integration-tab-skeletons.d.ts +8 -0
- package/dist/internal/components/integration-tab-skeletons.js +76 -0
- package/dist/internal/components/not-found-state.d.ts +39 -0
- package/dist/internal/components/not-found-state.js +127 -0
- package/dist/internal/components/operation-runner-panel.d.ts +1 -1
- package/dist/internal/components/operation-runner-panel.js +624 -189
- package/dist/internal/components/operation-scope.d.ts +13 -0
- package/dist/internal/components/operation-scope.js +79 -0
- package/dist/internal/components/page-skeletons.d.ts +11 -0
- package/dist/internal/components/page-skeletons.js +61 -0
- package/dist/internal/components/provenance-banner.d.ts +13 -4
- package/dist/internal/components/provenance-banner.js +35 -10
- package/dist/internal/components/run-log-copy.d.ts +17 -0
- package/dist/internal/components/run-log-copy.js +67 -0
- package/dist/internal/components/run-log-detail.d.ts +22 -0
- package/dist/internal/components/run-log-detail.js +295 -0
- package/dist/internal/components/run-log-empty.d.ts +13 -0
- package/dist/internal/components/run-log-empty.js +46 -0
- package/dist/internal/components/run-log.d.ts +23 -3
- package/dist/internal/components/run-log.js +384 -130
- package/dist/internal/components/runtime-strip.d.ts +5 -1
- package/dist/internal/components/runtime-strip.js +82 -5
- package/dist/internal/components/schema-form.d.ts +2 -1
- package/dist/internal/components/schema-form.js +212 -79
- package/dist/internal/components/scrollable-nav.js +14 -2
- package/dist/internal/components/segmented-control.d.ts +19 -0
- package/dist/internal/components/segmented-control.js +46 -0
- package/dist/internal/components/shell-header.d.ts +25 -0
- package/dist/internal/components/shell-header.js +126 -0
- package/dist/internal/components/surface-nav.d.ts +12 -4
- package/dist/internal/components/surface-nav.js +77 -77
- package/dist/internal/components/widget-surface.d.ts +5 -1
- package/dist/internal/components/widget-surface.js +86 -14
- package/dist/internal/components/workflow-runner.d.ts +23 -10
- package/dist/internal/components/workflow-runner.js +451 -69
- package/dist/internal/lib/connect-model.d.ts +134 -0
- package/dist/internal/lib/connect-model.js +282 -0
- package/dist/internal/lib/connection-facts.js +2 -1
- package/dist/internal/lib/console-client.js +5 -2
- package/dist/internal/lib/console-hooks.d.ts +4 -1
- package/dist/internal/lib/console-hooks.js +3 -2
- package/dist/internal/lib/console-types.d.ts +6 -0
- package/dist/internal/lib/docs-links.d.ts +28 -0
- package/dist/internal/lib/docs-links.js +57 -1
- package/dist/internal/lib/event-delivery.d.ts +33 -0
- package/dist/internal/lib/event-delivery.js +66 -0
- package/dist/internal/lib/font-files/OFL-BricolageGrotesque.txt +93 -0
- package/dist/internal/lib/font-files/OFL-Figtree.txt +93 -0
- package/dist/internal/lib/font-files/bricolage-grotesque-latin-variable.woff2 +0 -0
- package/dist/internal/lib/font-files/figtree-latin-variable.woff2 +0 -0
- package/dist/internal/lib/fonts.js +13 -12
- package/dist/internal/lib/health-model.d.ts +58 -0
- package/dist/internal/lib/health-model.js +140 -0
- package/dist/internal/lib/integration-console-href.d.ts +5 -0
- package/dist/internal/lib/integration-console-href.js +7 -1
- package/dist/internal/lib/oauth-setup-guide.d.ts +28 -0
- package/dist/internal/lib/oauth-setup-guide.js +35 -1
- package/dist/internal/lib/operation-catalog.d.ts +70 -0
- package/dist/internal/lib/operation-catalog.js +261 -0
- package/dist/internal/lib/overview-model.d.ts +34 -0
- package/dist/internal/lib/overview-model.js +91 -0
- package/dist/internal/lib/registry-entry.d.ts +8 -0
- package/dist/internal/lib/registry-entry.js +11 -0
- package/dist/internal/lib/repo-name.d.ts +9 -0
- package/dist/internal/lib/repo-name.js +21 -0
- package/dist/internal/lib/run-log-view.d.ts +66 -1
- package/dist/internal/lib/run-log-view.js +183 -4
- package/dist/internal/lib/runner-view.d.ts +15 -0
- package/dist/internal/lib/runner-view.js +18 -0
- package/dist/internal/lib/schema-form-model.d.ts +17 -0
- package/dist/internal/lib/schema-form-model.js +50 -0
- package/dist/internal/lib/setup-checklist.d.ts +34 -0
- package/dist/internal/lib/setup-checklist.js +79 -0
- package/dist/internal/lib/toolbar-context.d.ts +0 -1
- package/dist/internal/lib/toolbar-context.js +0 -2
- package/dist/internal/lib/toolbar-visibility.d.ts +9 -2
- package/dist/internal/lib/toolbar-visibility.js +5 -0
- package/dist/internal/lib/use-operation-effects.d.ts +7 -0
- package/dist/internal/lib/use-operation-effects.js +28 -0
- package/dist/internal/lib/use-run-log-query.d.ts +9 -0
- package/dist/internal/lib/use-run-log-query.js +35 -0
- package/dist/internal/lib/widget-grid-gaps.d.ts +18 -0
- package/dist/internal/lib/widget-grid-gaps.js +41 -0
- package/dist/internal/lib/workflow-summary.d.ts +54 -0
- package/dist/internal/lib/workflow-summary.js +147 -0
- package/dist/internal/routes/console-home-page.js +2 -1
- package/dist/internal/routes/experience-connect-page.js +46 -17
- package/dist/internal/routes/experience-layout-page.js +75 -26
- package/dist/internal/routes/experience-page-host.js +63 -5
- package/dist/internal/routes/experience-review-queue-page.d.ts +4 -1
- package/dist/internal/routes/experience-review-queue-page.js +108 -12
- package/dist/internal/routes/experience-runs-page.js +57 -4
- package/dist/internal/routes/experience-summary-page.d.ts +19 -0
- package/dist/internal/routes/experience-summary-page.js +212 -52
- package/dist/internal/routes/experience-widget-page.js +58 -7
- package/dist/internal/routes/experience-widgets-page.d.ts +2 -3
- package/dist/internal/routes/experience-widgets-page.js +29 -4
- package/dist/internal/routes/experience-workflow-page.js +81 -9
- package/dist/internal/routes/experience-workflows-page.js +85 -21
- package/dist/internal/routes/integration-layout.js +28 -3
- package/dist/internal/routes/integrations-connect-page.js +16 -6
- package/dist/internal/routes/integrations-events-page.js +22 -1
- package/dist/internal/routes/integrations-health-page.js +16 -1
- package/dist/internal/routes/integrations-layout.js +28 -4
- package/dist/internal/routes/integrations-list-page.d.ts +0 -1
- package/dist/internal/routes/integrations-list-page.js +11 -9
- package/dist/internal/routes/integrations-operation-page.js +53 -17
- package/dist/internal/routes/integrations-operations-page.js +539 -49
- package/dist/internal/routes/integrations-overview-page.js +332 -69
- package/dist/internal/routes/integrations-runs-page.js +53 -3
- package/dist/internal/routes/integrations-scope.d.ts +15 -2
- package/dist/internal/routes/integrations-scope.js +66 -18
- package/dist/internal/routes/preview-index-page.js +2 -2
- package/dist/internal/routes/repo-home-page.d.ts +2 -2
- package/dist/internal/routes/repo-home-page.js +428 -236
- package/dist/internal/routes/repo-layout.d.ts +12 -0
- package/dist/internal/routes/repo-layout.js +50 -38
- package/dist/internal/routes/repo-package-layouts.js +22 -8
- package/dist/internal/routes/single-widget-page.d.ts +1 -1
- package/dist/internal/routes/single-widget-page.js +28 -5
- package/dist/internal/routes/tile-page.d.ts +1 -1
- package/dist/internal/routes/tile-page.js +1 -2
- package/dist/internal/routes/widgets-page.d.ts +1 -1
- package/dist/internal/routes/widgets-page.js +5 -3
- package/dist/registry.d.ts +4 -5
- package/dist/registry.js +0 -1
- package/dist/routes.d.ts +5 -0
- package/dist/routes.js +2 -0
- package/package.json +8 -8
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { IntegrationScopeValue } from '../routes/integrations-scope.js';
|
|
3
|
+
/**
|
|
4
|
+
* `IntegrationScope` for the operations screens: the same `[slug]` resolution
|
|
5
|
+
* and 404, with a skeleton shaped like the screen while it loads and no page
|
|
6
|
+
* heading of its own, so each screen writes its own.
|
|
7
|
+
*/
|
|
8
|
+
export declare function OperationScope({ skeleton, children, }: {
|
|
9
|
+
skeleton: ReactNode;
|
|
10
|
+
children: (scope: IntegrationScopeValue) => ReactNode;
|
|
11
|
+
}): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
12
|
+
export declare function OperationListSkeleton(): import("react").JSX.Element;
|
|
13
|
+
export declare function OperationRunnerSkeleton(): import("react").JSX.Element;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useParams } from "next/navigation";
|
|
4
|
+
import { Alert, AlertDescription, AlertTitle } from "@ekanos/ui/alert";
|
|
5
|
+
import { Skeleton } from "@ekanos/ui/skeleton";
|
|
6
|
+
import { useContract, useProject } from "../lib/console-hooks.js";
|
|
7
|
+
import { integrationForSlug } from "../lib/integration-console-href.js";
|
|
8
|
+
import { IntegrationNotFound } from "./console-not-found.js";
|
|
9
|
+
function OperationScope({
|
|
10
|
+
skeleton,
|
|
11
|
+
children
|
|
12
|
+
}) {
|
|
13
|
+
const { slug } = useParams();
|
|
14
|
+
const project = useProject();
|
|
15
|
+
const integration = project.data ? integrationForSlug(project.data.integrations, slug) : void 0;
|
|
16
|
+
const contract = useContract(integration?.integration ?? slug, {
|
|
17
|
+
enabled: integration !== void 0
|
|
18
|
+
});
|
|
19
|
+
if (project.data && !integration) return /* @__PURE__ */ jsx(IntegrationNotFound, { slug });
|
|
20
|
+
if (integration && contract.isError) {
|
|
21
|
+
return /* @__PURE__ */ jsxs(Alert, { variant: "destructive", "data-test": "contract-error", children: [
|
|
22
|
+
/* @__PURE__ */ jsxs(AlertTitle, { children: [
|
|
23
|
+
"Could not load the ",
|
|
24
|
+
slug,
|
|
25
|
+
" contract"
|
|
26
|
+
] }),
|
|
27
|
+
/* @__PURE__ */ jsxs(AlertDescription, { children: [
|
|
28
|
+
contract.error.message,
|
|
29
|
+
". Check the terminal running",
|
|
30
|
+
" ",
|
|
31
|
+
/* @__PURE__ */ jsx("code", { children: "ekanos dev" }),
|
|
32
|
+
" for the error, then reload this page."
|
|
33
|
+
] })
|
|
34
|
+
] });
|
|
35
|
+
}
|
|
36
|
+
if (!project.data || !integration || !contract.data) {
|
|
37
|
+
return /* @__PURE__ */ jsx("div", { "aria-busy": "true", "aria-label": "Loading", "data-test": "operations-loading", children: skeleton });
|
|
38
|
+
}
|
|
39
|
+
return children({
|
|
40
|
+
project: project.data,
|
|
41
|
+
integration,
|
|
42
|
+
contract: contract.data
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function OperationListSkeleton() {
|
|
46
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
47
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-40" }),
|
|
48
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-96 max-w-full" }),
|
|
49
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-3", children: [
|
|
50
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-full max-w-md" }),
|
|
51
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-48" })
|
|
52
|
+
] }),
|
|
53
|
+
[0, 1].map((group) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 rounded-lg border p-3", children: [
|
|
54
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-32" }),
|
|
55
|
+
[0, 1, 2, 3].map((row) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
56
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-16" }),
|
|
57
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-40" }),
|
|
58
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 flex-1" })
|
|
59
|
+
] }, row))
|
|
60
|
+
] }, group))
|
|
61
|
+
] });
|
|
62
|
+
}
|
|
63
|
+
function OperationRunnerSkeleton() {
|
|
64
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
65
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" }),
|
|
66
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-64" }),
|
|
67
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full max-w-2xl" }),
|
|
68
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-14 w-full" }),
|
|
69
|
+
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 lg:grid-cols-2", children: [
|
|
70
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-64" }),
|
|
71
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-64" })
|
|
72
|
+
] })
|
|
73
|
+
] });
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
OperationListSkeleton,
|
|
77
|
+
OperationRunnerSkeleton,
|
|
78
|
+
OperationScope
|
|
79
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** A stack of row-shaped placeholders, for any list that is still loading. */
|
|
2
|
+
export declare function RowsSkeleton({ rows, label, }: {
|
|
3
|
+
rows?: number;
|
|
4
|
+
label?: string;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
/** A page heading and a block of rows: the shape of most console tabs. */
|
|
7
|
+
export declare function PageSkeleton({ label }: {
|
|
8
|
+
label?: string;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
/** The console header and tabs while the project loads. */
|
|
11
|
+
export declare function HeaderSkeleton(): import("react").JSX.Element;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Skeleton } from "@ekanos/ui/skeleton";
|
|
3
|
+
function RowsSkeleton({
|
|
4
|
+
rows = 3,
|
|
5
|
+
label = "Loading"
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
className: "flex flex-col gap-3",
|
|
11
|
+
role: "status",
|
|
12
|
+
"aria-label": label,
|
|
13
|
+
"data-test": "rows-skeleton",
|
|
14
|
+
children: Array.from({ length: rows }, (_, index) => /* @__PURE__ */ jsxs(
|
|
15
|
+
"div",
|
|
16
|
+
{
|
|
17
|
+
className: "flex items-center gap-4 rounded-lg border p-4",
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "size-8 rounded-full" }),
|
|
20
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-2", children: [
|
|
21
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-1/3" }),
|
|
22
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-2/3" })
|
|
23
|
+
] }),
|
|
24
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-20" })
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
index
|
|
28
|
+
))
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
function PageSkeleton({ label = "Loading" }) {
|
|
33
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", "data-test": "page-skeleton", children: [
|
|
34
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
35
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-48" }),
|
|
36
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-80 max-w-full" })
|
|
37
|
+
] }),
|
|
38
|
+
/* @__PURE__ */ jsx(RowsSkeleton, { label })
|
|
39
|
+
] });
|
|
40
|
+
}
|
|
41
|
+
function HeaderSkeleton() {
|
|
42
|
+
return /* @__PURE__ */ jsxs(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
className: "flex flex-col gap-3 border-b px-4 pt-4 pb-3 sm:px-6",
|
|
46
|
+
role: "status",
|
|
47
|
+
"aria-label": "Loading project",
|
|
48
|
+
"data-test": "header-skeleton",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32" }),
|
|
51
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-56" }),
|
|
52
|
+
/* @__PURE__ */ jsx("div", { className: "flex gap-2", children: Array.from({ length: 5 }, (_, index) => /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-24" }, index)) })
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
HeaderSkeleton,
|
|
59
|
+
PageSkeleton,
|
|
60
|
+
RowsSkeleton
|
|
61
|
+
};
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import type { ConsoleIntegration } from '../lib/console-types.js';
|
|
2
2
|
export declare function localIntegrations(integrations: readonly ConsoleIntegration[]): ConsoleIntegration[];
|
|
3
|
-
/**
|
|
3
|
+
/** Where the integrations run from, in one sentence: this repo, the registry, or both. */
|
|
4
4
|
export declare function publishedSummary(integrations: readonly ConsoleIntegration[]): string;
|
|
5
|
+
/** The chip's short label for the same fact. */
|
|
6
|
+
export declare function provenanceChipLabel(integrations: readonly ConsoleIntegration[]): string;
|
|
5
7
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
|
|
8
|
+
* The quiet provenance fact for the header: where the integrations come from,
|
|
9
|
+
* with the full sentence in a tooltip. Nothing to act on, so nothing louder.
|
|
10
|
+
*/
|
|
11
|
+
export declare function ProvenanceChip({ integrations, }: {
|
|
12
|
+
integrations: readonly ConsoleIntegration[];
|
|
13
|
+
}): import("react").JSX.Element | null;
|
|
14
|
+
/**
|
|
15
|
+
* Portals into the toolbar's sticky strip when one is mounted, so the warning
|
|
16
|
+
* stays in view while you scroll; renders in place when there is no toolbar
|
|
17
|
+
* (tests, an embedded console).
|
|
9
18
|
*/
|
|
10
19
|
export declare function ProvenanceBanner({ integrations, }: {
|
|
11
20
|
integrations: readonly ConsoleIntegration[];
|
|
@@ -3,8 +3,11 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { createPortal } from "react-dom";
|
|
4
4
|
import { Alert, AlertDescription, AlertTitle } from "@ekanos/ui/alert";
|
|
5
5
|
import { Icon } from "@ekanos/ui/icon";
|
|
6
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "@ekanos/ui/tooltip";
|
|
7
|
+
import { cn } from "@ekanos/ui/utils";
|
|
6
8
|
import { useChromeSlot } from "../lib/chrome-slot.js";
|
|
7
9
|
import { describeProvenance, shortDigest } from "./integration-badge.js";
|
|
10
|
+
import { FOCUS_RING } from "./scrollable-nav.js";
|
|
8
11
|
function localIntegrations(integrations) {
|
|
9
12
|
return integrations.filter(
|
|
10
13
|
(integration) => integration.provenance.kind === "local" && integration.provenance.scope !== "repo" && !integration.own
|
|
@@ -30,24 +33,44 @@ function publishedSummary(integrations) {
|
|
|
30
33
|
}
|
|
31
34
|
return `${plural(inRepo)} run from this repo, ${fromRegistry} resolved from the registry.`;
|
|
32
35
|
}
|
|
33
|
-
function
|
|
36
|
+
function provenanceChipLabel(integrations) {
|
|
37
|
+
const summary = publishedSummary(integrations);
|
|
38
|
+
if (summary === "Running from this repo.") return "From this repo";
|
|
39
|
+
if (summary.startsWith("All ")) return "From the registry";
|
|
40
|
+
if (summary === "No integrations.") return "No integrations";
|
|
41
|
+
return "Repo and registry";
|
|
42
|
+
}
|
|
43
|
+
function ProvenanceChip({
|
|
34
44
|
integrations
|
|
35
45
|
}) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
46
|
+
if (localIntegrations(integrations).length > 0) return null;
|
|
47
|
+
return /* @__PURE__ */ jsxs(Tooltip, { children: [
|
|
48
|
+
/* @__PURE__ */ jsxs(
|
|
49
|
+
TooltipTrigger,
|
|
40
50
|
{
|
|
41
|
-
className:
|
|
42
|
-
|
|
51
|
+
className: cn(
|
|
52
|
+
"text-muted-foreground hover:text-foreground flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs",
|
|
53
|
+
FOCUS_RING
|
|
54
|
+
),
|
|
55
|
+
"data-test": "provenance-chip",
|
|
43
56
|
"data-state": "published",
|
|
44
57
|
children: [
|
|
45
58
|
/* @__PURE__ */ jsx(Icon, { name: "cloud", className: "h-3 w-3" }),
|
|
46
|
-
|
|
59
|
+
provenanceChipLabel(integrations)
|
|
47
60
|
]
|
|
48
61
|
}
|
|
49
|
-
)
|
|
50
|
-
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ jsxs(TooltipContent, { children: [
|
|
64
|
+
publishedSummary(integrations),
|
|
65
|
+
" No local overrides, so this can be published as it is."
|
|
66
|
+
] })
|
|
67
|
+
] });
|
|
68
|
+
}
|
|
69
|
+
function BannerBody({
|
|
70
|
+
integrations
|
|
71
|
+
}) {
|
|
72
|
+
const locals = localIntegrations(integrations);
|
|
73
|
+
if (locals.length === 0) return null;
|
|
51
74
|
return /* @__PURE__ */ jsxs(
|
|
52
75
|
Alert,
|
|
53
76
|
{
|
|
@@ -102,6 +125,8 @@ function ProvenanceBanner({
|
|
|
102
125
|
}
|
|
103
126
|
export {
|
|
104
127
|
ProvenanceBanner,
|
|
128
|
+
ProvenanceChip,
|
|
105
129
|
localIntegrations,
|
|
130
|
+
provenanceChipLabel,
|
|
106
131
|
publishedSummary
|
|
107
132
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copies `value` and says so. The kit's `CopyButton` is not published to
|
|
3
|
+
* partners, so the harness composes its own from `Button` and `Icon`.
|
|
4
|
+
*/
|
|
5
|
+
export declare function RunLogCopyButton({ value, label, className, }: {
|
|
6
|
+
value: string;
|
|
7
|
+
/** What is copied, for the accessible name: "Copy run id". */
|
|
8
|
+
label: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
11
|
+
/** Formatted JSON in a scrollable well, with a copy key in its corner. */
|
|
12
|
+
export declare function RunLogJsonBlock({ value, label, className, testId, }: {
|
|
13
|
+
value: unknown;
|
|
14
|
+
label: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
testId?: string;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { Button } from "@ekanos/ui/button";
|
|
5
|
+
import { Icon } from "@ekanos/ui/icon";
|
|
6
|
+
import { cn } from "@ekanos/ui/utils";
|
|
7
|
+
function RunLogCopyButton({
|
|
8
|
+
value,
|
|
9
|
+
label,
|
|
10
|
+
className
|
|
11
|
+
}) {
|
|
12
|
+
const [state, setState] = useState("idle");
|
|
13
|
+
const copy = async () => {
|
|
14
|
+
try {
|
|
15
|
+
await navigator.clipboard.writeText(value);
|
|
16
|
+
setState("copied");
|
|
17
|
+
} catch (error) {
|
|
18
|
+
console.error("[harness] copy to clipboard failed", error);
|
|
19
|
+
setState("failed");
|
|
20
|
+
}
|
|
21
|
+
window.setTimeout(() => setState("idle"), 1600);
|
|
22
|
+
};
|
|
23
|
+
return /* @__PURE__ */ jsx(
|
|
24
|
+
Button,
|
|
25
|
+
{
|
|
26
|
+
type: "button",
|
|
27
|
+
variant: "ghost",
|
|
28
|
+
size: "icon-xs",
|
|
29
|
+
className,
|
|
30
|
+
onClick: copy,
|
|
31
|
+
"aria-label": state === "copied" ? "Copied" : `Copy ${label}`,
|
|
32
|
+
title: state === "failed" ? "The browser blocked the clipboard" : void 0,
|
|
33
|
+
"data-test": "copy",
|
|
34
|
+
children: /* @__PURE__ */ jsx(Icon, { name: state === "copied" ? "check" : "copy" })
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
function RunLogJsonBlock({
|
|
39
|
+
value,
|
|
40
|
+
label,
|
|
41
|
+
className,
|
|
42
|
+
testId
|
|
43
|
+
}) {
|
|
44
|
+
const text = typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
45
|
+
return /* @__PURE__ */ jsxs(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
className: cn("bg-muted relative rounded-md", className),
|
|
49
|
+
"data-test": testId,
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ jsx("pre", { className: "max-h-80 overflow-auto p-3 pr-10 font-mono text-xs leading-relaxed", children: text }),
|
|
52
|
+
/* @__PURE__ */ jsx(
|
|
53
|
+
RunLogCopyButton,
|
|
54
|
+
{
|
|
55
|
+
value: text,
|
|
56
|
+
label,
|
|
57
|
+
className: "absolute top-1.5 right-1.5"
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
export {
|
|
65
|
+
RunLogCopyButton,
|
|
66
|
+
RunLogJsonBlock
|
|
67
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type StatusTone } from '@ekanos/ui/status-badge';
|
|
2
|
+
import type { RunRecord } from '../lib/console-types.js';
|
|
3
|
+
import { type RunOutcome } from '../lib/run-log-view.js';
|
|
4
|
+
export declare const OUTCOME_TONES: Record<RunOutcome, StatusTone>;
|
|
5
|
+
/**
|
|
6
|
+
* One run's detail at the side (full width on a phone), with newer/older
|
|
7
|
+
* stepping through the rows as the list shows them. Stepping keeps the row
|
|
8
|
+
* in view behind the sheet; closing returns focus to the row last shown.
|
|
9
|
+
*/
|
|
10
|
+
export declare function RunDetailSheet({ runId, run, position, newer, older, targetHref, onSelect, onClose, }: {
|
|
11
|
+
runId: string | null;
|
|
12
|
+
run: RunRecord | null;
|
|
13
|
+
position: {
|
|
14
|
+
index: number;
|
|
15
|
+
total: number;
|
|
16
|
+
} | null;
|
|
17
|
+
newer: RunRecord | null;
|
|
18
|
+
older: RunRecord | null;
|
|
19
|
+
targetHref: string | null;
|
|
20
|
+
onSelect: (id: string) => void;
|
|
21
|
+
onClose: () => void;
|
|
22
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import Link from "next/link";
|
|
5
|
+
import { Alert, AlertDescription, AlertTitle } from "@ekanos/ui/alert";
|
|
6
|
+
import { Badge } from "@ekanos/ui/badge";
|
|
7
|
+
import { Button } from "@ekanos/ui/button";
|
|
8
|
+
import { Icon } from "@ekanos/ui/icon";
|
|
9
|
+
import {
|
|
10
|
+
Sheet,
|
|
11
|
+
SheetContent,
|
|
12
|
+
SheetDescription,
|
|
13
|
+
SheetFooter,
|
|
14
|
+
SheetHeader,
|
|
15
|
+
SheetTitle
|
|
16
|
+
} from "@ekanos/ui/sheet";
|
|
17
|
+
import { StatusBadge } from "@ekanos/ui/status-badge";
|
|
18
|
+
import {
|
|
19
|
+
MODE_WORDS,
|
|
20
|
+
RUN_OUTCOME_LABELS,
|
|
21
|
+
describeRunSource,
|
|
22
|
+
explainRun,
|
|
23
|
+
formatBytes,
|
|
24
|
+
formatDuration,
|
|
25
|
+
runKind,
|
|
26
|
+
runOutcome
|
|
27
|
+
} from "../lib/run-log-view.js";
|
|
28
|
+
import { RunLogCopyButton, RunLogJsonBlock } from "./run-log-copy.js";
|
|
29
|
+
const OUTCOME_TONES = {
|
|
30
|
+
ok: "success",
|
|
31
|
+
refused: "destructive",
|
|
32
|
+
failed: "destructive",
|
|
33
|
+
held: "warning"
|
|
34
|
+
};
|
|
35
|
+
function Fact({
|
|
36
|
+
term,
|
|
37
|
+
children,
|
|
38
|
+
testId
|
|
39
|
+
}) {
|
|
40
|
+
return /* @__PURE__ */ jsxs(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
className: "grid grid-cols-1 gap-0.5 py-2 sm:grid-cols-[8rem_1fr] sm:gap-3",
|
|
44
|
+
"data-test": testId,
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ jsx("dt", { className: "text-muted-foreground text-xs sm:text-sm", children: term }),
|
|
47
|
+
/* @__PURE__ */ jsx("dd", { className: "min-w-0 text-sm break-words", children })
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
function fullTime(ts) {
|
|
53
|
+
return new Date(ts).toLocaleString(void 0, {
|
|
54
|
+
weekday: "short",
|
|
55
|
+
month: "short",
|
|
56
|
+
day: "numeric",
|
|
57
|
+
hour: "numeric",
|
|
58
|
+
minute: "2-digit",
|
|
59
|
+
second: "2-digit"
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function RunFailure({ run }) {
|
|
63
|
+
const outcome = runOutcome(run);
|
|
64
|
+
if (outcome === "ok") return null;
|
|
65
|
+
const explanation = explainRun(run);
|
|
66
|
+
return /* @__PURE__ */ jsxs(
|
|
67
|
+
Alert,
|
|
68
|
+
{
|
|
69
|
+
variant: outcome === "held" ? "warning" : "destructive",
|
|
70
|
+
"data-test": "run-detail-failure",
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ jsx(Icon, { name: outcome === "held" ? "pause-circle" : "warning-circle" }),
|
|
73
|
+
/* @__PURE__ */ jsx(AlertTitle, { children: outcome === "held" ? "Held: the write did not run" : outcome === "failed" ? "Failed while running" : "Refused before it ran" }),
|
|
74
|
+
/* @__PURE__ */ jsxs(AlertDescription, { className: "flex flex-col gap-1.5", children: [
|
|
75
|
+
explanation ? /* @__PURE__ */ jsx("p", { children: explanation }) : null,
|
|
76
|
+
run.reason ? /* @__PURE__ */ jsxs("p", { className: "text-xs", children: [
|
|
77
|
+
"Code ",
|
|
78
|
+
/* @__PURE__ */ jsx("code", { className: "font-mono", children: run.reason })
|
|
79
|
+
] }) : null,
|
|
80
|
+
run.detail ? /* @__PURE__ */ jsx(
|
|
81
|
+
"pre",
|
|
82
|
+
{
|
|
83
|
+
className: "bg-muted text-foreground max-h-48 overflow-auto rounded-md p-2 font-mono text-xs whitespace-pre-wrap",
|
|
84
|
+
"data-test": "run-detail-error",
|
|
85
|
+
children: run.detail
|
|
86
|
+
}
|
|
87
|
+
) : null
|
|
88
|
+
] })
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
function RunDetailBody({
|
|
94
|
+
run,
|
|
95
|
+
position,
|
|
96
|
+
newer,
|
|
97
|
+
older,
|
|
98
|
+
onSelect,
|
|
99
|
+
targetHref
|
|
100
|
+
}) {
|
|
101
|
+
const outcome = runOutcome(run);
|
|
102
|
+
const kind = runKind(run);
|
|
103
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
104
|
+
/* @__PURE__ */ jsxs(SheetHeader, { className: "gap-2 border-b pr-14", children: [
|
|
105
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
106
|
+
/* @__PURE__ */ jsx(
|
|
107
|
+
StatusBadge,
|
|
108
|
+
{
|
|
109
|
+
tone: OUTCOME_TONES[outcome],
|
|
110
|
+
"data-test": "run-detail-status",
|
|
111
|
+
children: RUN_OUTCOME_LABELS[outcome]
|
|
112
|
+
}
|
|
113
|
+
),
|
|
114
|
+
kind === "event" ? /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "Test event" }) : null
|
|
115
|
+
] }),
|
|
116
|
+
/* @__PURE__ */ jsx(SheetTitle, { className: "font-mono text-base break-all", children: run.opKey }),
|
|
117
|
+
/* @__PURE__ */ jsxs(SheetDescription, { children: [
|
|
118
|
+
run.integration,
|
|
119
|
+
run.version ? `@${run.version}` : "",
|
|
120
|
+
" \xB7 ",
|
|
121
|
+
fullTime(run.ts)
|
|
122
|
+
] }),
|
|
123
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 pt-1", children: [
|
|
124
|
+
/* @__PURE__ */ jsxs(
|
|
125
|
+
Button,
|
|
126
|
+
{
|
|
127
|
+
type: "button",
|
|
128
|
+
variant: "outline",
|
|
129
|
+
size: "sm",
|
|
130
|
+
disabled: !newer,
|
|
131
|
+
onClick: () => newer && onSelect(newer.id),
|
|
132
|
+
"data-test": "run-detail-newer",
|
|
133
|
+
children: [
|
|
134
|
+
/* @__PURE__ */ jsx(Icon, { name: "caret-up" }),
|
|
135
|
+
"Newer"
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
/* @__PURE__ */ jsxs(
|
|
140
|
+
Button,
|
|
141
|
+
{
|
|
142
|
+
type: "button",
|
|
143
|
+
variant: "outline",
|
|
144
|
+
size: "sm",
|
|
145
|
+
disabled: !older,
|
|
146
|
+
onClick: () => older && onSelect(older.id),
|
|
147
|
+
"data-test": "run-detail-older",
|
|
148
|
+
children: [
|
|
149
|
+
/* @__PURE__ */ jsx(Icon, { name: "caret-down" }),
|
|
150
|
+
"Older"
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
),
|
|
154
|
+
position ? /* @__PURE__ */ jsxs(
|
|
155
|
+
"span",
|
|
156
|
+
{
|
|
157
|
+
className: "text-muted-foreground ml-auto text-xs tabular-nums",
|
|
158
|
+
"data-test": "run-detail-position",
|
|
159
|
+
children: [
|
|
160
|
+
position.index + 1,
|
|
161
|
+
" of ",
|
|
162
|
+
position.total
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
) : null
|
|
166
|
+
] })
|
|
167
|
+
] }),
|
|
168
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-h-0 flex-1 flex-col gap-5 overflow-y-auto px-4 pt-4", children: [
|
|
169
|
+
/* @__PURE__ */ jsx(RunFailure, { run }),
|
|
170
|
+
/* @__PURE__ */ jsxs("dl", { className: "divide-y", "data-test": "run-detail-facts", children: [
|
|
171
|
+
/* @__PURE__ */ jsx(Fact, { term: "Duration", children: /* @__PURE__ */ jsx("span", { className: "tabular-nums", children: kind === "event" ? "Not timed" : formatDuration(run.durationMs) }) }),
|
|
172
|
+
/* @__PURE__ */ jsx(Fact, { term: "Mode", children: !run.mode ? "Not chosen: refused first" : kind === "event" ? run.mode === "live" ? "Live: a valid payload goes to the webhook handler" : "Fixtures: the payload was checked, no handler ran" : MODE_WORDS[run.mode] }),
|
|
173
|
+
/* @__PURE__ */ jsxs(Fact, { term: "Came from", testId: "run-detail-source", children: [
|
|
174
|
+
describeRunSource(run),
|
|
175
|
+
/* @__PURE__ */ jsxs("span", { className: "text-muted-foreground block font-mono text-xs", children: [
|
|
176
|
+
run.channel,
|
|
177
|
+
run.origin ? ` \xB7 ${run.origin}` : ""
|
|
178
|
+
] })
|
|
179
|
+
] }),
|
|
180
|
+
run.effect ? /* @__PURE__ */ jsx(Fact, { term: "Effect", children: run.effect === "write" ? "Write: changes data" : "Read only" }) : null,
|
|
181
|
+
run.provenance ? /* @__PURE__ */ jsx(Fact, { term: "Integration code", children: run.provenance === "local" ? "Local package in this repo" : "Published package from the registry" }) : null,
|
|
182
|
+
/* @__PURE__ */ jsx(Fact, { term: kind === "event" ? "Payload" : "Input", children: /* @__PURE__ */ jsx("span", { className: "tabular-nums", children: formatBytes(run.inputBytes) }) }),
|
|
183
|
+
kind === "operation" ? /* @__PURE__ */ jsx(Fact, { term: "Output", children: /* @__PURE__ */ jsx("span", { className: "tabular-nums", children: formatBytes(run.outputBytes) }) }) : null,
|
|
184
|
+
run.approvalId ? /* @__PURE__ */ jsx(Fact, { term: "Approval", children: /* @__PURE__ */ jsx("code", { className: "font-mono text-xs", children: run.approvalId }) }) : null,
|
|
185
|
+
/* @__PURE__ */ jsx(Fact, { term: "Run id", children: /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1", children: [
|
|
186
|
+
/* @__PURE__ */ jsx("code", { className: "truncate font-mono text-xs", children: run.id }),
|
|
187
|
+
/* @__PURE__ */ jsx(RunLogCopyButton, { value: run.id, label: "run id" })
|
|
188
|
+
] }) })
|
|
189
|
+
] }),
|
|
190
|
+
/* @__PURE__ */ jsxs(
|
|
191
|
+
"p",
|
|
192
|
+
{
|
|
193
|
+
className: "text-muted-foreground text-xs",
|
|
194
|
+
"data-test": "run-detail-payload-note",
|
|
195
|
+
children: [
|
|
196
|
+
"The run log keeps sizes, never the",
|
|
197
|
+
" ",
|
|
198
|
+
kind === "event" ? "payload" : "input or output",
|
|
199
|
+
" or any credential, so it is safe to screenshot and share. To see the",
|
|
200
|
+
kind === "event" ? " result" : " response",
|
|
201
|
+
", run it again",
|
|
202
|
+
targetHref ? " from the link below" : "",
|
|
203
|
+
"."
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
),
|
|
207
|
+
/* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-2 pb-2", children: [
|
|
208
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-medium", children: "Log entry" }),
|
|
209
|
+
/* @__PURE__ */ jsx(
|
|
210
|
+
RunLogJsonBlock,
|
|
211
|
+
{
|
|
212
|
+
value: run,
|
|
213
|
+
label: "log entry",
|
|
214
|
+
testId: "run-detail-raw"
|
|
215
|
+
}
|
|
216
|
+
)
|
|
217
|
+
] })
|
|
218
|
+
] }),
|
|
219
|
+
targetHref ? /* @__PURE__ */ jsx(SheetFooter, { className: "border-t sm:flex-row sm:justify-end", children: /* @__PURE__ */ jsxs(
|
|
220
|
+
Button,
|
|
221
|
+
{
|
|
222
|
+
nativeButton: false,
|
|
223
|
+
render: /* @__PURE__ */ jsx(Link, { href: targetHref }),
|
|
224
|
+
"data-test": "run-detail-open",
|
|
225
|
+
children: [
|
|
226
|
+
/* @__PURE__ */ jsx(Icon, { name: kind === "event" ? "lightning" : "play" }),
|
|
227
|
+
kind === "event" ? "Open on the Events tab" : "Open in runner"
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
) }) : null
|
|
231
|
+
] });
|
|
232
|
+
}
|
|
233
|
+
function rowLink(id) {
|
|
234
|
+
if (!id || typeof document === "undefined") return null;
|
|
235
|
+
return document.querySelector(
|
|
236
|
+
`[data-test="run-log-row"][data-run-id="${CSS.escape(id)}"] [data-test="run-log-open"]`
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
function RunDetailSheet({
|
|
240
|
+
runId,
|
|
241
|
+
run,
|
|
242
|
+
position,
|
|
243
|
+
newer,
|
|
244
|
+
older,
|
|
245
|
+
targetHref,
|
|
246
|
+
onSelect,
|
|
247
|
+
onClose
|
|
248
|
+
}) {
|
|
249
|
+
const [shown, setShown] = useState(runId);
|
|
250
|
+
if (runId !== null && runId !== shown) setShown(runId);
|
|
251
|
+
const step = (id) => {
|
|
252
|
+
onSelect(id);
|
|
253
|
+
requestAnimationFrame(
|
|
254
|
+
() => rowLink(id)?.closest("tr")?.scrollIntoView({ block: "nearest" })
|
|
255
|
+
);
|
|
256
|
+
};
|
|
257
|
+
return /* @__PURE__ */ jsx(
|
|
258
|
+
Sheet,
|
|
259
|
+
{
|
|
260
|
+
open: runId !== null,
|
|
261
|
+
onOpenChange: (open) => {
|
|
262
|
+
if (!open) onClose();
|
|
263
|
+
},
|
|
264
|
+
children: /* @__PURE__ */ jsx(
|
|
265
|
+
SheetContent,
|
|
266
|
+
{
|
|
267
|
+
side: "right",
|
|
268
|
+
size: "lg",
|
|
269
|
+
mobile: "full",
|
|
270
|
+
finalFocus: () => rowLink(shown) ?? true,
|
|
271
|
+
className: "gap-0 data-[side=right]:w-full data-[side=right]:sm:w-3/4 data-[side=right]:sm:max-w-xl",
|
|
272
|
+
"data-test": "run-detail",
|
|
273
|
+
children: run ? /* @__PURE__ */ jsx(
|
|
274
|
+
RunDetailBody,
|
|
275
|
+
{
|
|
276
|
+
run,
|
|
277
|
+
position,
|
|
278
|
+
newer,
|
|
279
|
+
older,
|
|
280
|
+
onSelect: step,
|
|
281
|
+
targetHref
|
|
282
|
+
}
|
|
283
|
+
) : /* @__PURE__ */ jsxs(SheetHeader, { children: [
|
|
284
|
+
/* @__PURE__ */ jsx(SheetTitle, { children: "This run is no longer in the log" }),
|
|
285
|
+
/* @__PURE__ */ jsx(SheetDescription, { children: "The dev server keeps the latest runs in memory and forgets them when it restarts. Close this and pick a run from the list." })
|
|
286
|
+
] })
|
|
287
|
+
}
|
|
288
|
+
)
|
|
289
|
+
}
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
export {
|
|
293
|
+
OUTCOME_TONES,
|
|
294
|
+
RunDetailSheet
|
|
295
|
+
};
|