@ekanos/harness 0.22.0 → 0.24.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 +5 -4
- package/dist/internal/components/approvals-tray.js +5 -5
- package/dist/internal/components/ask-assistant-bridge.js +6 -6
- package/dist/internal/components/connect-panel.js +16 -9
- package/dist/internal/components/connection-chip.js +2 -2
- package/dist/internal/components/dashboard-grid.js +1 -1
- package/dist/internal/components/dev-toolbar.js +5 -5
- package/dist/internal/components/docs-link.js +3 -3
- package/dist/internal/components/events-panel.js +11 -11
- package/dist/internal/components/health-panel.js +3 -10
- package/dist/internal/components/integration-badge.js +3 -3
- package/dist/internal/components/local-oauth-panel.js +14 -14
- package/dist/internal/components/operation-runner-panel.d.ts +3 -1
- package/dist/internal/components/operation-runner-panel.js +22 -44
- package/dist/internal/components/provenance-banner.js +3 -3
- package/dist/internal/components/run-log.js +13 -13
- package/dist/internal/components/runtime-strip.js +4 -4
- package/dist/internal/components/schema-form.js +8 -8
- package/dist/internal/components/scrollable-nav.d.ts +1 -1
- package/dist/internal/components/scrollable-nav.js +1 -1
- package/dist/internal/components/surface-nav.js +26 -26
- package/dist/internal/components/viewport-frame.js +1 -1
- package/dist/internal/components/widget-boundary.js +3 -3
- package/dist/internal/components/widget-surface.d.ts +5 -0
- package/dist/internal/components/widget-surface.js +12 -3
- package/dist/internal/components/workflow-runner.js +6 -6
- package/dist/internal/lib/console-context.js +2 -1
- package/dist/internal/lib/console-types.d.ts +4 -3
- package/dist/internal/lib/experience-runtime.d.ts +9 -1
- package/dist/internal/lib/experience-runtime.js +35 -7
- package/dist/internal/lib/run-log-view.js +5 -3
- package/dist/internal/routes/activation-page.js +20 -20
- package/dist/internal/routes/console-home-page.js +1 -1
- package/dist/internal/routes/experience-connect-page.js +12 -12
- package/dist/internal/routes/experience-layout-page.js +6 -6
- package/dist/internal/routes/experience-page-host.js +4 -4
- package/dist/internal/routes/experience-review-queue-page.js +7 -7
- package/dist/internal/routes/experience-runs-page.js +2 -2
- package/dist/internal/routes/experience-summary-page.js +4 -4
- package/dist/internal/routes/experience-widget-page.js +6 -3
- package/dist/internal/routes/experience-widgets-page.js +2 -2
- package/dist/internal/routes/experience-workflow-page.js +3 -3
- package/dist/internal/routes/experience-workflows-page.js +6 -6
- package/dist/internal/routes/integration-layout.js +1 -1
- package/dist/internal/routes/integrations-layout.js +2 -2
- package/dist/internal/routes/integrations-list-page.js +8 -8
- package/dist/internal/routes/integrations-operations-page.js +5 -5
- package/dist/internal/routes/integrations-overview-page.js +4 -4
- package/dist/internal/routes/integrations-runs-page.js +1 -1
- package/dist/internal/routes/integrations-scope.js +2 -2
- package/dist/internal/routes/repo-home-page.js +19 -19
- package/dist/internal/routes/repo-layout.js +4 -4
- package/dist/internal/routes/repo-package-layouts.js +2 -2
- package/dist/internal/routes/root-layout.js +1 -1
- package/dist/internal/routes/single-widget-page.js +5 -2
- package/dist/internal/routes/tile-page.js +8 -8
- package/dist/internal/routes/triggers-page.js +31 -31
- package/dist/internal/routes/widgets-page.js +1 -1
- package/dist/internal/server/ekanos-api-router.js +2 -2
- package/dist/internal/server/integration-resolver.d.ts +6 -0
- package/dist/internal/server/integration-resolver.js +5 -1
- package/dist/internal/server/local-secrets.d.ts +6 -5
- package/dist/internal/server/operation-runner.d.ts +7 -5
- package/dist/internal/server/operation-runner.js +23 -2
- package/dist/internal/surfaces.js +4 -4
- package/dist/mocks/team-account-workspace.js +4 -4
- package/dist/registry.d.ts +9 -2
- package/package.json +14 -14
|
@@ -8,11 +8,11 @@ function ExperienceWorkflowsPage() {
|
|
|
8
8
|
const experience = useExperience();
|
|
9
9
|
const links = useConsoleLinks();
|
|
10
10
|
if (!experience.data && experience.isPending) {
|
|
11
|
-
return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-
|
|
11
|
+
return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: "Loading\u2026" });
|
|
12
12
|
}
|
|
13
13
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", "data-test": "experience-workflows", children: [
|
|
14
|
-
/* @__PURE__ */ jsx("h2", { className: "heading-
|
|
15
|
-
(experience.data?.workflows ?? []).length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-
|
|
14
|
+
/* @__PURE__ */ jsx("h2", { className: "font-heading text-xl font-normal", children: "Workflow templates" }),
|
|
15
|
+
(experience.data?.workflows ?? []).length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: "This experience declares no workflow templates." }) : /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-3", children: (experience.data?.workflows ?? []).map((template) => /* @__PURE__ */ jsxs(
|
|
16
16
|
Card,
|
|
17
17
|
{
|
|
18
18
|
layout: "bleed",
|
|
@@ -23,12 +23,12 @@ function ExperienceWorkflowsPage() {
|
|
|
23
23
|
Link,
|
|
24
24
|
{
|
|
25
25
|
href: `${links.experience}/workflows/${template.id}`,
|
|
26
|
-
className: "text-
|
|
26
|
+
className: "text-sm font-medium hover:underline",
|
|
27
27
|
children: template.title
|
|
28
28
|
}
|
|
29
29
|
),
|
|
30
|
-
template.description ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-
|
|
31
|
-
/* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-
|
|
30
|
+
template.description ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: template.description }) : null,
|
|
31
|
+
/* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-xs", children: [
|
|
32
32
|
template.steps.length,
|
|
33
33
|
" step",
|
|
34
34
|
template.steps.length === 1 ? "" : "s"
|
|
@@ -92,7 +92,7 @@ function EgressMismatchNotice({ mismatch }) {
|
|
|
92
92
|
/* @__PURE__ */ jsx("code", { children: "defineIntegration({ egress })" }),
|
|
93
93
|
":"
|
|
94
94
|
] }),
|
|
95
|
-
/* @__PURE__ */ jsx("ul", { className: "mt-2 flex flex-col gap-1", children: mismatch.undeclared.map((origin) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("code", { className: "text-
|
|
95
|
+
/* @__PURE__ */ jsx("ul", { className: "mt-2 flex flex-col gap-1", children: mismatch.undeclared.map((origin) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("code", { className: "text-sm", children: origin }) }, origin)) }),
|
|
96
96
|
/* @__PURE__ */ jsx("p", { className: "mt-3", children: "The definition is what a reviewer reads and what production enforces, so running live against a wider list would prove nothing about the integration we actually ship. Import the same constant into both \u2014 never retype it \u2014 and this goes away." })
|
|
97
97
|
] })
|
|
98
98
|
] }) });
|
|
@@ -25,7 +25,7 @@ function ConsoleFrame({ children }) {
|
|
|
25
25
|
] }) }) });
|
|
26
26
|
}
|
|
27
27
|
if (!project.data) {
|
|
28
|
-
return /* @__PURE__ */ jsx("main", { className: "text-muted-foreground
|
|
28
|
+
return /* @__PURE__ */ jsx("main", { className: "text-muted-foreground px-6 py-10 text-sm", children: "Loading project\u2026" });
|
|
29
29
|
}
|
|
30
30
|
const own = project.data.integrations[0];
|
|
31
31
|
const registered = own ? registry.find((integration) => integration.slug === own.integration) : void 0;
|
|
@@ -68,7 +68,7 @@ function ConsoleFrame({ children }) {
|
|
|
68
68
|
project.data.notices && project.data.notices.length > 0 ? /* @__PURE__ */ jsx(
|
|
69
69
|
"ul",
|
|
70
70
|
{
|
|
71
|
-
className: "text-muted-foreground
|
|
71
|
+
className: "text-muted-foreground flex flex-col gap-1 text-xs",
|
|
72
72
|
"data-test": "integration-notices",
|
|
73
73
|
children: project.data.notices.map((notice) => /* @__PURE__ */ jsx("li", { children: notice }, notice))
|
|
74
74
|
}
|
|
@@ -11,7 +11,7 @@ function IntegrationsListPage() {
|
|
|
11
11
|
const project = useProject();
|
|
12
12
|
const registry = useOptionalHarnessRegistry();
|
|
13
13
|
if (!project.data) {
|
|
14
|
-
return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-
|
|
14
|
+
return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: "Loading\u2026" });
|
|
15
15
|
}
|
|
16
16
|
const own = project.data.integrations[0];
|
|
17
17
|
if (project.data.kind === "integration" && own) {
|
|
@@ -22,7 +22,7 @@ function IntegrationsListPage() {
|
|
|
22
22
|
);
|
|
23
23
|
const registered = project.data.kind === "integration" ? registry.filter((integration) => !known.has(integration.slug)) : [];
|
|
24
24
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", "data-test": "integrations-list", children: [
|
|
25
|
-
/* @__PURE__ */ jsx("h2", { className: "heading-
|
|
25
|
+
/* @__PURE__ */ jsx("h2", { className: "font-heading text-xl font-normal", children: "Integrations" }),
|
|
26
26
|
registered.length > 0 ? /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-3", "data-test": "registered-integrations", children: registered.map((integration) => /* @__PURE__ */ jsxs(
|
|
27
27
|
Card,
|
|
28
28
|
{
|
|
@@ -34,12 +34,12 @@ function IntegrationsListPage() {
|
|
|
34
34
|
Link,
|
|
35
35
|
{
|
|
36
36
|
href: previewHref(integration.slug),
|
|
37
|
-
className: "text-
|
|
37
|
+
className: "text-sm font-medium hover:underline",
|
|
38
38
|
children: integration.name
|
|
39
39
|
}
|
|
40
40
|
),
|
|
41
|
-
/* @__PURE__ */ jsx("code", { className: "text-muted-foreground text-
|
|
42
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-
|
|
41
|
+
/* @__PURE__ */ jsx("code", { className: "text-muted-foreground text-xs", children: integration.slug }),
|
|
42
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs", children: integration.description })
|
|
43
43
|
]
|
|
44
44
|
},
|
|
45
45
|
integration.slug
|
|
@@ -56,11 +56,11 @@ function IntegrationsListPage() {
|
|
|
56
56
|
Link,
|
|
57
57
|
{
|
|
58
58
|
href: `/integrations/${integration.integration}`,
|
|
59
|
-
className: "text-
|
|
59
|
+
className: "text-sm font-medium hover:underline",
|
|
60
60
|
children: integration.integration
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
/* @__PURE__ */ jsxs("code", { className: "text-muted-foreground text-
|
|
63
|
+
/* @__PURE__ */ jsxs("code", { className: "text-muted-foreground text-xs", children: [
|
|
64
64
|
integration.integration,
|
|
65
65
|
"@",
|
|
66
66
|
integration.version
|
|
@@ -74,7 +74,7 @@ function IntegrationsListPage() {
|
|
|
74
74
|
),
|
|
75
75
|
integration.runModes.map((mode) => /* @__PURE__ */ jsx(RunModeBadge, { mode }, mode))
|
|
76
76
|
] }),
|
|
77
|
-
/* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-
|
|
77
|
+
/* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-xs", children: [
|
|
78
78
|
"integration ",
|
|
79
79
|
/* @__PURE__ */ jsx("code", { children: integration.integration }),
|
|
80
80
|
" \xB7",
|
|
@@ -33,7 +33,7 @@ function IntegrationOperationsPage() {
|
|
|
33
33
|
{
|
|
34
34
|
href: `/integrations/${integration.integration}/operations/${operation.kind}/${operation.name}`,
|
|
35
35
|
className: "break-all hover:underline",
|
|
36
|
-
children: /* @__PURE__ */ jsx("code", { className: "text-
|
|
36
|
+
children: /* @__PURE__ */ jsx("code", { className: "text-sm font-medium", children: key })
|
|
37
37
|
}
|
|
38
38
|
),
|
|
39
39
|
/* @__PURE__ */ jsx(
|
|
@@ -45,13 +45,13 @@ function IntegrationOperationsPage() {
|
|
|
45
45
|
}
|
|
46
46
|
)
|
|
47
47
|
] }),
|
|
48
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-
|
|
48
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground block text-xs break-words whitespace-normal", children: operation.description }),
|
|
49
49
|
operation.opaque.input || operation.opaque.output ? /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "mt-1", children: "opaque" }) : null,
|
|
50
50
|
allowed ? null : /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "mt-1 ml-1", children: "not in this experience's uses" })
|
|
51
51
|
] }),
|
|
52
|
-
/* @__PURE__ */ jsx(TableCell, { className: "text-
|
|
53
|
-
/* @__PURE__ */ jsx(TableCell, { className: "text-
|
|
54
|
-
/* @__PURE__ */ jsx(TableCell, { className: "text-
|
|
52
|
+
/* @__PURE__ */ jsx(TableCell, { className: "text-xs", children: operation.sensitivity }),
|
|
53
|
+
/* @__PURE__ */ jsx(TableCell, { className: "text-xs", children: operation.since ?? "n/a" }),
|
|
54
|
+
/* @__PURE__ */ jsx(TableCell, { className: "text-xs", children: usedBy.length === 0 ? "n/a" : usedBy.map((use) => use.title).join(", ") })
|
|
55
55
|
] }, operation.id);
|
|
56
56
|
}) })
|
|
57
57
|
] }) }) });
|
|
@@ -16,8 +16,8 @@ function Fact({
|
|
|
16
16
|
children
|
|
17
17
|
}) {
|
|
18
18
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
19
|
-
/* @__PURE__ */ jsx("dt", { className: "text-muted-foreground text-
|
|
20
|
-
/* @__PURE__ */ jsx("dd", { className: "
|
|
19
|
+
/* @__PURE__ */ jsx("dt", { className: "text-muted-foreground text-xs", children: label }),
|
|
20
|
+
/* @__PURE__ */ jsx("dd", { className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-lg font-semibold", children })
|
|
21
21
|
] });
|
|
22
22
|
}
|
|
23
23
|
function ConnectionFact({ integration }) {
|
|
@@ -41,7 +41,7 @@ function IntegrationOverviewPage() {
|
|
|
41
41
|
/* @__PURE__ */ jsx(
|
|
42
42
|
"span",
|
|
43
43
|
{
|
|
44
|
-
className: "text-muted-foreground text-
|
|
44
|
+
className: "text-muted-foreground text-xs",
|
|
45
45
|
title: provenanceTitle(provenance),
|
|
46
46
|
children: describeProvenance(provenance)
|
|
47
47
|
}
|
|
@@ -73,7 +73,7 @@ function IntegrationOverviewPage() {
|
|
|
73
73
|
/* @__PURE__ */ jsxs(
|
|
74
74
|
"p",
|
|
75
75
|
{
|
|
76
|
-
className: "text-muted-foreground text-
|
|
76
|
+
className: "text-muted-foreground text-xs",
|
|
77
77
|
"data-test": "supported-modes",
|
|
78
78
|
children: [
|
|
79
79
|
"Supports: ",
|
|
@@ -5,7 +5,7 @@ import { RunLog } from "../components/run-log.js";
|
|
|
5
5
|
function IntegrationRunsPage() {
|
|
6
6
|
const { slug } = useParams();
|
|
7
7
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", "data-test": "integration-runs", children: [
|
|
8
|
-
/* @__PURE__ */ jsx("h2", { className: "heading-
|
|
8
|
+
/* @__PURE__ */ jsx("h2", { className: "font-heading text-xl font-normal", children: "Run log" }),
|
|
9
9
|
/* @__PURE__ */ jsx(RunLog, { integration: slug })
|
|
10
10
|
] });
|
|
11
11
|
}
|
|
@@ -23,10 +23,10 @@ function IntegrationScope({
|
|
|
23
23
|
] }) });
|
|
24
24
|
}
|
|
25
25
|
if (!project.data || !integration || !contract.data) {
|
|
26
|
-
return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-
|
|
26
|
+
return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: "Loading\u2026" });
|
|
27
27
|
}
|
|
28
28
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", "data-test": `page-${title}`, children: [
|
|
29
|
-
/* @__PURE__ */ jsx("h2", { className: "heading-
|
|
29
|
+
/* @__PURE__ */ jsx("h2", { className: "font-heading text-xl font-normal", children: title }),
|
|
30
30
|
children({
|
|
31
31
|
project: project.data,
|
|
32
32
|
integration,
|
|
@@ -25,8 +25,8 @@ function Count({
|
|
|
25
25
|
testId
|
|
26
26
|
}) {
|
|
27
27
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", "data-test": testId, children: [
|
|
28
|
-
/* @__PURE__ */ jsx("span", { className: "heading-
|
|
29
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-
|
|
28
|
+
/* @__PURE__ */ jsx("span", { className: "font-heading text-2xl font-semibold tracking-tight", children: value }),
|
|
29
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs", children: label })
|
|
30
30
|
] });
|
|
31
31
|
}
|
|
32
32
|
function HealthCell({ name, live }) {
|
|
@@ -47,7 +47,7 @@ function HealthCell({ name, live }) {
|
|
|
47
47
|
return /* @__PURE__ */ jsx(
|
|
48
48
|
"span",
|
|
49
49
|
{
|
|
50
|
-
className: "text-muted-foreground text-
|
|
50
|
+
className: "text-muted-foreground text-xs",
|
|
51
51
|
"data-test": `health-${name}`,
|
|
52
52
|
children: "Not checked locally"
|
|
53
53
|
}
|
|
@@ -69,7 +69,7 @@ function RepoHomePage() {
|
|
|
69
69
|
const repo = useRepo();
|
|
70
70
|
const queryClient = useQueryClient();
|
|
71
71
|
if (!repo.data) {
|
|
72
|
-
return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-
|
|
72
|
+
return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: "Loading\u2026" });
|
|
73
73
|
}
|
|
74
74
|
const { counts, integrations, experiences } = repo.data;
|
|
75
75
|
const refresh = () => queryClient.invalidateQueries({ queryKey: repoKeys.repo });
|
|
@@ -124,8 +124,8 @@ function RepoHomePage() {
|
|
|
124
124
|
}
|
|
125
125
|
),
|
|
126
126
|
/* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-4", "data-test": "repo-integrations", children: [
|
|
127
|
-
/* @__PURE__ */ jsx("h2", { className: "heading-
|
|
128
|
-
integrations.length === 0 ? /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-
|
|
127
|
+
/* @__PURE__ */ jsx("h2", { className: "font-heading text-xl font-normal", children: "Integrations" }),
|
|
128
|
+
integrations.length === 0 ? /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-sm", children: [
|
|
129
129
|
"No integrations in this repo yet. Run",
|
|
130
130
|
" ",
|
|
131
131
|
/* @__PURE__ */ jsx("code", { children: "ekanos new integration <name>" }),
|
|
@@ -143,18 +143,18 @@ function RepoHomePage() {
|
|
|
143
143
|
Link,
|
|
144
144
|
{
|
|
145
145
|
href: row.consoleHref,
|
|
146
|
-
className: "text-
|
|
146
|
+
className: "text-sm font-medium hover:underline",
|
|
147
147
|
children: row.name
|
|
148
148
|
}
|
|
149
149
|
),
|
|
150
|
-
/* @__PURE__ */ jsxs("code", { className: "text-muted-foreground text-
|
|
150
|
+
/* @__PURE__ */ jsxs("code", { className: "text-muted-foreground text-xs", children: [
|
|
151
151
|
"v",
|
|
152
152
|
row.version
|
|
153
153
|
] }),
|
|
154
154
|
row.contractVersion ? /* @__PURE__ */ jsxs(
|
|
155
155
|
"code",
|
|
156
156
|
{
|
|
157
|
-
className: "text-muted-foreground text-
|
|
157
|
+
className: "text-muted-foreground text-xs",
|
|
158
158
|
"data-test": `contract-${row.name}`,
|
|
159
159
|
children: [
|
|
160
160
|
"contract ",
|
|
@@ -163,9 +163,9 @@ function RepoHomePage() {
|
|
|
163
163
|
}
|
|
164
164
|
) : null,
|
|
165
165
|
/* @__PURE__ */ jsx(ConnectionStatusChip, { connection: row.connection }),
|
|
166
|
-
row.connection && row.connection.facts.kind !== "none" && row.connection.facts.state !== "connected" ? /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-
|
|
166
|
+
row.connection && row.connection.facts.kind !== "none" && row.connection.facts.state !== "connected" ? /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs", children: CONNECTION_TYPE[row.connection.type] }) : null
|
|
167
167
|
] }),
|
|
168
|
-
row.connection ? /* @__PURE__ */ jsxs("dl", { className: "
|
|
168
|
+
row.connection ? /* @__PURE__ */ jsxs("dl", { className: "grid grid-cols-1 gap-x-6 gap-y-1 text-xs sm:grid-cols-[auto_1fr]", children: [
|
|
169
169
|
row.connection.facts.kind !== "none" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
170
170
|
/* @__PURE__ */ jsx("dt", { className: "text-muted-foreground", children: "After publishing" }),
|
|
171
171
|
/* @__PURE__ */ jsx("dd", { "data-test": `levels-${row.name}`, children: levelList(row.connection.levels) })
|
|
@@ -188,7 +188,7 @@ function RepoHomePage() {
|
|
|
188
188
|
row.connection?.detail ? /* @__PURE__ */ jsx(
|
|
189
189
|
"p",
|
|
190
190
|
{
|
|
191
|
-
className: "text-muted-foreground text-
|
|
191
|
+
className: "text-muted-foreground text-xs",
|
|
192
192
|
"data-test": `detail-${row.name}`,
|
|
193
193
|
children: row.connection.detail
|
|
194
194
|
}
|
|
@@ -196,7 +196,7 @@ function RepoHomePage() {
|
|
|
196
196
|
row.error ? /* @__PURE__ */ jsx(
|
|
197
197
|
"p",
|
|
198
198
|
{
|
|
199
|
-
className: "text-destructive text-
|
|
199
|
+
className: "text-destructive text-xs",
|
|
200
200
|
"data-test": `error-${row.name}`,
|
|
201
201
|
children: row.error
|
|
202
202
|
}
|
|
@@ -237,8 +237,8 @@ function RepoHomePage() {
|
|
|
237
237
|
)) })
|
|
238
238
|
] }),
|
|
239
239
|
/* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-4", "data-test": "repo-experiences", children: [
|
|
240
|
-
/* @__PURE__ */ jsx("h2", { className: "heading-
|
|
241
|
-
experiences.length === 0 ? /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-
|
|
240
|
+
/* @__PURE__ */ jsx("h2", { className: "font-heading text-xl font-normal", children: "Experiences" }),
|
|
241
|
+
experiences.length === 0 ? /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground text-sm", children: [
|
|
242
242
|
"No experiences in this repo yet. Run",
|
|
243
243
|
" ",
|
|
244
244
|
/* @__PURE__ */ jsx("code", { children: "ekanos new experience <name>" }),
|
|
@@ -256,16 +256,16 @@ function RepoHomePage() {
|
|
|
256
256
|
Link,
|
|
257
257
|
{
|
|
258
258
|
href: row.viewHref,
|
|
259
|
-
className: "text-
|
|
259
|
+
className: "text-sm font-medium hover:underline",
|
|
260
260
|
children: row.name
|
|
261
261
|
}
|
|
262
262
|
),
|
|
263
|
-
/* @__PURE__ */ jsxs("code", { className: "text-muted-foreground text-
|
|
263
|
+
/* @__PURE__ */ jsxs("code", { className: "text-muted-foreground text-xs", children: [
|
|
264
264
|
"v",
|
|
265
265
|
row.version
|
|
266
266
|
] })
|
|
267
267
|
] }),
|
|
268
|
-
row.error ? /* @__PURE__ */ jsx("p", { className: "text-destructive text-
|
|
268
|
+
row.error ? /* @__PURE__ */ jsx("p", { className: "text-destructive text-xs", children: row.error }) : null,
|
|
269
269
|
/* @__PURE__ */ jsx(
|
|
270
270
|
"ul",
|
|
271
271
|
{
|
|
@@ -277,7 +277,7 @@ function RepoHomePage() {
|
|
|
277
277
|
className: "flex items-center gap-2",
|
|
278
278
|
"data-test": `uses-${row.name}-${used.name}`,
|
|
279
279
|
children: [
|
|
280
|
-
/* @__PURE__ */ jsx("code", { className: "text-
|
|
280
|
+
/* @__PURE__ */ jsx("code", { className: "text-xs", children: used.name }),
|
|
281
281
|
/* @__PURE__ */ jsx(ConnectionStatusChip, { connection: used.connection })
|
|
282
282
|
]
|
|
283
283
|
},
|
|
@@ -8,7 +8,7 @@ import { cn } from "@ekanos/ui/utils";
|
|
|
8
8
|
import { FOCUS_RING, ScrollableNav } from "../components/scrollable-nav.js";
|
|
9
9
|
import { RepoProviders, useRepo } from "../lib/repo-context.js";
|
|
10
10
|
const TABS = [
|
|
11
|
-
{ href: "/", label: "This repo", icon: "fa-
|
|
11
|
+
{ href: "/", label: "This repo", icon: "fa-table-list" }
|
|
12
12
|
];
|
|
13
13
|
function repoName(root) {
|
|
14
14
|
return root.split(/[\\/]/).filter(Boolean).pop() ?? root;
|
|
@@ -19,8 +19,8 @@ function RepoFrame({ children }) {
|
|
|
19
19
|
return /* @__PURE__ */ jsxs("div", { className: "flex min-h-screen flex-col", "data-test": "repo-frame", children: [
|
|
20
20
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 border-b px-4 py-4 sm:px-6", children: [
|
|
21
21
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-baseline gap-3", children: [
|
|
22
|
-
/* @__PURE__ */ jsx("h1", { className: "heading-
|
|
23
|
-
/* @__PURE__ */ jsx("code", { className: "text-muted-foreground text-
|
|
22
|
+
/* @__PURE__ */ jsx("h1", { className: "font-heading text-2xl font-semibold tracking-tight", children: repo.data ? repoName(repo.data.root) : "This repo" }),
|
|
23
|
+
/* @__PURE__ */ jsx("code", { className: "text-muted-foreground text-xs", children: "repo" })
|
|
24
24
|
] }),
|
|
25
25
|
/* @__PURE__ */ jsx(ScrollableNav, { label: "Repo", children: TABS.map((tab) => {
|
|
26
26
|
const active = tab.href === "/" ? pathname === "/" : pathname.startsWith(tab.href);
|
|
@@ -32,7 +32,7 @@ function RepoFrame({ children }) {
|
|
|
32
32
|
className: cn(
|
|
33
33
|
"flex items-center gap-2 rounded-md px-3 py-2 whitespace-nowrap transition-colors",
|
|
34
34
|
FOCUS_RING,
|
|
35
|
-
active ? "bg-accent text-accent-foreground text-
|
|
35
|
+
active ? "bg-accent text-accent-foreground text-sm font-medium" : "text-muted-foreground hover:bg-accent/50 text-sm"
|
|
36
36
|
),
|
|
37
37
|
children: [
|
|
38
38
|
/* @__PURE__ */ jsx(Icon, { name: tab.icon, className: "h-4 w-4" }),
|
|
@@ -41,13 +41,13 @@ function IntegrationScopeLayout({
|
|
|
41
41
|
}) {
|
|
42
42
|
const repo = useRepo();
|
|
43
43
|
if (repo.isError) {
|
|
44
|
-
return /* @__PURE__ */ jsxs("p", { className: "text-destructive
|
|
44
|
+
return /* @__PURE__ */ jsxs("p", { className: "text-destructive px-6 py-10 text-sm", children: [
|
|
45
45
|
"Could not reach the harness server: ",
|
|
46
46
|
repo.error.message
|
|
47
47
|
] });
|
|
48
48
|
}
|
|
49
49
|
if (!repo.data) {
|
|
50
|
-
return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground
|
|
50
|
+
return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground px-6 py-10 text-sm", children: "Loading\u2026" });
|
|
51
51
|
}
|
|
52
52
|
const own = repo.data.integrations.some((row) => row.name === slug);
|
|
53
53
|
const host = own ? null : repo.data.experiences.find(
|
|
@@ -31,7 +31,7 @@ function RootLayout({
|
|
|
31
31
|
"a",
|
|
32
32
|
{
|
|
33
33
|
href: "#main-content",
|
|
34
|
-
className: "bg-background text-foreground
|
|
34
|
+
className: "bg-background text-foreground focus-visible:ring-ring/50 sr-only z-50 rounded-md px-4 py-2 text-sm font-medium focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus-visible:ring-3",
|
|
35
35
|
"data-test": "skip-to-content",
|
|
36
36
|
children: "Skip to content"
|
|
37
37
|
}
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { notFound } from "next/navigation";
|
|
4
4
|
import { findWidget } from "../../registry.js";
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
WidgetSurface,
|
|
7
|
+
withFocusedDefault
|
|
8
|
+
} from "../components/widget-surface.js";
|
|
6
9
|
import { useHarnessIntegration, useHarnessWidgetId } from "../registry-context.js";
|
|
7
10
|
function SingleWidgetPage() {
|
|
8
11
|
const integration = useHarnessIntegration();
|
|
@@ -13,7 +16,7 @@ function SingleWidgetPage() {
|
|
|
13
16
|
return /* @__PURE__ */ jsx("div", { className: "min-w-0", "data-test": "single-widget", children: /* @__PURE__ */ jsx(
|
|
14
17
|
WidgetSurface,
|
|
15
18
|
{
|
|
16
|
-
widgets: [
|
|
19
|
+
widgets: [withFocusedDefault(widget)],
|
|
17
20
|
productSlug: integration.slug
|
|
18
21
|
}
|
|
19
22
|
) });
|
|
@@ -24,10 +24,10 @@ function TilePage() {
|
|
|
24
24
|
return /* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-col gap-6", "data-test": "tile", children: Tile ? /* @__PURE__ */ jsx(ViewportFrame, { children: /* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-4", children: [
|
|
25
25
|
/* @__PURE__ */ jsxs("header", { children: [
|
|
26
26
|
/* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-2.5", children: [
|
|
27
|
-
/* @__PURE__ */ jsx("h2", { className: "text-foreground heading-
|
|
28
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-
|
|
27
|
+
/* @__PURE__ */ jsx("h2", { className: "text-foreground font-heading text-xl font-semibold", children: "Available integrations" }),
|
|
28
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-sm tabular-nums", children: "3" })
|
|
29
29
|
] }),
|
|
30
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground
|
|
30
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-1 max-w-prose text-sm", children: "Your tile in the catalogue grid, with two inert neighbours for scale. Column width, gap and heading come from the real marketplace." })
|
|
31
31
|
] }),
|
|
32
32
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-[repeat(auto-fill,minmax(17rem,1fr))] gap-4", children: [
|
|
33
33
|
/* @__PURE__ */ jsx(
|
|
@@ -40,7 +40,7 @@ function TilePage() {
|
|
|
40
40
|
),
|
|
41
41
|
NEIGHBOURS.map((neighbour) => /* @__PURE__ */ jsx(NeighbourCard, { ...neighbour }, neighbour.name))
|
|
42
42
|
] })
|
|
43
|
-
] }) }) : /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-
|
|
43
|
+
] }) }) : /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: "This integration registers no marketplace tile." }) });
|
|
44
44
|
}
|
|
45
45
|
function NeighbourCard({
|
|
46
46
|
name,
|
|
@@ -55,11 +55,11 @@ function NeighbourCard({
|
|
|
55
55
|
className: "flex h-full flex-col gap-0 p-5 opacity-60",
|
|
56
56
|
children: [
|
|
57
57
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
58
|
-
/* @__PURE__ */ jsx("span", { className: "bg-muted text-muted-foreground
|
|
59
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
58
|
+
/* @__PURE__ */ jsx("span", { className: "bg-muted text-muted-foreground flex h-10 w-10 shrink-0 items-center justify-center rounded-lg text-base font-semibold", children: name.charAt(0) }),
|
|
59
|
+
/* @__PURE__ */ jsx("span", { className: "truncate text-base font-semibold", children: name })
|
|
60
60
|
] }),
|
|
61
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground
|
|
62
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground
|
|
61
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-3 line-clamp-2 text-sm", children: description }),
|
|
62
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground mt-auto pt-4 text-sm", children: vendor })
|
|
63
63
|
]
|
|
64
64
|
}
|
|
65
65
|
);
|