@knpkv/alchemy-console 0.2.1 → 0.3.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 +29 -2
- package/dist/client/assets/empty-creature-D7trC-r-.svg +60 -0
- package/dist/client/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/client/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
- package/dist/client/assets/index-CNQi3IQH.js +58 -0
- package/dist/client/assets/index-CrA-MUdX.css +1 -0
- package/dist/client/index.html +17 -0
- package/dist/presentation/StackListView.d.ts +29 -0
- package/dist/presentation/StackListView.d.ts.map +1 -0
- package/dist/presentation/StackListView.js +72 -0
- package/dist/presentation/StackListView.js.map +1 -0
- package/dist/server/Bootstrap.d.ts +1 -0
- package/dist/server/Bootstrap.d.ts.map +1 -1
- package/dist/server/Bootstrap.js +2 -3
- package/dist/server/Bootstrap.js.map +1 -1
- package/dist/server/HttpApplication.js +1 -1
- package/dist/server/HttpApplication.js.map +1 -1
- package/dist/views/empty-creature.svg +60 -0
- package/dist/views/geist-latin-wght-normal.woff2 +0 -0
- package/dist/views/geist-mono-latin-wght-normal.woff2 +0 -0
- package/dist/views/index.js +298 -0
- package/dist/views/style.css +2 -0
- package/dist/views.d.ts +4 -0
- package/dist/views.d.ts.map +1 -0
- package/dist/views.js +3 -0
- package/dist/views.js.map +1 -0
- package/package.json +34 -7
- package/dist/client/bootstrap.js +0 -2834
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Icon } from "@knpkv/rly/foundations";
|
|
3
|
+
import { Button, Notice, Skeleton, Text } from "@knpkv/rly/primitives";
|
|
4
|
+
import { useId } from "react";
|
|
5
|
+
const emptyCreature = new URL("./assets/empty-creature.svg?no-inline", import.meta.url).href;
|
|
6
|
+
const issueCopy = (issue) => {
|
|
7
|
+
if (issue.source === "s3") {
|
|
8
|
+
if (issue.reason === "denied") {
|
|
9
|
+
return {
|
|
10
|
+
tone: "critical",
|
|
11
|
+
title: "State bucket access denied.",
|
|
12
|
+
body: "Discovery is incomplete — stacks that could be read are listed.",
|
|
13
|
+
hint: "Ask whoever manages access to the state bucket, then Read again."
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
if (issue.reason === "authentication") {
|
|
17
|
+
return {
|
|
18
|
+
tone: "caution",
|
|
19
|
+
title: "Sign-in required for the state bucket.",
|
|
20
|
+
body: "Discovery is incomplete — stacks that could be read are listed.",
|
|
21
|
+
hint: "Sign in for the state bucket, then Read again."
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
tone: "caution",
|
|
26
|
+
title: "State bucket discovery is incomplete.",
|
|
27
|
+
body: "Some stacks in the state bucket may be missing. The stacks below were read normally.",
|
|
28
|
+
hint: `Reason: ${issue.reason}. Check state bucket access, then Read again.`
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
tone: "caution",
|
|
33
|
+
title: "Local discovery is incomplete.",
|
|
34
|
+
body: "A local state file couldn’t be read, so some local stacks may be missing. The stacks below were read normally.",
|
|
35
|
+
hint: "Discovery only reads state; it doesn’t repair it. Check local state, then Read again."
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
const IssueNotice = ({ issue }) => {
|
|
39
|
+
const message = issueCopy(issue);
|
|
40
|
+
return (_jsxs(Notice, { className: "ac-notice", tone: message.tone, children: [_jsxs("p", { children: [_jsx("strong", { children: message.title }), " ", message.body] }), _jsx("p", { className: "ac-notice-hint", children: message.hint })] }));
|
|
41
|
+
};
|
|
42
|
+
/** Group only returned rows; null metadata stays Unknown and zero remains a known count. */
|
|
43
|
+
const StackGroup = ({ app, stacks }) => {
|
|
44
|
+
const headingId = useId();
|
|
45
|
+
return (_jsxs("section", { className: "ac-group", children: [_jsxs("div", { className: "ac-group-heading", children: [_jsx(Text, { as: "h2", id: headingId, variant: "section-title", children: app }), _jsxs(Text, { variant: "meta", tone: "secondary", children: [stacks.length, " ", stacks.length === 1 ? "stage" : "stages"] })] }), _jsx("div", { className: "ac-table-wrap", children: _jsxs("table", { className: "ac-table", "aria-labelledby": headingId, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { scope: "col", children: "Stage" }), _jsx("th", { scope: "col", children: "Backend" }), _jsx("th", { scope: "col", children: "Alchemy" }), _jsx("th", { scope: "col", children: "Last deploy" }), _jsx("th", { scope: "col", children: "Resources" })] }) }), _jsx("tbody", { children: stacks.map((stack) => (_jsxs("tr", { children: [_jsx("th", { scope: "row", children: _jsxs("span", { className: "ac-stage", children: [_jsxs("span", { className: "ac-sr-only", children: [app, " "] }), stack.stage] }) }), _jsxs("td", { children: [_jsx("span", { className: "ac-sr-only", children: "Backend: " }), stack.backend === "s3" ? "State bucket" : "Local"] }), _jsxs("td", { className: "ac-version", children: [_jsx("span", { className: "ac-mobile-label", children: "Alchemy " }), stack.alchemyVersion ?? "Unknown"] }), _jsxs("td", { children: [_jsx("span", { className: "ac-mobile-label", children: "Last deploy " }), stack.lastDeploy ?? "Unknown"] }), _jsxs("td", { children: [_jsx("span", { className: "ac-mobile-label", children: "Resources " }), stack.resourceCount ?? "Unknown"] })] }, stack.id))) })] }) })] }));
|
|
46
|
+
};
|
|
47
|
+
const Reading = () => (_jsx("div", { className: "ac-skeletons", "aria-hidden": "true", children: ["first", "second", "third"].map((name) => (_jsxs("div", { className: `ac-skeleton-group ac-skeleton-${name}`, children: [_jsx(Skeleton, { className: "ac-skeleton-heading" }), _jsx(Skeleton, { className: "ac-skeleton-body", variant: "block" })] }, name))) }));
|
|
48
|
+
/** Controlled module content for the local console or a host shell; no browser storage or data fetching. */
|
|
49
|
+
export const StackListView = ({ copy, onReadAgain, state }) => {
|
|
50
|
+
const stateTitleId = useId();
|
|
51
|
+
const empty = state._tag === "Ready" && state.list.stacks.length === 0 && state.list.issues.length === 0;
|
|
52
|
+
const issues = state._tag === "Ready"
|
|
53
|
+
? state.list.issues.filter((issue, index, all) => all.findIndex((candidate) => candidate.source === issue.source && candidate.reason === issue.reason) ===
|
|
54
|
+
index)
|
|
55
|
+
: [];
|
|
56
|
+
const apps = state._tag === "Ready" ? [...new Set(state.list.stacks.map((stack) => stack.app))].sort() : [];
|
|
57
|
+
const summary = state._tag === "Loading"
|
|
58
|
+
? "Looking in local state and the state bucket…"
|
|
59
|
+
: state._tag === "Ready"
|
|
60
|
+
? issues.length > 0
|
|
61
|
+
? `${state.list.stacks.length} stacks found · discovery incomplete`
|
|
62
|
+
: `${state.list.stacks.length} ${state.list.stacks.length === 1 ? "stack" : "stacks"} · ${apps.length} ${apps.length === 1 ? "app" : "apps"}`
|
|
63
|
+
: state._tag === "Unauthorized"
|
|
64
|
+
? state.reason === "bootstrap"
|
|
65
|
+
? "Sign-in failed or link already used."
|
|
66
|
+
: `Your ${copy.product} session has ended.`
|
|
67
|
+
: "Stacks are unavailable right now.";
|
|
68
|
+
return (_jsxs("div", { className: "ac-stacks", children: [_jsxs("header", { className: "ac-list-header", children: [_jsx(Text, { as: "h1", className: "ac-title", variant: "page-title", children: "Stacks" }), _jsxs("div", { className: "ac-list-lead", children: [_jsx(Text, { as: "p", className: "ac-description", tone: "secondary", children: "Infrastructure state from local discovery and the state bucket. Read-only." }), empty || state._tag === "Unauthorized" || state._tag === "Failed" ? null : (_jsx(Button, { className: "ac-read", disabled: state._tag === "Loading", onClick: onReadAgain, children: state._tag === "Loading" ? "Reading…" : "Read again" }))] })] }), _jsx("div", { className: "ac-sr-only", role: "status", "aria-live": "polite", "aria-atomic": "true", children: summary }), issues.map((issue) => (_jsx(IssueNotice, { issue: issue }, `${issue.source}-${issue.reason}`))), state._tag === "Unauthorized" ? (_jsxs("section", { className: "ac-state-panel", "aria-labelledby": stateTitleId, children: [_jsxs("div", { className: "ac-state-label ac-state-caution", children: [_jsx(Icon, { name: "alert", size: "small", decorative: true }), _jsx("span", { children: state.reason === "bootstrap" ? "Sign-in failed" : "Signed out" })] }), _jsx(Text, { as: "h2", id: stateTitleId, className: "ac-state-title", variant: "section-title", children: state.reason === "bootstrap"
|
|
69
|
+
? "Sign-in failed or link already used."
|
|
70
|
+
: `Your ${copy.product} session has ended.` }), _jsx(Text, { as: "p", className: "ac-state-body", tone: "secondary", children: "Sign in again to see stacks." }), _jsx(Text, { as: "p", className: "ac-state-instruction", variant: "meta", tone: "secondary", children: copy.signInInstruction })] })) : state._tag === "Failed" ? (_jsxs("section", { className: "ac-state-panel", "aria-labelledby": stateTitleId, children: [_jsxs("div", { className: "ac-state-label ac-state-critical", children: [_jsx(Icon, { name: "alert", size: "small", decorative: true }), _jsx("span", { children: "Unavailable" })] }), _jsx(Text, { as: "h2", id: stateTitleId, className: "ac-state-title", variant: "section-title", children: "Stacks are unavailable right now." }), _jsx(Text, { as: "p", className: "ac-state-body", tone: "secondary", children: "The stack list couldn\u2019t be read, so no stacks are shown. Nothing was changed." }), _jsx(Button, { className: "ac-read", onClick: onReadAgain, children: "Retry" })] })) : empty ? (_jsxs("div", { className: "ac-empty", children: [_jsx("img", { className: "ac-empty-creature", src: emptyCreature, alt: "", width: "88", height: "88" }), _jsx(Text, { as: "h2", className: "ac-empty-title", variant: "section-title", children: "No stacks found in local state or the state bucket." }), _jsx(Text, { as: "p", className: "ac-empty-description", tone: "secondary", children: "Local discovery and the state bucket returned no stack state." }), _jsx(Button, { className: "ac-read", onClick: onReadAgain, children: "Read again" }), _jsxs(Text, { as: "p", className: "ac-empty-foot", variant: "meta", tone: "secondary", children: ["Checked ", state.checkedAt, " \u00B7 stacks appear here after their first deployment from the CLI."] })] })) : (_jsxs("div", { className: "ac-results", "aria-busy": state._tag === "Loading", children: [_jsx(Text, { as: "p", className: "ac-summary", variant: "meta", tone: "secondary", children: summary }), state._tag === "Loading" ? (_jsx(Reading, {})) : state._tag === "Ready" ? (apps.map((app) => (_jsx(StackGroup, { app: app, stacks: state.list.stacks.filter((stack) => stack.app === app) }, app)))) : null, state._tag === "Ready" && state.list.stacks.length === 0 ? (_jsx(Text, { as: "p", tone: "secondary", children: "No stacks could be read. Discovery is incomplete." })) : null] }))] }));
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=StackListView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StackListView.js","sourceRoot":"","sources":["../../src/presentation/StackListView.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AACtE,OAAO,EAAE,KAAK,EAAqB,MAAM,OAAO,CAAA;AAGhD,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC,uCAAuC,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAqB5F,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;QAC1B,IAAI,KAAK,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO;gBACL,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,6BAA6B;gBACpC,IAAI,EAAE,iEAAiE;gBACvE,IAAI,EAAE,kEAAkE;aACqC,CAAA;QACjH,CAAC;QACD,IAAI,KAAK,CAAC,MAAM,KAAK,gBAAgB,EAAE,CAAC;YACtC,OAAO;gBACL,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,wCAAwC;gBAC/C,IAAI,EAAE,iEAAiE;gBACvE,IAAI,EAAE,gDAAgD;aACsD,CAAA;QAChH,CAAC;QACD,OAAO;YACL,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,uCAAuC;YAC9C,IAAI,EAAE,sFAAsF;YAC5F,IAAI,EAAE,WAAW,KAAK,CAAC,MAAM,+CAA+C;SACgC,CAAA;IAChH,CAAC;IACD,OA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CAAC,CAC1B,KAAC,OAAO,KAAG,CACZ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,CAC3B,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAChB,KAAC,UAAU,IAAC,GAAG,EAAE,GAAG,EAAY,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,CAAC,IAAnE,GAAG,CAAoE,CACnG,CAAC,CACH,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,IAAI,KAAK,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAC1D,KAAC,IAAI,IAAC,EAAE,EAAC,GAAG,EAAC,IAAI,EAAC,WAAW,kEAEtB,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,IACG,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Layer, Path } from "effect";
|
|
2
2
|
import { HttpRouter } from "effect/http";
|
|
3
|
+
/** Serve the built browser shell and assets under the same constrained loopback listener. */
|
|
3
4
|
export declare const BootstrapRoutes: Layer.Layer<never, import("effect/PlatformError").BadArgument | import("effect/PlatformError").PlatformError, import("effect/FileSystem").FileSystem | import("effect/http/HttpPlatform").HttpPlatform | HttpRouter.HttpRouter | Path.Path>;
|
|
4
5
|
//# sourceMappingURL=Bootstrap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bootstrap.d.ts","sourceRoot":"","sources":["../../src/server/Bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAwC,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"Bootstrap.d.ts","sourceRoot":"","sources":["../../src/server/Bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAwC,MAAM,aAAa,CAAA;AAE9E,6FAA6F;AAC7F,eAAO,MAAM,eAAe,6OAS3B,CAAA"}
|
package/dist/server/Bootstrap.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Effect, Layer, Path } from "effect";
|
|
2
2
|
import { HttpRouter, HttpServerResponse, HttpStaticServer } from "effect/http";
|
|
3
|
-
/**
|
|
4
|
-
const
|
|
5
|
-
export const BootstrapRoutes = Layer.mergeAll(HttpRouter.add("GET", "/", HttpServerResponse.html(document)), HttpRouter.add("GET", "/favicon.ico", HttpServerResponse.empty({ status: 204 })), Layer.unwrap(Effect.gen(function* () {
|
|
3
|
+
/** Serve the built browser shell and assets under the same constrained loopback listener. */
|
|
4
|
+
export const BootstrapRoutes = Layer.mergeAll(HttpRouter.add("GET", "/favicon.ico", HttpServerResponse.empty({ status: 204 })), Layer.unwrap(Effect.gen(function* () {
|
|
6
5
|
const path = yield* Path.Path;
|
|
7
6
|
return HttpStaticServer.layer({
|
|
8
7
|
root: yield* path.fromFileUrl(new URL("../../dist/client", import.meta.url)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bootstrap.js","sourceRoot":"","sources":["../../src/server/Bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9E,
|
|
1
|
+
{"version":3,"file":"Bootstrap.js","sourceRoot":"","sources":["../../src/server/Bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE9E,6FAA6F;AAC7F,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,QAAQ,CAC3C,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE,cAAc,EAAE,kBAAkB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,EAChF,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC/B,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAA;IAC7B,OAAO,gBAAgB,CAAC,KAAK,CAAC;QAC5B,IAAI,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,mBAAmB,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QAC5E,YAAY,EAAE,UAAU;KACzB,CAAC,CAAA;AACJ,CAAC,CAAC,CAAC,CACJ,CAAA"}
|
|
@@ -38,7 +38,7 @@ const boundary = Layer.unwrap(Effect.gen(function* () {
|
|
|
38
38
|
"referrer-policy": "no-referrer",
|
|
39
39
|
"x-content-type-options": "nosniff",
|
|
40
40
|
"x-frame-options": "DENY",
|
|
41
|
-
"content-security-policy": "default-src 'none'; script-src 'self'; connect-src 'self'; base-uri 'none'; frame-ancestors 'none'; form-action 'none'"
|
|
41
|
+
"content-security-policy": "default-src 'none'; script-src 'self'; style-src 'self'; font-src 'self'; img-src 'self'; connect-src 'self'; base-uri 'none'; frame-ancestors 'none'; form-action 'none'"
|
|
42
42
|
})))), { global: true });
|
|
43
43
|
}));
|
|
44
44
|
/** Listener, source readers and owner session belong to the executable's runtime layer. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpApplication.js","sourceRoot":"","sources":["../../src/server/HttpApplication.ts"],"names":[],"mappings":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AC,OAAO,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;YACzG,IAAI,UAAU,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;gBAClC,OAAO,kBAAkB,CAAC,KAAK,CAAC;oBAC9B,MAAM,EAAE,UAAU,CAAC,OAAO,CAAC,IAAI,KAAK,+BAA+B,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG;iBAChF,CAAC,CAAA;YACJ,CAAC;QACH,CAAC;QACD,OAAO,KAAK,CAAC,CAAC,UAAU,CAAA;IAC1B,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAC9B,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC;QAC1C,eAAe,EAAE,mBAAmB;QACpC,iBAAiB,EAAE,aAAa;QAChC,wBAAwB,EAAE,SAAS;QACnC,iBAAiB,EAAE,MAAM;QACzB,yBAAyB,EACvB,2KAA2K;KAC9K,CAAC,CAAC,CACJ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;AACzB,CAAC,CAAC,CAAC,CAAA;AAEH,2FAA2F;AAC3F,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,CACvC,cAAc,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,EACpG,YAAY,CAAC,eAAe,EAC5B,eAAe,EACf,QAAQ,CACT,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="88" height="88" aria-hidden="true" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter">
|
|
2
|
+
<defs fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter">
|
|
3
|
+
<radialGradient id="bpkgsrc-88-dc-30" cx="38%" cy="30%" r="80%" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><stop offset="0" stop-color="oklch(0.86 0.12 273)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /><stop offset="0.55" stop-color="oklch(0.66 0.17 273)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /><stop offset="1" stop-color="oklch(0.46 0.17 291)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /></radialGradient>
|
|
4
|
+
<radialGradient id="spkgsrc-88-dc-30" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><stop offset="0" stop-color="black" stop-opacity="0.28" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /><stop offset="1" stop-color="black" stop-opacity="0" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /></radialGradient>
|
|
5
|
+
<radialGradient id="cpkgsrc-88-dc-30" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><stop offset="0" stop-color="oklch(0.95 0.1 264)" stop-opacity="0.95" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /><stop offset="1" stop-color="oklch(0.75 0.15 264)" stop-opacity="0" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /></radialGradient>
|
|
6
|
+
<radialGradient id="gpkgsrc-88-dc-30" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><stop offset="0" stop-color="white" stop-opacity="0.55" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /><stop offset="1" stop-color="white" stop-opacity="0" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /></radialGradient>
|
|
7
|
+
<linearGradient id="dpkgsrc-88-dc-30" x1="0" x2="0" y1="0" y2="1" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><stop offset="0.55" stop-color="oklch(0.3 0.12 291)" stop-opacity="0" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /><stop offset="1" stop-color="oklch(0.3 0.12 291)" stop-opacity="0.45" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /></linearGradient>
|
|
8
|
+
<radialGradient id="wpkgsrc-88-dc-30" cy="40%" r="60%" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><stop offset="0.6" stop-color="oklch(0.99 0.006 264)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /><stop offset="1" stop-color="oklch(0.86 0.03 264)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /></radialGradient>
|
|
9
|
+
<radialGradient id="ipkgsrc-88-dc-30" cy="72%" r="70%" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><stop offset="0" stop-color="oklch(0.62 0.15 264)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /><stop offset="1" stop-color="oklch(0.3 0.09 264)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /></radialGradient>
|
|
10
|
+
<clipPath id="kpkgsrc-88-dc-30" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><path d="M89.0 58.1C88.9 61.1 88.9 64.0 88.3 66.9C87.8 69.8 87.2 73.0 85.7 75.7C84.2 78.5 82.0 81.2 79.3 83.2C76.6 85.1 73.0 86.4 69.7 87.2C66.3 88.0 62.6 87.9 59.4 88.0C56.1 88.1 53.1 87.7 50.0 87.7C46.9 87.6 44.0 87.8 40.7 87.6C37.5 87.5 33.9 87.6 30.6 86.9C27.2 86.1 23.5 85.0 20.7 83.2C17.9 81.3 15.4 78.6 13.8 76.0C12.3 73.3 11.7 70.0 11.2 67.0C10.7 64.0 10.9 61.1 11.0 58.1C11.1 55.2 11.1 52.3 11.7 49.4C12.2 46.4 12.8 43.2 14.3 40.5C15.8 37.8 18.0 35.0 20.7 33.1C23.4 31.2 27.0 29.9 30.3 29.1C33.7 28.3 37.4 28.3 40.6 28.3C43.9 28.2 46.9 28.5 50.0 28.6C53.1 28.7 56.0 28.5 59.3 28.6C62.5 28.8 66.1 28.7 69.4 29.4C72.8 30.2 76.5 31.3 79.3 33.1C82.1 34.9 84.6 37.6 86.2 40.3C87.7 43.0 88.3 46.3 88.8 49.3C89.3 52.2 89.1 55.2 89.0 58.1Z" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /></clipPath>
|
|
11
|
+
<clipPath id="e0pkgsrc-88-dc-30" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><ellipse cx="39.07" cy="52.158168587244646" rx="5.4" ry="5.832000000000001" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /></clipPath>
|
|
12
|
+
<clipPath id="o0pkgsrc-88-dc-30" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><ellipse cx="39.07" cy="52.158168587244646" rx="6.6000000000000005" ry="7.032000000000001" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /></clipPath>
|
|
13
|
+
<clipPath id="u0pkgsrc-88-dc-30" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><path d="M31.47 64.35V42.78Q39.07 46.28 46.67 42.78V64.35Z" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" transform="translate(0 2.052)" /></clipPath>
|
|
14
|
+
<clipPath id="l0pkgsrc-88-dc-30" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><path d="M31.47 39.96V58.04Q39.07 61.54 46.67 58.04V39.96Z" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /></clipPath><clipPath id="e1pkgsrc-88-dc-30" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><ellipse cx="60.93" cy="52.158168587244646" rx="5.4" ry="5.832000000000001" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /></clipPath>
|
|
15
|
+
<clipPath id="o1pkgsrc-88-dc-30" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><ellipse cx="60.93" cy="52.158168587244646" rx="6.6000000000000005" ry="7.032000000000001" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /></clipPath>
|
|
16
|
+
<clipPath id="u1pkgsrc-88-dc-30" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><path d="M53.33 64.35V42.78Q60.93 46.28 68.53 42.78V64.35Z" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" transform="translate(0 2.052)" /></clipPath>
|
|
17
|
+
<clipPath id="l1pkgsrc-88-dc-30" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><path d="M53.33 39.96V58.04Q60.93 61.54 68.53 58.04V39.96Z" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /></clipPath>
|
|
18
|
+
</defs>
|
|
19
|
+
<ellipse cx="50" cy="91" fill="url(#spkgsrc-88-dc-30)" rx="32.76" ry="5" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
20
|
+
<circle cx="50" cy="55" r="46" fill="none" stroke="oklch(0.4901 0.013 274.7)" stroke-width="2.5px" opacity="0" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
21
|
+
<circle cx="50" cy="55" r="46" pathLength="100" fill="none" stroke="oklch(0.4901 0.013 274.7)" stroke-width="1.3px" opacity="0" stroke-linecap="round" stroke-linejoin="miter" stroke-dasharray="9px, 91px" />
|
|
22
|
+
<g transform="translate(76 6) scale(0.8)" display="none" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><circle cx="12" cy="12" r="11" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /><path d="M6 12h12" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" /></g>
|
|
23
|
+
<g fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><g fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><g fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter">
|
|
24
|
+
<path d="M89.0 58.1C88.9 61.1 88.9 64.0 88.3 66.9C87.8 69.8 87.2 73.0 85.7 75.7C84.2 78.5 82.0 81.2 79.3 83.2C76.6 85.1 73.0 86.4 69.7 87.2C66.3 88.0 62.6 87.9 59.4 88.0C56.1 88.1 53.1 87.7 50.0 87.7C46.9 87.6 44.0 87.8 40.7 87.6C37.5 87.5 33.9 87.6 30.6 86.9C27.2 86.1 23.5 85.0 20.7 83.2C17.9 81.3 15.4 78.6 13.8 76.0C12.3 73.3 11.7 70.0 11.2 67.0C10.7 64.0 10.9 61.1 11.0 58.1C11.1 55.2 11.1 52.3 11.7 49.4C12.2 46.4 12.8 43.2 14.3 40.5C15.8 37.8 18.0 35.0 20.7 33.1C23.4 31.2 27.0 29.9 30.3 29.1C33.7 28.3 37.4 28.3 40.6 28.3C43.9 28.2 46.9 28.5 50.0 28.6C53.1 28.7 56.0 28.5 59.3 28.6C62.5 28.8 66.1 28.7 69.4 29.4C72.8 30.2 76.5 31.3 79.3 33.1C82.1 34.9 84.6 37.6 86.2 40.3C87.7 43.0 88.3 46.3 88.8 49.3C89.3 52.2 89.1 55.2 89.0 58.1Z" fill="url(#bpkgsrc-88-dc-30)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
25
|
+
<g clip-path="url(#kpkgsrc-88-dc-30)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter">
|
|
26
|
+
<circle cx="50" cy="71.27" r="16" fill="url(#cpkgsrc-88-dc-30)" stroke="none" stroke-width="1px" opacity="0.35" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
27
|
+
<rect x="11.00" y="28.26" width="78.00" height="59.74" fill="url(#dpkgsrc-88-dc-30)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
28
|
+
<ellipse cx="34.40" cy="40.21" rx="13.26" ry="5.97" fill="url(#gpkgsrc-88-dc-30)" transform="rotate(-24 34.40 40.21)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
29
|
+
</g>
|
|
30
|
+
</g></g>
|
|
31
|
+
<g fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><g fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter">
|
|
32
|
+
<g fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter">
|
|
33
|
+
<g clip-path="url(#u0pkgsrc-88-dc-30)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><g clip-path="url(#l0pkgsrc-88-dc-30)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter">
|
|
34
|
+
<ellipse cx="39.07" cy="52.158168587244646" rx="6.6000000000000005" ry="7.032000000000001" fill="oklch(0.25 0.05 260 / 0.14)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
35
|
+
<ellipse cx="39.07" cy="52.158168587244646" rx="5.4" ry="5.832000000000001" fill="url(#wpkgsrc-88-dc-30)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
36
|
+
<g clip-path="url(#e0pkgsrc-88-dc-30)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><g fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter">
|
|
37
|
+
<circle cx="39.07" cy="52.158168587244646" r="3.56" fill="url(#ipkgsrc-88-dc-30)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
38
|
+
<circle cx="39.07" cy="52.158168587244646" r="1.85" fill="oklch(0.14 0.02 260)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
39
|
+
<circle cx="37.79" cy="50.73" r="0.93" fill="oklch(1 0 none / 0.92)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
40
|
+
<circle cx="40.28" cy="53.44" r="0.43" fill="oklch(1 0 none / 0.92)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
41
|
+
</g></g>
|
|
42
|
+
</g></g>
|
|
43
|
+
<g clip-path="url(#o0pkgsrc-88-dc-30)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><g fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" transform="translate(0 2.052)"><path d="M31.47 42.78Q39.07 46.28 46.67 42.78" fill="none" stroke="oklch(0.22 0.04 260 / 0.85)" stroke-width="0.9px" opacity="0" stroke-linecap="round" stroke-linejoin="miter" /></g></g>
|
|
44
|
+
</g><g fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter">
|
|
45
|
+
<g clip-path="url(#u1pkgsrc-88-dc-30)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><g clip-path="url(#l1pkgsrc-88-dc-30)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter">
|
|
46
|
+
<ellipse cx="60.93" cy="52.158168587244646" rx="6.6000000000000005" ry="7.032000000000001" fill="oklch(0.25 0.05 260 / 0.14)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
47
|
+
<ellipse cx="60.93" cy="52.158168587244646" rx="5.4" ry="5.832000000000001" fill="url(#wpkgsrc-88-dc-30)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
48
|
+
<g clip-path="url(#e1pkgsrc-88-dc-30)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><g fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter">
|
|
49
|
+
<circle cx="60.93" cy="52.158168587244646" r="3.56" fill="url(#ipkgsrc-88-dc-30)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
50
|
+
<circle cx="60.93" cy="52.158168587244646" r="1.85" fill="oklch(0.14 0.02 260)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
51
|
+
<circle cx="59.65" cy="50.73" r="0.93" fill="oklch(1 0 none / 0.92)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
52
|
+
<circle cx="62.14" cy="53.44" r="0.43" fill="oklch(1 0 none / 0.92)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" />
|
|
53
|
+
</g></g>
|
|
54
|
+
</g></g>
|
|
55
|
+
<g clip-path="url(#o1pkgsrc-88-dc-30)" fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter"><g fill="rgb(0, 0, 0)" stroke="none" stroke-width="1px" opacity="1" stroke-linecap="butt" stroke-linejoin="miter" transform="translate(0 2.052)"><path d="M53.33 42.78Q60.93 46.28 68.53 42.78" fill="none" stroke="oklch(0.22 0.04 260 / 0.85)" stroke-width="0.9px" opacity="0" stroke-linecap="round" stroke-linejoin="miter" /></g></g>
|
|
56
|
+
</g>
|
|
57
|
+
<path d="M33.67 42.88Q39.07 39.13 44.47 42.23Q39.07 41.73 33.67 42.88Z" fill="oklch(0.36 0.09 291)" stroke="oklch(0.36 0.09 291)" stroke-width="0.6px" opacity="1" stroke-linecap="butt" stroke-linejoin="round" /><path d="M66.33 42.88Q60.93 39.13 55.53 42.23Q60.93 41.73 66.33 42.88Z" fill="oklch(0.36 0.09 291)" stroke="oklch(0.36 0.09 291)" stroke-width="0.6px" opacity="1" stroke-linecap="butt" stroke-linejoin="round" />
|
|
58
|
+
</g></g>
|
|
59
|
+
</g>
|
|
60
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { Icon as e } from "@knpkv/rly/foundations";
|
|
2
|
+
import { Button as t, Notice as n, Skeleton as r, Text as i } from "@knpkv/rly/primitives";
|
|
3
|
+
import { useId as a } from "react";
|
|
4
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
+
//#region src/presentation/StackListView.tsx
|
|
6
|
+
var c = new URL(new URL("empty-creature.svg", import.meta.url).href, "" + import.meta.url).href, l = (e) => e.source === "s3" ? e.reason === "denied" ? {
|
|
7
|
+
tone: "critical",
|
|
8
|
+
title: "State bucket access denied.",
|
|
9
|
+
body: "Discovery is incomplete — stacks that could be read are listed.",
|
|
10
|
+
hint: "Ask whoever manages access to the state bucket, then Read again."
|
|
11
|
+
} : e.reason === "authentication" ? {
|
|
12
|
+
tone: "caution",
|
|
13
|
+
title: "Sign-in required for the state bucket.",
|
|
14
|
+
body: "Discovery is incomplete — stacks that could be read are listed.",
|
|
15
|
+
hint: "Sign in for the state bucket, then Read again."
|
|
16
|
+
} : {
|
|
17
|
+
tone: "caution",
|
|
18
|
+
title: "State bucket discovery is incomplete.",
|
|
19
|
+
body: "Some stacks in the state bucket may be missing. The stacks below were read normally.",
|
|
20
|
+
hint: `Reason: ${e.reason}. Check state bucket access, then Read again.`
|
|
21
|
+
} : {
|
|
22
|
+
tone: "caution",
|
|
23
|
+
title: "Local discovery is incomplete.",
|
|
24
|
+
body: "A local state file couldn’t be read, so some local stacks may be missing. The stacks below were read normally.",
|
|
25
|
+
hint: "Discovery only reads state; it doesn’t repair it. Check local state, then Read again."
|
|
26
|
+
}, u = ({ issue: e }) => {
|
|
27
|
+
let t = l(e);
|
|
28
|
+
return /* @__PURE__ */ s(n, {
|
|
29
|
+
className: "ac-notice",
|
|
30
|
+
tone: t.tone,
|
|
31
|
+
children: [/* @__PURE__ */ s("p", { children: [
|
|
32
|
+
/* @__PURE__ */ o("strong", { children: t.title }),
|
|
33
|
+
" ",
|
|
34
|
+
t.body
|
|
35
|
+
] }), /* @__PURE__ */ o("p", {
|
|
36
|
+
className: "ac-notice-hint",
|
|
37
|
+
children: t.hint
|
|
38
|
+
})]
|
|
39
|
+
});
|
|
40
|
+
}, d = ({ app: e, stacks: t }) => {
|
|
41
|
+
let n = a();
|
|
42
|
+
return /* @__PURE__ */ s("section", {
|
|
43
|
+
className: "ac-group",
|
|
44
|
+
children: [/* @__PURE__ */ s("div", {
|
|
45
|
+
className: "ac-group-heading",
|
|
46
|
+
children: [/* @__PURE__ */ o(i, {
|
|
47
|
+
as: "h2",
|
|
48
|
+
id: n,
|
|
49
|
+
variant: "section-title",
|
|
50
|
+
children: e
|
|
51
|
+
}), /* @__PURE__ */ s(i, {
|
|
52
|
+
variant: "meta",
|
|
53
|
+
tone: "secondary",
|
|
54
|
+
children: [
|
|
55
|
+
t.length,
|
|
56
|
+
" ",
|
|
57
|
+
t.length === 1 ? "stage" : "stages"
|
|
58
|
+
]
|
|
59
|
+
})]
|
|
60
|
+
}), /* @__PURE__ */ o("div", {
|
|
61
|
+
className: "ac-table-wrap",
|
|
62
|
+
children: /* @__PURE__ */ s("table", {
|
|
63
|
+
className: "ac-table",
|
|
64
|
+
"aria-labelledby": n,
|
|
65
|
+
children: [/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ s("tr", { children: [
|
|
66
|
+
/* @__PURE__ */ o("th", {
|
|
67
|
+
scope: "col",
|
|
68
|
+
children: "Stage"
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ o("th", {
|
|
71
|
+
scope: "col",
|
|
72
|
+
children: "Backend"
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ o("th", {
|
|
75
|
+
scope: "col",
|
|
76
|
+
children: "Alchemy"
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ o("th", {
|
|
79
|
+
scope: "col",
|
|
80
|
+
children: "Last deploy"
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ o("th", {
|
|
83
|
+
scope: "col",
|
|
84
|
+
children: "Resources"
|
|
85
|
+
})
|
|
86
|
+
] }) }), /* @__PURE__ */ o("tbody", { children: t.map((t) => /* @__PURE__ */ s("tr", { children: [
|
|
87
|
+
/* @__PURE__ */ o("th", {
|
|
88
|
+
scope: "row",
|
|
89
|
+
children: /* @__PURE__ */ s("span", {
|
|
90
|
+
className: "ac-stage",
|
|
91
|
+
children: [/* @__PURE__ */ s("span", {
|
|
92
|
+
className: "ac-sr-only",
|
|
93
|
+
children: [e, " "]
|
|
94
|
+
}), t.stage]
|
|
95
|
+
})
|
|
96
|
+
}),
|
|
97
|
+
/* @__PURE__ */ s("td", { children: [/* @__PURE__ */ o("span", {
|
|
98
|
+
className: "ac-sr-only",
|
|
99
|
+
children: "Backend: "
|
|
100
|
+
}), t.backend === "s3" ? "State bucket" : "Local"] }),
|
|
101
|
+
/* @__PURE__ */ s("td", {
|
|
102
|
+
className: "ac-version",
|
|
103
|
+
children: [/* @__PURE__ */ o("span", {
|
|
104
|
+
className: "ac-mobile-label",
|
|
105
|
+
children: "Alchemy "
|
|
106
|
+
}), t.alchemyVersion ?? "Unknown"]
|
|
107
|
+
}),
|
|
108
|
+
/* @__PURE__ */ s("td", { children: [/* @__PURE__ */ o("span", {
|
|
109
|
+
className: "ac-mobile-label",
|
|
110
|
+
children: "Last deploy "
|
|
111
|
+
}), t.lastDeploy ?? "Unknown"] }),
|
|
112
|
+
/* @__PURE__ */ s("td", { children: [/* @__PURE__ */ o("span", {
|
|
113
|
+
className: "ac-mobile-label",
|
|
114
|
+
children: "Resources "
|
|
115
|
+
}), t.resourceCount ?? "Unknown"] })
|
|
116
|
+
] }, t.id)) })]
|
|
117
|
+
})
|
|
118
|
+
})]
|
|
119
|
+
});
|
|
120
|
+
}, f = () => /* @__PURE__ */ o("div", {
|
|
121
|
+
className: "ac-skeletons",
|
|
122
|
+
"aria-hidden": "true",
|
|
123
|
+
children: [
|
|
124
|
+
"first",
|
|
125
|
+
"second",
|
|
126
|
+
"third"
|
|
127
|
+
].map((e) => /* @__PURE__ */ s("div", {
|
|
128
|
+
className: `ac-skeleton-group ac-skeleton-${e}`,
|
|
129
|
+
children: [/* @__PURE__ */ o(r, { className: "ac-skeleton-heading" }), /* @__PURE__ */ o(r, {
|
|
130
|
+
className: "ac-skeleton-body",
|
|
131
|
+
variant: "block"
|
|
132
|
+
})]
|
|
133
|
+
}, e))
|
|
134
|
+
}), p = ({ copy: n, onReadAgain: r, state: l }) => {
|
|
135
|
+
let p = a(), m = l._tag === "Ready" && l.list.stacks.length === 0 && l.list.issues.length === 0, h = l._tag === "Ready" ? l.list.issues.filter((e, t, n) => n.findIndex((t) => t.source === e.source && t.reason === e.reason) === t) : [], g = l._tag === "Ready" ? [...new Set(l.list.stacks.map((e) => e.app))].sort() : [], _ = l._tag === "Loading" ? "Looking in local state and the state bucket…" : l._tag === "Ready" ? h.length > 0 ? `${l.list.stacks.length} stacks found · discovery incomplete` : `${l.list.stacks.length} ${l.list.stacks.length === 1 ? "stack" : "stacks"} · ${g.length} ${g.length === 1 ? "app" : "apps"}` : l._tag === "Unauthorized" ? l.reason === "bootstrap" ? "Sign-in failed or link already used." : `Your ${n.product} session has ended.` : "Stacks are unavailable right now.";
|
|
136
|
+
return /* @__PURE__ */ s("div", {
|
|
137
|
+
className: "ac-stacks",
|
|
138
|
+
children: [
|
|
139
|
+
/* @__PURE__ */ s("header", {
|
|
140
|
+
className: "ac-list-header",
|
|
141
|
+
children: [/* @__PURE__ */ o(i, {
|
|
142
|
+
as: "h1",
|
|
143
|
+
className: "ac-title",
|
|
144
|
+
variant: "page-title",
|
|
145
|
+
children: "Stacks"
|
|
146
|
+
}), /* @__PURE__ */ s("div", {
|
|
147
|
+
className: "ac-list-lead",
|
|
148
|
+
children: [/* @__PURE__ */ o(i, {
|
|
149
|
+
as: "p",
|
|
150
|
+
className: "ac-description",
|
|
151
|
+
tone: "secondary",
|
|
152
|
+
children: "Infrastructure state from local discovery and the state bucket. Read-only."
|
|
153
|
+
}), m || l._tag === "Unauthorized" || l._tag === "Failed" ? null : /* @__PURE__ */ o(t, {
|
|
154
|
+
className: "ac-read",
|
|
155
|
+
disabled: l._tag === "Loading",
|
|
156
|
+
onClick: r,
|
|
157
|
+
children: l._tag === "Loading" ? "Reading…" : "Read again"
|
|
158
|
+
})]
|
|
159
|
+
})]
|
|
160
|
+
}),
|
|
161
|
+
/* @__PURE__ */ o("div", {
|
|
162
|
+
className: "ac-sr-only",
|
|
163
|
+
role: "status",
|
|
164
|
+
"aria-live": "polite",
|
|
165
|
+
"aria-atomic": "true",
|
|
166
|
+
children: _
|
|
167
|
+
}),
|
|
168
|
+
h.map((e) => /* @__PURE__ */ o(u, { issue: e }, `${e.source}-${e.reason}`)),
|
|
169
|
+
l._tag === "Unauthorized" ? /* @__PURE__ */ s("section", {
|
|
170
|
+
className: "ac-state-panel",
|
|
171
|
+
"aria-labelledby": p,
|
|
172
|
+
children: [
|
|
173
|
+
/* @__PURE__ */ s("div", {
|
|
174
|
+
className: "ac-state-label ac-state-caution",
|
|
175
|
+
children: [/* @__PURE__ */ o(e, {
|
|
176
|
+
name: "alert",
|
|
177
|
+
size: "small",
|
|
178
|
+
decorative: !0
|
|
179
|
+
}), /* @__PURE__ */ o("span", { children: l.reason === "bootstrap" ? "Sign-in failed" : "Signed out" })]
|
|
180
|
+
}),
|
|
181
|
+
/* @__PURE__ */ o(i, {
|
|
182
|
+
as: "h2",
|
|
183
|
+
id: p,
|
|
184
|
+
className: "ac-state-title",
|
|
185
|
+
variant: "section-title",
|
|
186
|
+
children: l.reason === "bootstrap" ? "Sign-in failed or link already used." : `Your ${n.product} session has ended.`
|
|
187
|
+
}),
|
|
188
|
+
/* @__PURE__ */ o(i, {
|
|
189
|
+
as: "p",
|
|
190
|
+
className: "ac-state-body",
|
|
191
|
+
tone: "secondary",
|
|
192
|
+
children: "Sign in again to see stacks."
|
|
193
|
+
}),
|
|
194
|
+
/* @__PURE__ */ o(i, {
|
|
195
|
+
as: "p",
|
|
196
|
+
className: "ac-state-instruction",
|
|
197
|
+
variant: "meta",
|
|
198
|
+
tone: "secondary",
|
|
199
|
+
children: n.signInInstruction
|
|
200
|
+
})
|
|
201
|
+
]
|
|
202
|
+
}) : l._tag === "Failed" ? /* @__PURE__ */ s("section", {
|
|
203
|
+
className: "ac-state-panel",
|
|
204
|
+
"aria-labelledby": p,
|
|
205
|
+
children: [
|
|
206
|
+
/* @__PURE__ */ s("div", {
|
|
207
|
+
className: "ac-state-label ac-state-critical",
|
|
208
|
+
children: [/* @__PURE__ */ o(e, {
|
|
209
|
+
name: "alert",
|
|
210
|
+
size: "small",
|
|
211
|
+
decorative: !0
|
|
212
|
+
}), /* @__PURE__ */ o("span", { children: "Unavailable" })]
|
|
213
|
+
}),
|
|
214
|
+
/* @__PURE__ */ o(i, {
|
|
215
|
+
as: "h2",
|
|
216
|
+
id: p,
|
|
217
|
+
className: "ac-state-title",
|
|
218
|
+
variant: "section-title",
|
|
219
|
+
children: "Stacks are unavailable right now."
|
|
220
|
+
}),
|
|
221
|
+
/* @__PURE__ */ o(i, {
|
|
222
|
+
as: "p",
|
|
223
|
+
className: "ac-state-body",
|
|
224
|
+
tone: "secondary",
|
|
225
|
+
children: "The stack list couldn’t be read, so no stacks are shown. Nothing was changed."
|
|
226
|
+
}),
|
|
227
|
+
/* @__PURE__ */ o(t, {
|
|
228
|
+
className: "ac-read",
|
|
229
|
+
onClick: r,
|
|
230
|
+
children: "Retry"
|
|
231
|
+
})
|
|
232
|
+
]
|
|
233
|
+
}) : m ? /* @__PURE__ */ s("div", {
|
|
234
|
+
className: "ac-empty",
|
|
235
|
+
children: [
|
|
236
|
+
/* @__PURE__ */ o("img", {
|
|
237
|
+
className: "ac-empty-creature",
|
|
238
|
+
src: c,
|
|
239
|
+
alt: "",
|
|
240
|
+
width: "88",
|
|
241
|
+
height: "88"
|
|
242
|
+
}),
|
|
243
|
+
/* @__PURE__ */ o(i, {
|
|
244
|
+
as: "h2",
|
|
245
|
+
className: "ac-empty-title",
|
|
246
|
+
variant: "section-title",
|
|
247
|
+
children: "No stacks found in local state or the state bucket."
|
|
248
|
+
}),
|
|
249
|
+
/* @__PURE__ */ o(i, {
|
|
250
|
+
as: "p",
|
|
251
|
+
className: "ac-empty-description",
|
|
252
|
+
tone: "secondary",
|
|
253
|
+
children: "Local discovery and the state bucket returned no stack state."
|
|
254
|
+
}),
|
|
255
|
+
/* @__PURE__ */ o(t, {
|
|
256
|
+
className: "ac-read",
|
|
257
|
+
onClick: r,
|
|
258
|
+
children: "Read again"
|
|
259
|
+
}),
|
|
260
|
+
/* @__PURE__ */ s(i, {
|
|
261
|
+
as: "p",
|
|
262
|
+
className: "ac-empty-foot",
|
|
263
|
+
variant: "meta",
|
|
264
|
+
tone: "secondary",
|
|
265
|
+
children: [
|
|
266
|
+
"Checked ",
|
|
267
|
+
l.checkedAt,
|
|
268
|
+
" · stacks appear here after their first deployment from the CLI."
|
|
269
|
+
]
|
|
270
|
+
})
|
|
271
|
+
]
|
|
272
|
+
}) : /* @__PURE__ */ s("div", {
|
|
273
|
+
className: "ac-results",
|
|
274
|
+
"aria-busy": l._tag === "Loading",
|
|
275
|
+
children: [
|
|
276
|
+
/* @__PURE__ */ o(i, {
|
|
277
|
+
as: "p",
|
|
278
|
+
className: "ac-summary",
|
|
279
|
+
variant: "meta",
|
|
280
|
+
tone: "secondary",
|
|
281
|
+
children: _
|
|
282
|
+
}),
|
|
283
|
+
l._tag === "Loading" ? /* @__PURE__ */ o(f, {}) : l._tag === "Ready" ? g.map((e) => /* @__PURE__ */ o(d, {
|
|
284
|
+
app: e,
|
|
285
|
+
stacks: l.list.stacks.filter((t) => t.app === e)
|
|
286
|
+
}, e)) : null,
|
|
287
|
+
l._tag === "Ready" && l.list.stacks.length === 0 ? /* @__PURE__ */ o(i, {
|
|
288
|
+
as: "p",
|
|
289
|
+
tone: "secondary",
|
|
290
|
+
children: "No stacks could be read. Discovery is incomplete."
|
|
291
|
+
}) : null
|
|
292
|
+
]
|
|
293
|
+
})
|
|
294
|
+
]
|
|
295
|
+
});
|
|
296
|
+
};
|
|
297
|
+
//#endregion
|
|
298
|
+
export { p as StackListView };
|