@burdenoff/microfe-cosmicintersection 2026.1117.1 → 2026.1124.1
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/dist/cosmicintersection/CosmicIntersectionRoutes.js +32 -28
- package/dist/cosmicintersection/CosmicIntersectionRoutes.js.map +1 -1
- package/dist/cosmicintersection/pages/mission/MissionPreviewPage.d.ts +1 -0
- package/dist/cosmicintersection/pages/mission/MissionPreviewPage.js +378 -0
- package/dist/cosmicintersection/pages/mission/MissionPreviewPage.js.map +1 -0
- package/dist/cosmicintersection/pages/mission/missionPreviewInput.d.ts +3 -0
- package/dist/cosmicintersection/pages/mission/missionPreviewInput.js +60 -0
- package/dist/cosmicintersection/pages/mission/missionPreviewInput.js.map +1 -0
- package/dist/cosmicintersection/pages/sources/SourcesPage.js +41 -32
- package/dist/cosmicintersection/pages/sources/SourcesPage.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +76 -0
- package/dist/generated/wspace-operations.js +214 -1
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +27174 -1571
- package/package.json +1 -1
|
@@ -3,23 +3,23 @@ import { Suspense as t, lazy as n } from "react";
|
|
|
3
3
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
import { Navigate as a, Route as o, Routes as s } from "react-router";
|
|
5
5
|
// src/cosmicintersection/CosmicIntersectionRoutes.tsx
|
|
6
|
-
var c = n(() => import("./pages/dashboard/DashboardPage.js")), l = n(() => import("./pages/datasets/DatasetsPage.js")), u = n(() => import("./pages/datasets/DatasetDetailPage.js")), d = n(() => import("./pages/datasets/DatasetFormPage.js")), f = n(() => import("./pages/discovery/DiscoveryPage.js")), p = n(() => import("./pages/archive/ArchivePage.js")), m = n(() => import("./pages/lineage/LineagePage.js")), h = n(() => import("./pages/sources/SourcesPage.js")), g = n(() => import("./pages/sources/SourceDetailPage.js")),
|
|
7
|
-
function
|
|
6
|
+
var c = n(() => import("./pages/dashboard/DashboardPage.js")), l = n(() => import("./pages/datasets/DatasetsPage.js")), u = n(() => import("./pages/datasets/DatasetDetailPage.js")), d = n(() => import("./pages/datasets/DatasetFormPage.js")), f = n(() => import("./pages/discovery/DiscoveryPage.js")), p = n(() => import("./pages/archive/ArchivePage.js")), m = n(() => import("./pages/lineage/LineagePage.js")), h = n(() => import("./pages/sources/SourcesPage.js")), g = n(() => import("./pages/mission/MissionPreviewPage.js")), _ = n(() => import("./pages/sources/SourceDetailPage.js")), v = n(() => import("./pages/sources/SourceFormPage.js")), y = n(() => import("./pages/collections/CollectionsPage.js")), b = n(() => import("./pages/collections/CollectionDetailPage.js")), x = n(() => import("./pages/collections/CollectionFormPage.js")), S = n(() => import("./pages/pipelines/PipelinesPage.js")), C = n(() => import("./pages/pipelines/PipelineDetailPage.js")), w = n(() => import("./pages/pipelines/PipelineFormPage.js")), T = n(() => import("./pages/runs/RunsPage.js")), E = n(() => import("./pages/runs/RunDetailPage.js")), D = n(() => import("./pages/notebooks/NotebooksPage.js")), O = n(() => import("./pages/notebooks/NotebookDetailPage.js")), k = n(() => import("./pages/notebooks/NotebookFormPage.js")), A = n(() => import("./pages/analyses/AnalysesPage.js")), j = n(() => import("./pages/releases/ReleasesPage.js")), M = n(() => import("./pages/releases/ReleaseFormPage.js")), N = n(() => import("./pages/access/AccessPage.js"));
|
|
7
|
+
function P() {
|
|
8
8
|
return /* @__PURE__ */ r("div", {
|
|
9
9
|
className: "flex min-h-[320px] items-center justify-center",
|
|
10
10
|
children: /* @__PURE__ */ r("div", { className: "size-8 animate-spin rounded-full border-2 border-border-default border-t-text-primary" })
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function F() {
|
|
14
14
|
let { basePath: t } = e();
|
|
15
15
|
return /* @__PURE__ */ r(a, {
|
|
16
16
|
to: t || "/",
|
|
17
17
|
replace: !0
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function I() {
|
|
21
21
|
return /* @__PURE__ */ r(t, {
|
|
22
|
-
fallback: /* @__PURE__ */ r(
|
|
22
|
+
fallback: /* @__PURE__ */ r(P, {}),
|
|
23
23
|
children: /* @__PURE__ */ i(s, { children: [
|
|
24
24
|
/* @__PURE__ */ r(o, {
|
|
25
25
|
index: !0,
|
|
@@ -61,97 +61,101 @@ function F() {
|
|
|
61
61
|
path: "sources",
|
|
62
62
|
element: /* @__PURE__ */ r(h, {})
|
|
63
63
|
}),
|
|
64
|
+
/* @__PURE__ */ r(o, {
|
|
65
|
+
path: "sources/mission-previews",
|
|
66
|
+
element: /* @__PURE__ */ r(g, {})
|
|
67
|
+
}),
|
|
64
68
|
/* @__PURE__ */ r(o, {
|
|
65
69
|
path: "sources/create",
|
|
66
|
-
element: /* @__PURE__ */ r(
|
|
70
|
+
element: /* @__PURE__ */ r(v, {})
|
|
67
71
|
}),
|
|
68
72
|
/* @__PURE__ */ r(o, {
|
|
69
73
|
path: "sources/:id",
|
|
70
|
-
element: /* @__PURE__ */ r(
|
|
74
|
+
element: /* @__PURE__ */ r(_, {})
|
|
71
75
|
}),
|
|
72
76
|
/* @__PURE__ */ r(o, {
|
|
73
77
|
path: "sources/:id/edit",
|
|
74
|
-
element: /* @__PURE__ */ r(
|
|
78
|
+
element: /* @__PURE__ */ r(v, {})
|
|
75
79
|
}),
|
|
76
80
|
/* @__PURE__ */ r(o, {
|
|
77
81
|
path: "collections",
|
|
78
|
-
element: /* @__PURE__ */ r(
|
|
82
|
+
element: /* @__PURE__ */ r(y, {})
|
|
79
83
|
}),
|
|
80
84
|
/* @__PURE__ */ r(o, {
|
|
81
85
|
path: "collections/create",
|
|
82
|
-
element: /* @__PURE__ */ r(
|
|
86
|
+
element: /* @__PURE__ */ r(x, {})
|
|
83
87
|
}),
|
|
84
88
|
/* @__PURE__ */ r(o, {
|
|
85
89
|
path: "collections/:id",
|
|
86
|
-
element: /* @__PURE__ */ r(
|
|
90
|
+
element: /* @__PURE__ */ r(b, {})
|
|
87
91
|
}),
|
|
88
92
|
/* @__PURE__ */ r(o, {
|
|
89
93
|
path: "collections/:id/edit",
|
|
90
|
-
element: /* @__PURE__ */ r(
|
|
94
|
+
element: /* @__PURE__ */ r(x, {})
|
|
91
95
|
}),
|
|
92
96
|
/* @__PURE__ */ r(o, {
|
|
93
97
|
path: "pipelines",
|
|
94
|
-
element: /* @__PURE__ */ r(
|
|
98
|
+
element: /* @__PURE__ */ r(S, {})
|
|
95
99
|
}),
|
|
96
100
|
/* @__PURE__ */ r(o, {
|
|
97
101
|
path: "pipelines/create",
|
|
98
|
-
element: /* @__PURE__ */ r(
|
|
102
|
+
element: /* @__PURE__ */ r(w, {})
|
|
99
103
|
}),
|
|
100
104
|
/* @__PURE__ */ r(o, {
|
|
101
105
|
path: "pipelines/:id",
|
|
102
|
-
element: /* @__PURE__ */ r(
|
|
106
|
+
element: /* @__PURE__ */ r(C, {})
|
|
103
107
|
}),
|
|
104
108
|
/* @__PURE__ */ r(o, {
|
|
105
109
|
path: "pipelines/:id/edit",
|
|
106
|
-
element: /* @__PURE__ */ r(
|
|
110
|
+
element: /* @__PURE__ */ r(w, {})
|
|
107
111
|
}),
|
|
108
112
|
/* @__PURE__ */ r(o, {
|
|
109
113
|
path: "runs",
|
|
110
|
-
element: /* @__PURE__ */ r(
|
|
114
|
+
element: /* @__PURE__ */ r(T, {})
|
|
111
115
|
}),
|
|
112
116
|
/* @__PURE__ */ r(o, {
|
|
113
117
|
path: "runs/:id",
|
|
114
|
-
element: /* @__PURE__ */ r(
|
|
118
|
+
element: /* @__PURE__ */ r(E, {})
|
|
115
119
|
}),
|
|
116
120
|
/* @__PURE__ */ r(o, {
|
|
117
121
|
path: "notebooks",
|
|
118
|
-
element: /* @__PURE__ */ r(
|
|
122
|
+
element: /* @__PURE__ */ r(D, {})
|
|
119
123
|
}),
|
|
120
124
|
/* @__PURE__ */ r(o, {
|
|
121
125
|
path: "notebooks/create",
|
|
122
|
-
element: /* @__PURE__ */ r(
|
|
126
|
+
element: /* @__PURE__ */ r(k, {})
|
|
123
127
|
}),
|
|
124
128
|
/* @__PURE__ */ r(o, {
|
|
125
129
|
path: "notebooks/:id",
|
|
126
|
-
element: /* @__PURE__ */ r(
|
|
130
|
+
element: /* @__PURE__ */ r(O, {})
|
|
127
131
|
}),
|
|
128
132
|
/* @__PURE__ */ r(o, {
|
|
129
133
|
path: "notebooks/:id/edit",
|
|
130
|
-
element: /* @__PURE__ */ r(
|
|
134
|
+
element: /* @__PURE__ */ r(k, {})
|
|
131
135
|
}),
|
|
132
136
|
/* @__PURE__ */ r(o, {
|
|
133
137
|
path: "analyses",
|
|
134
|
-
element: /* @__PURE__ */ r(
|
|
138
|
+
element: /* @__PURE__ */ r(A, {})
|
|
135
139
|
}),
|
|
136
140
|
/* @__PURE__ */ r(o, {
|
|
137
141
|
path: "releases",
|
|
138
|
-
element: /* @__PURE__ */ r(
|
|
142
|
+
element: /* @__PURE__ */ r(j, {})
|
|
139
143
|
}),
|
|
140
144
|
/* @__PURE__ */ r(o, {
|
|
141
145
|
path: "releases/create",
|
|
142
|
-
element: /* @__PURE__ */ r(
|
|
146
|
+
element: /* @__PURE__ */ r(M, {})
|
|
143
147
|
}),
|
|
144
148
|
/* @__PURE__ */ r(o, {
|
|
145
149
|
path: "access",
|
|
146
|
-
element: /* @__PURE__ */ r(
|
|
150
|
+
element: /* @__PURE__ */ r(N, {})
|
|
147
151
|
}),
|
|
148
152
|
/* @__PURE__ */ r(o, {
|
|
149
153
|
path: "*",
|
|
150
|
-
element: /* @__PURE__ */ r(
|
|
154
|
+
element: /* @__PURE__ */ r(F, {})
|
|
151
155
|
})
|
|
152
156
|
] })
|
|
153
157
|
});
|
|
154
158
|
}
|
|
155
|
-
export {
|
|
159
|
+
export { I as CosmicIntersectionRoutes, I as default };
|
|
156
160
|
|
|
157
161
|
//# sourceMappingURL=CosmicIntersectionRoutes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CosmicIntersectionRoutes.js","names":["DashboardPage","lazy","DatasetsPage","DatasetDetailPage","DatasetFormPage","DiscoveryPage","ArchivePage","LineagePage","SourcesPage","SourceDetailPage","SourceFormPage","CollectionsPage","CollectionDetailPage","CollectionFormPage","PipelinesPage","PipelineDetailPage","PipelineFormPage","RunsPage","RunDetailPage","NotebooksPage","NotebookDetailPage","NotebookFormPage","AnalysesPage","ReleasesPage","ReleaseFormPage","AccessPage","PageLoader","RedirectToDashboard","useCosmicIntersection","Navigate","basePath","CosmicIntersectionRoutes","Suspense","Routes","Route"],"sources":["../../src/cosmicintersection/CosmicIntersectionRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Navigate, Route, Routes } from 'react-router';\n\nimport { useCosmicIntersection } from './context/CosmicIntersectionContext';\n\n// Canonical page files — all default exports. Page agents overwrite the\n// placeholder stubs in place; these import paths are the contract.\nconst DashboardPage = lazy(() => import('./pages/dashboard/DashboardPage'));\n\nconst DatasetsPage = lazy(() => import('./pages/datasets/DatasetsPage'));\nconst DatasetDetailPage = lazy(() => import('./pages/datasets/DatasetDetailPage'));\nconst DatasetFormPage = lazy(() => import('./pages/datasets/DatasetFormPage'));\n\n// Faceted full-text discovery over the federated catalog.\nconst DiscoveryPage = lazy(() => import('./pages/discovery/DiscoveryPage'));\n\n// Mission-specific search across MAST-hosted archives (BOFF-5786).\nconst ArchivePage = lazy(() => import('./pages/archive/ArchivePage'));\n\n// Provenance / lineage graph (Source → Dataset → Run → Notebook → Release).\nconst LineagePage = lazy(() => import('./pages/lineage/LineagePage'));\n\nconst SourcesPage = lazy(() => import('./pages/sources/SourcesPage'));\nconst SourceDetailPage = lazy(() => import('./pages/sources/SourceDetailPage'));\nconst SourceFormPage = lazy(() => import('./pages/sources/SourceFormPage'));\n\nconst CollectionsPage = lazy(() => import('./pages/collections/CollectionsPage'));\nconst CollectionDetailPage = lazy(() => import('./pages/collections/CollectionDetailPage'));\nconst CollectionFormPage = lazy(() => import('./pages/collections/CollectionFormPage'));\n\nconst PipelinesPage = lazy(() => import('./pages/pipelines/PipelinesPage'));\nconst PipelineDetailPage = lazy(() => import('./pages/pipelines/PipelineDetailPage'));\nconst PipelineFormPage = lazy(() => import('./pages/pipelines/PipelineFormPage'));\n\nconst RunsPage = lazy(() => import('./pages/runs/RunsPage'));\nconst RunDetailPage = lazy(() => import('./pages/runs/RunDetailPage'));\n\nconst NotebooksPage = lazy(() => import('./pages/notebooks/NotebooksPage'));\nconst NotebookDetailPage = lazy(() => import('./pages/notebooks/NotebookDetailPage'));\nconst NotebookFormPage = lazy(() => import('./pages/notebooks/NotebookFormPage'));\n\nconst AnalysesPage = lazy(() => import('./pages/analyses/AnalysesPage'));\n\nconst ReleasesPage = lazy(() => import('./pages/releases/ReleasesPage'));\nconst ReleaseFormPage = lazy(() => import('./pages/releases/ReleaseFormPage'));\n\nconst AccessPage = lazy(() => import('./pages/access/AccessPage'));\n\nfunction PageLoader() {\n return (\n <div className=\"flex min-h-[320px] items-center justify-center\">\n <div className=\"size-8 animate-spin rounded-full border-2 border-border-default border-t-text-primary\" />\n </div>\n );\n}\n\n/**\n * Sends an unknown path under the product back to its dashboard.\n *\n * The target is the absolute base path from the shell rather than a relative\n * `to=\"\"`: inside a splat (`*`) route a relative target resolves against the\n * unmatched URL itself, so `<Navigate to=\"\" />` re-navigated to the same\n * unknown path and left a blank page.\n */\nfunction RedirectToDashboard() {\n const { basePath } = useCosmicIntersection();\n return <Navigate to={basePath || '/'} replace />;\n}\n\nexport function CosmicIntersectionRoutes() {\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route index element={<DashboardPage />} />\n\n <Route path=\"discovery\" element={<DiscoveryPage />} />\n\n <Route path=\"archive\" element={<ArchivePage />} />\n\n <Route path=\"lineage\" element={<LineagePage />} />\n <Route path=\"lineage/:datasetId\" element={<LineagePage />} />\n\n <Route path=\"datasets\" element={<DatasetsPage />} />\n <Route path=\"datasets/create\" element={<DatasetFormPage />} />\n <Route path=\"datasets/:id\" element={<DatasetDetailPage />} />\n <Route path=\"datasets/:id/edit\" element={<DatasetFormPage />} />\n\n <Route path=\"sources\" element={<SourcesPage />} />\n <Route path=\"sources/create\" element={<SourceFormPage />} />\n <Route path=\"sources/:id\" element={<SourceDetailPage />} />\n <Route path=\"sources/:id/edit\" element={<SourceFormPage />} />\n\n <Route path=\"collections\" element={<CollectionsPage />} />\n <Route path=\"collections/create\" element={<CollectionFormPage />} />\n <Route path=\"collections/:id\" element={<CollectionDetailPage />} />\n <Route path=\"collections/:id/edit\" element={<CollectionFormPage />} />\n\n <Route path=\"pipelines\" element={<PipelinesPage />} />\n <Route path=\"pipelines/create\" element={<PipelineFormPage />} />\n <Route path=\"pipelines/:id\" element={<PipelineDetailPage />} />\n <Route path=\"pipelines/:id/edit\" element={<PipelineFormPage />} />\n\n <Route path=\"runs\" element={<RunsPage />} />\n <Route path=\"runs/:id\" element={<RunDetailPage />} />\n\n <Route path=\"notebooks\" element={<NotebooksPage />} />\n <Route path=\"notebooks/create\" element={<NotebookFormPage />} />\n <Route path=\"notebooks/:id\" element={<NotebookDetailPage />} />\n <Route path=\"notebooks/:id/edit\" element={<NotebookFormPage />} />\n\n <Route path=\"analyses\" element={<AnalysesPage />} />\n\n <Route path=\"releases\" element={<ReleasesPage />} />\n <Route path=\"releases/create\" element={<ReleaseFormPage />} />\n\n <Route path=\"access\" element={<AccessPage />} />\n\n <Route path=\"*\" element={<RedirectToDashboard />} />\n </Routes>\n </Suspense>\n );\n}\n\nexport default CosmicIntersectionRoutes;\n"],"mappings":";;;;;AAOA,IAAMA,IAAgBC,QAAW,OAAO,qCAAkC,GAEpEC,IAAeD,QAAW,OAAO,mCAAgC,GACjEE,IAAoBF,QAAW,OAAO,wCAAqC,GAC3EG,IAAkBH,QAAW,OAAO,sCAAmC,GAGvEI,IAAgBJ,QAAW,OAAO,qCAAkC,GAGpEK,IAAcL,QAAW,OAAO,iCAA8B,GAG9DM,IAAcN,QAAW,OAAO,iCAA8B,GAE9DO,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BAACS,GAAD;IAAO,MAAK;IAAI,SAAS,kBAACP,GAAD,CAAsB,CAAA;GAAI,CAAA;EAC7C,EAAA,CAAA;CACA,CAAA;AAEd"}
|
|
1
|
+
{"version":3,"file":"CosmicIntersectionRoutes.js","names":["DashboardPage","lazy","DatasetsPage","DatasetDetailPage","DatasetFormPage","DiscoveryPage","ArchivePage","LineagePage","SourcesPage","MissionPreviewPage","SourceDetailPage","SourceFormPage","CollectionsPage","CollectionDetailPage","CollectionFormPage","PipelinesPage","PipelineDetailPage","PipelineFormPage","RunsPage","RunDetailPage","NotebooksPage","NotebookDetailPage","NotebookFormPage","AnalysesPage","ReleasesPage","ReleaseFormPage","AccessPage","PageLoader","RedirectToDashboard","useCosmicIntersection","Navigate","basePath","CosmicIntersectionRoutes","Suspense","Routes","Route"],"sources":["../../src/cosmicintersection/CosmicIntersectionRoutes.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\nimport { Navigate, Route, Routes } from 'react-router';\n\nimport { useCosmicIntersection } from './context/CosmicIntersectionContext';\n\n// Canonical page files — all default exports. Page agents overwrite the\n// placeholder stubs in place; these import paths are the contract.\nconst DashboardPage = lazy(() => import('./pages/dashboard/DashboardPage'));\n\nconst DatasetsPage = lazy(() => import('./pages/datasets/DatasetsPage'));\nconst DatasetDetailPage = lazy(() => import('./pages/datasets/DatasetDetailPage'));\nconst DatasetFormPage = lazy(() => import('./pages/datasets/DatasetFormPage'));\n\n// Faceted full-text discovery over the federated catalog.\nconst DiscoveryPage = lazy(() => import('./pages/discovery/DiscoveryPage'));\n\n// Mission-specific search across MAST-hosted archives (BOFF-5786).\nconst ArchivePage = lazy(() => import('./pages/archive/ArchivePage'));\n\n// Provenance / lineage graph (Source → Dataset → Run → Notebook → Release).\nconst LineagePage = lazy(() => import('./pages/lineage/LineagePage'));\n\nconst SourcesPage = lazy(() => import('./pages/sources/SourcesPage'));\nconst MissionPreviewPage = lazy(() => import('./pages/mission/MissionPreviewPage'));\nconst SourceDetailPage = lazy(() => import('./pages/sources/SourceDetailPage'));\nconst SourceFormPage = lazy(() => import('./pages/sources/SourceFormPage'));\n\nconst CollectionsPage = lazy(() => import('./pages/collections/CollectionsPage'));\nconst CollectionDetailPage = lazy(() => import('./pages/collections/CollectionDetailPage'));\nconst CollectionFormPage = lazy(() => import('./pages/collections/CollectionFormPage'));\n\nconst PipelinesPage = lazy(() => import('./pages/pipelines/PipelinesPage'));\nconst PipelineDetailPage = lazy(() => import('./pages/pipelines/PipelineDetailPage'));\nconst PipelineFormPage = lazy(() => import('./pages/pipelines/PipelineFormPage'));\n\nconst RunsPage = lazy(() => import('./pages/runs/RunsPage'));\nconst RunDetailPage = lazy(() => import('./pages/runs/RunDetailPage'));\n\nconst NotebooksPage = lazy(() => import('./pages/notebooks/NotebooksPage'));\nconst NotebookDetailPage = lazy(() => import('./pages/notebooks/NotebookDetailPage'));\nconst NotebookFormPage = lazy(() => import('./pages/notebooks/NotebookFormPage'));\n\nconst AnalysesPage = lazy(() => import('./pages/analyses/AnalysesPage'));\n\nconst ReleasesPage = lazy(() => import('./pages/releases/ReleasesPage'));\nconst ReleaseFormPage = lazy(() => import('./pages/releases/ReleaseFormPage'));\n\nconst AccessPage = lazy(() => import('./pages/access/AccessPage'));\n\nfunction PageLoader() {\n return (\n <div className=\"flex min-h-[320px] items-center justify-center\">\n <div className=\"size-8 animate-spin rounded-full border-2 border-border-default border-t-text-primary\" />\n </div>\n );\n}\n\n/**\n * Sends an unknown path under the product back to its dashboard.\n *\n * The target is the absolute base path from the shell rather than a relative\n * `to=\"\"`: inside a splat (`*`) route a relative target resolves against the\n * unmatched URL itself, so `<Navigate to=\"\" />` re-navigated to the same\n * unknown path and left a blank page.\n */\nfunction RedirectToDashboard() {\n const { basePath } = useCosmicIntersection();\n return <Navigate to={basePath || '/'} replace />;\n}\n\nexport function CosmicIntersectionRoutes() {\n return (\n <Suspense fallback={<PageLoader />}>\n <Routes>\n <Route index element={<DashboardPage />} />\n\n <Route path=\"discovery\" element={<DiscoveryPage />} />\n\n <Route path=\"archive\" element={<ArchivePage />} />\n\n <Route path=\"lineage\" element={<LineagePage />} />\n <Route path=\"lineage/:datasetId\" element={<LineagePage />} />\n\n <Route path=\"datasets\" element={<DatasetsPage />} />\n <Route path=\"datasets/create\" element={<DatasetFormPage />} />\n <Route path=\"datasets/:id\" element={<DatasetDetailPage />} />\n <Route path=\"datasets/:id/edit\" element={<DatasetFormPage />} />\n\n <Route path=\"sources\" element={<SourcesPage />} />\n <Route path=\"sources/mission-previews\" element={<MissionPreviewPage />} />\n <Route path=\"sources/create\" element={<SourceFormPage />} />\n <Route path=\"sources/:id\" element={<SourceDetailPage />} />\n <Route path=\"sources/:id/edit\" element={<SourceFormPage />} />\n\n <Route path=\"collections\" element={<CollectionsPage />} />\n <Route path=\"collections/create\" element={<CollectionFormPage />} />\n <Route path=\"collections/:id\" element={<CollectionDetailPage />} />\n <Route path=\"collections/:id/edit\" element={<CollectionFormPage />} />\n\n <Route path=\"pipelines\" element={<PipelinesPage />} />\n <Route path=\"pipelines/create\" element={<PipelineFormPage />} />\n <Route path=\"pipelines/:id\" element={<PipelineDetailPage />} />\n <Route path=\"pipelines/:id/edit\" element={<PipelineFormPage />} />\n\n <Route path=\"runs\" element={<RunsPage />} />\n <Route path=\"runs/:id\" element={<RunDetailPage />} />\n\n <Route path=\"notebooks\" element={<NotebooksPage />} />\n <Route path=\"notebooks/create\" element={<NotebookFormPage />} />\n <Route path=\"notebooks/:id\" element={<NotebookDetailPage />} />\n <Route path=\"notebooks/:id/edit\" element={<NotebookFormPage />} />\n\n <Route path=\"analyses\" element={<AnalysesPage />} />\n\n <Route path=\"releases\" element={<ReleasesPage />} />\n <Route path=\"releases/create\" element={<ReleaseFormPage />} />\n\n <Route path=\"access\" element={<AccessPage />} />\n\n <Route path=\"*\" element={<RedirectToDashboard />} />\n </Routes>\n </Suspense>\n );\n}\n\nexport default CosmicIntersectionRoutes;\n"],"mappings":";;;;;AAOA,IAAMA,IAAgBC,QAAW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GAAD,CAAmB,CAAA;GAAI,CAAA;GAEjE,kBAACa,GAAD;IAAO,MAAK;IAAW,SAAS,kBAACZ,GAAD,CAAe,CAAA;GAAI,CAAA;GAEnD,kBAACY,GAAD;IAAO,MAAK;IAAW,SAAS,kBAACX,GAAD,CAAe,CAAA;GAAI,CAAA;GACnD,kBAACW,GAAD;IAAO,MAAK;IAAkB,SAAS,kBAACV,GAAD,CAAkB,CAAA;GAAI,CAAA;GAE7D,kBAACU,GAAD;IAAO,MAAK;IAAS,SAAS,kBAACT,GAAD,CAAa,CAAA;GAAI,CAAA;GAE/C,kBAACS,GAAD;IAAO,MAAK;IAAI,SAAS,kBAACP,GAAD,CAAsB,CAAA;GAAI,CAAA;EAC7C,EAAA,CAAA;CACA,CAAA;AAEd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function MissionPreviewPage(): import('react').JSX.Element;
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { CosmicObservationPreviewDocument as e, CosmicTelemetryPreviewDocument as t } from "../../../generated/wspace-operations.js";
|
|
2
|
+
import { useTr as n } from "../../../shared/hooks/useTr.js";
|
|
3
|
+
import "../../components/index.js";
|
|
4
|
+
import { PageLayout as r } from "../../components/PageLayout.js";
|
|
5
|
+
import { formatEnumLabel as i } from "../../components/StatusBadge.js";
|
|
6
|
+
import { useCosmicIntersection as a } from "../../context/CosmicIntersectionContext.js";
|
|
7
|
+
import { readObservationPreviewInput as o, readTelemetryPreviewInput as s } from "./missionPreviewInput.js";
|
|
8
|
+
import { useId as c, useState as l } from "react";
|
|
9
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
10
|
+
import { Button as p, Input as m, Label as h, Table as g, TableBody as _, TableCell as v, TableHead as y, TableHeader as b, TableRow as x, Tabs as S, TabsContent as C, TabsList as w, TabsTrigger as T, Textarea as E } from "@burdenoff/fe-libs/ui";
|
|
11
|
+
import { useLazyQuery as D } from "@apollo/client/react";
|
|
12
|
+
// src/cosmicintersection/pages/mission/MissionPreviewPage.tsx
|
|
13
|
+
var O = "space-y-4 rounded-card border border-border-seam bg-bg-surface p-4", k = "space-y-1.5", A = "text-sm text-text-secondary";
|
|
14
|
+
function j() {
|
|
15
|
+
let t = n(), r = c(), [a, s] = l(!1), [S, C] = l(!1), [w, { data: T, loading: j, error: M }] = D(e, {
|
|
16
|
+
fetchPolicy: "no-cache",
|
|
17
|
+
errorPolicy: "none"
|
|
18
|
+
}), P = a && !j && !M ? T?.cosPreviewObservationPlan : void 0;
|
|
19
|
+
return /* @__PURE__ */ f("div", {
|
|
20
|
+
className: "grid gap-4 lg:grid-cols-2",
|
|
21
|
+
children: [/* @__PURE__ */ f("form", {
|
|
22
|
+
className: O,
|
|
23
|
+
onSubmit: (e) => {
|
|
24
|
+
e.preventDefault();
|
|
25
|
+
let t = o(new FormData(e.currentTarget));
|
|
26
|
+
C(!t), s(!!t), t && w({ variables: { input: t } }).catch(() => void 0);
|
|
27
|
+
},
|
|
28
|
+
onChange: () => {
|
|
29
|
+
s(!1), C(!1);
|
|
30
|
+
},
|
|
31
|
+
"aria-busy": j,
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ f("fieldset", {
|
|
34
|
+
disabled: j,
|
|
35
|
+
className: "space-y-4",
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ d("legend", {
|
|
38
|
+
className: "mb-3 text-base font-semibold",
|
|
39
|
+
children: t("cosmicintersection.mission.plannerHeading", "Observation windows")
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ f("div", {
|
|
42
|
+
className: "grid gap-3 sm:grid-cols-2",
|
|
43
|
+
children: [/* @__PURE__ */ f("div", {
|
|
44
|
+
className: k,
|
|
45
|
+
children: [/* @__PURE__ */ d(h, {
|
|
46
|
+
htmlFor: r + "instrument",
|
|
47
|
+
children: t("cosmicintersection.mission.instrument", "Instrument ID")
|
|
48
|
+
}), /* @__PURE__ */ d(m, {
|
|
49
|
+
id: r + "instrument",
|
|
50
|
+
name: "instrument",
|
|
51
|
+
maxLength: 128,
|
|
52
|
+
required: !0
|
|
53
|
+
})]
|
|
54
|
+
}), /* @__PURE__ */ f("div", {
|
|
55
|
+
className: k,
|
|
56
|
+
children: [/* @__PURE__ */ d(h, {
|
|
57
|
+
htmlFor: r + "budget",
|
|
58
|
+
children: t("cosmicintersection.mission.budget", "Exposure budget in seconds (optional)")
|
|
59
|
+
}), /* @__PURE__ */ d(m, {
|
|
60
|
+
id: r + "budget",
|
|
61
|
+
name: "budget",
|
|
62
|
+
type: "number",
|
|
63
|
+
min: 0,
|
|
64
|
+
max: 2147483647
|
|
65
|
+
})]
|
|
66
|
+
})]
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ f("div", {
|
|
69
|
+
className: k,
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ d(h, {
|
|
72
|
+
htmlFor: r + "windows",
|
|
73
|
+
children: t("cosmicintersection.mission.windows", "Requested windows")
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ d(E, {
|
|
76
|
+
id: r + "windows",
|
|
77
|
+
name: "windows",
|
|
78
|
+
rows: 5,
|
|
79
|
+
maxLength: 4e5,
|
|
80
|
+
required: !0,
|
|
81
|
+
"aria-describedby": r + "windowHelp",
|
|
82
|
+
placeholder: "target-1, 120, 1, 2027-01-15T01:00:00Z, 2027-01-15T01:30:00Z"
|
|
83
|
+
}),
|
|
84
|
+
/* @__PURE__ */ d("p", {
|
|
85
|
+
id: r + "windowHelp",
|
|
86
|
+
className: A,
|
|
87
|
+
children: t("cosmicintersection.mission.windowHelp", "One row per window: observation ID, duration in seconds, priority, start and end. Use ISO timestamps with a time zone. Repeat an observation ID for alternate windows.")
|
|
88
|
+
})
|
|
89
|
+
]
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ d(p, {
|
|
92
|
+
type: "submit",
|
|
93
|
+
children: j ? t("cosmicintersection.mission.planning", "Preparing preview…") : t("cosmicintersection.mission.plan", "Preview schedule")
|
|
94
|
+
})
|
|
95
|
+
]
|
|
96
|
+
}),
|
|
97
|
+
S ? /* @__PURE__ */ d("p", {
|
|
98
|
+
role: "alert",
|
|
99
|
+
className: "text-sm text-status-error-text",
|
|
100
|
+
children: t("cosmicintersection.mission.invalidWindows", "Check the window rows. Alternate windows must use the same duration and priority.")
|
|
101
|
+
}) : null,
|
|
102
|
+
a && M ? /* @__PURE__ */ d(N, {}) : null
|
|
103
|
+
]
|
|
104
|
+
}), /* @__PURE__ */ f("section", {
|
|
105
|
+
className: O,
|
|
106
|
+
"aria-live": "polite",
|
|
107
|
+
children: [/* @__PURE__ */ d("h2", {
|
|
108
|
+
className: "text-base font-semibold",
|
|
109
|
+
children: t("cosmicintersection.mission.scheduleResult", "Schedule preview")
|
|
110
|
+
}), P ? /* @__PURE__ */ f(u, { children: [
|
|
111
|
+
/* @__PURE__ */ f(g, { children: [/* @__PURE__ */ d(b, { children: /* @__PURE__ */ f(x, { children: [
|
|
112
|
+
/* @__PURE__ */ d(y, { children: t("cosmicintersection.mission.observation", "Observation") }),
|
|
113
|
+
/* @__PURE__ */ d(y, { children: t("cosmicintersection.mission.startUtc", "Start (UTC)") }),
|
|
114
|
+
/* @__PURE__ */ d(y, { children: t("cosmicintersection.mission.endUtc", "End (UTC)") })
|
|
115
|
+
] }) }), /* @__PURE__ */ d(_, { children: P.scheduled.map((e) => /* @__PURE__ */ f(x, { children: [
|
|
116
|
+
/* @__PURE__ */ d(v, { children: e.observationId }),
|
|
117
|
+
/* @__PURE__ */ d(v, { children: /* @__PURE__ */ d("time", {
|
|
118
|
+
dateTime: e.startsAt,
|
|
119
|
+
children: e.startsAt
|
|
120
|
+
}) }),
|
|
121
|
+
/* @__PURE__ */ d(v, { children: /* @__PURE__ */ d("time", {
|
|
122
|
+
dateTime: e.endsAt,
|
|
123
|
+
children: e.endsAt
|
|
124
|
+
}) })
|
|
125
|
+
] }, e.observationId)) })] }),
|
|
126
|
+
P.scheduled.length === 0 ? /* @__PURE__ */ d("p", {
|
|
127
|
+
className: A,
|
|
128
|
+
children: t("cosmicintersection.mission.noneScheduled", "No observations fit.")
|
|
129
|
+
}) : null,
|
|
130
|
+
P.unscheduled.length > 0 ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("h3", {
|
|
131
|
+
className: "text-sm font-medium",
|
|
132
|
+
children: t("cosmicintersection.mission.unscheduled", "Unscheduled observations")
|
|
133
|
+
}), /* @__PURE__ */ d("ul", {
|
|
134
|
+
className: "space-y-1 text-sm text-text-secondary",
|
|
135
|
+
children: P.unscheduled.map((e) => /* @__PURE__ */ f("li", { children: [
|
|
136
|
+
e.observationId,
|
|
137
|
+
" · ",
|
|
138
|
+
i(e.reason)
|
|
139
|
+
] }, e.observationId))
|
|
140
|
+
})] }) : null
|
|
141
|
+
] }) : null]
|
|
142
|
+
})]
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function M() {
|
|
146
|
+
let e = n(), r = c(), [a, o] = l(!1), [g, _] = l(!1), [v, { data: y, loading: b, error: x }] = D(t, {
|
|
147
|
+
fetchPolicy: "no-cache",
|
|
148
|
+
errorPolicy: "none"
|
|
149
|
+
}), S = a && !b && !x ? y?.cosEvaluateMissionTelemetry[0] : void 0;
|
|
150
|
+
return /* @__PURE__ */ f("div", {
|
|
151
|
+
className: "grid gap-4 lg:grid-cols-2",
|
|
152
|
+
children: [/* @__PURE__ */ f("form", {
|
|
153
|
+
className: O,
|
|
154
|
+
onSubmit: (e) => {
|
|
155
|
+
e.preventDefault();
|
|
156
|
+
let t = s(new FormData(e.currentTarget));
|
|
157
|
+
_(!t), o(!!t), t && v({ variables: { input: t } }).catch(() => void 0);
|
|
158
|
+
},
|
|
159
|
+
onChange: () => {
|
|
160
|
+
o(!1), _(!1);
|
|
161
|
+
},
|
|
162
|
+
"aria-busy": b,
|
|
163
|
+
children: [
|
|
164
|
+
/* @__PURE__ */ f("fieldset", {
|
|
165
|
+
disabled: b,
|
|
166
|
+
className: "space-y-4",
|
|
167
|
+
children: [
|
|
168
|
+
/* @__PURE__ */ d("legend", {
|
|
169
|
+
className: "mb-3 text-base font-semibold",
|
|
170
|
+
children: e("cosmicintersection.mission.telemetryHeading", "Telemetry samples")
|
|
171
|
+
}),
|
|
172
|
+
/* @__PURE__ */ f("div", {
|
|
173
|
+
className: "grid gap-3 sm:grid-cols-2",
|
|
174
|
+
children: [
|
|
175
|
+
/* @__PURE__ */ f("div", {
|
|
176
|
+
className: k,
|
|
177
|
+
children: [/* @__PURE__ */ d(h, {
|
|
178
|
+
htmlFor: r + "signal",
|
|
179
|
+
children: e("cosmicintersection.mission.signal", "Signal ID")
|
|
180
|
+
}), /* @__PURE__ */ d(m, {
|
|
181
|
+
id: r + "signal",
|
|
182
|
+
name: "signal",
|
|
183
|
+
maxLength: 128,
|
|
184
|
+
required: !0
|
|
185
|
+
})]
|
|
186
|
+
}),
|
|
187
|
+
/* @__PURE__ */ f("div", {
|
|
188
|
+
className: k,
|
|
189
|
+
children: [/* @__PURE__ */ d(h, {
|
|
190
|
+
htmlFor: r + "evaluatedAt",
|
|
191
|
+
children: e("cosmicintersection.mission.evaluatedAt", "Evaluate at (ISO timestamp)")
|
|
192
|
+
}), /* @__PURE__ */ d(m, {
|
|
193
|
+
id: r + "evaluatedAt",
|
|
194
|
+
name: "evaluatedAt",
|
|
195
|
+
maxLength: 35,
|
|
196
|
+
placeholder: "2027-01-15T01:00:30Z",
|
|
197
|
+
required: !0
|
|
198
|
+
})]
|
|
199
|
+
}),
|
|
200
|
+
/* @__PURE__ */ f("div", {
|
|
201
|
+
className: k,
|
|
202
|
+
children: [/* @__PURE__ */ d(h, {
|
|
203
|
+
htmlFor: r + "minimum",
|
|
204
|
+
children: e("cosmicintersection.mission.minimum", "Minimum threshold")
|
|
205
|
+
}), /* @__PURE__ */ d(m, {
|
|
206
|
+
id: r + "minimum",
|
|
207
|
+
name: "minimum",
|
|
208
|
+
type: "number",
|
|
209
|
+
step: "any"
|
|
210
|
+
})]
|
|
211
|
+
}),
|
|
212
|
+
/* @__PURE__ */ f("div", {
|
|
213
|
+
className: k,
|
|
214
|
+
children: [/* @__PURE__ */ d(h, {
|
|
215
|
+
htmlFor: r + "maximum",
|
|
216
|
+
children: e("cosmicintersection.mission.maximum", "Maximum threshold")
|
|
217
|
+
}), /* @__PURE__ */ d(m, {
|
|
218
|
+
id: r + "maximum",
|
|
219
|
+
name: "maximum",
|
|
220
|
+
type: "number",
|
|
221
|
+
step: "any"
|
|
222
|
+
})]
|
|
223
|
+
}),
|
|
224
|
+
/* @__PURE__ */ f("div", {
|
|
225
|
+
className: k,
|
|
226
|
+
children: [/* @__PURE__ */ d(h, {
|
|
227
|
+
htmlFor: r + "breachSamples",
|
|
228
|
+
children: e("cosmicintersection.mission.breachSamples", "Consecutive samples for a breach")
|
|
229
|
+
}), /* @__PURE__ */ d(m, {
|
|
230
|
+
id: r + "breachSamples",
|
|
231
|
+
name: "breachSamples",
|
|
232
|
+
type: "number",
|
|
233
|
+
min: 1,
|
|
234
|
+
max: 100,
|
|
235
|
+
defaultValue: 2,
|
|
236
|
+
required: !0
|
|
237
|
+
})]
|
|
238
|
+
}),
|
|
239
|
+
/* @__PURE__ */ f("div", {
|
|
240
|
+
className: k,
|
|
241
|
+
children: [/* @__PURE__ */ d(h, {
|
|
242
|
+
htmlFor: r + "maxGapSeconds",
|
|
243
|
+
children: e("cosmicintersection.mission.maxGap", "Staleness after seconds")
|
|
244
|
+
}), /* @__PURE__ */ d(m, {
|
|
245
|
+
id: r + "maxGapSeconds",
|
|
246
|
+
name: "maxGapSeconds",
|
|
247
|
+
type: "number",
|
|
248
|
+
min: 1,
|
|
249
|
+
max: 86400,
|
|
250
|
+
defaultValue: 30,
|
|
251
|
+
required: !0
|
|
252
|
+
})]
|
|
253
|
+
})
|
|
254
|
+
]
|
|
255
|
+
}),
|
|
256
|
+
/* @__PURE__ */ f("div", {
|
|
257
|
+
className: k,
|
|
258
|
+
children: [
|
|
259
|
+
/* @__PURE__ */ d(h, {
|
|
260
|
+
htmlFor: r + "samples",
|
|
261
|
+
children: e("cosmicintersection.mission.samples", "Samples")
|
|
262
|
+
}),
|
|
263
|
+
/* @__PURE__ */ d(E, {
|
|
264
|
+
id: r + "samples",
|
|
265
|
+
name: "samples",
|
|
266
|
+
rows: 5,
|
|
267
|
+
maxLength: 4e4,
|
|
268
|
+
"aria-describedby": r + "sampleHelp",
|
|
269
|
+
placeholder: "2027-01-15T01:00:15Z, 21.5"
|
|
270
|
+
}),
|
|
271
|
+
/* @__PURE__ */ d("p", {
|
|
272
|
+
id: r + "sampleHelp",
|
|
273
|
+
className: A,
|
|
274
|
+
children: e("cosmicintersection.mission.sampleHelp", "One row per sample: ISO timestamp with time zone, then numeric value. Supply at least one threshold.")
|
|
275
|
+
})
|
|
276
|
+
]
|
|
277
|
+
}),
|
|
278
|
+
/* @__PURE__ */ d(p, {
|
|
279
|
+
type: "submit",
|
|
280
|
+
children: b ? e("cosmicintersection.mission.evaluating", "Evaluating samples…") : e("cosmicintersection.mission.evaluate", "Evaluate samples")
|
|
281
|
+
})
|
|
282
|
+
]
|
|
283
|
+
}),
|
|
284
|
+
g ? /* @__PURE__ */ d("p", {
|
|
285
|
+
role: "alert",
|
|
286
|
+
className: "text-sm text-status-error-text",
|
|
287
|
+
children: e("cosmicintersection.mission.invalidSamples", "Check the sample rows and supply a minimum or maximum threshold.")
|
|
288
|
+
}) : null,
|
|
289
|
+
a && x ? /* @__PURE__ */ d(N, {}) : null
|
|
290
|
+
]
|
|
291
|
+
}), /* @__PURE__ */ f("section", {
|
|
292
|
+
className: O,
|
|
293
|
+
"aria-live": "polite",
|
|
294
|
+
children: [/* @__PURE__ */ d("h2", {
|
|
295
|
+
className: "text-base font-semibold",
|
|
296
|
+
children: e("cosmicintersection.mission.telemetryResult", "Signal status")
|
|
297
|
+
}), S ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("p", {
|
|
298
|
+
className: "text-lg font-semibold",
|
|
299
|
+
children: i(S.status)
|
|
300
|
+
}), /* @__PURE__ */ f("dl", {
|
|
301
|
+
className: "grid grid-cols-[max-content_1fr] gap-2 text-sm",
|
|
302
|
+
children: [
|
|
303
|
+
/* @__PURE__ */ d("dt", {
|
|
304
|
+
className: A,
|
|
305
|
+
children: e("cosmicintersection.mission.signal", "Signal ID")
|
|
306
|
+
}),
|
|
307
|
+
/* @__PURE__ */ d("dd", { children: S.signalId }),
|
|
308
|
+
/* @__PURE__ */ d("dt", {
|
|
309
|
+
className: A,
|
|
310
|
+
children: e("cosmicintersection.mission.latestValue", "Latest value")
|
|
311
|
+
}),
|
|
312
|
+
/* @__PURE__ */ d("dd", { children: S.latestValue ?? "—" }),
|
|
313
|
+
/* @__PURE__ */ d("dt", {
|
|
314
|
+
className: A,
|
|
315
|
+
children: e("cosmicintersection.mission.latestObserved", "Observed at (UTC)")
|
|
316
|
+
}),
|
|
317
|
+
/* @__PURE__ */ d("dd", { children: S.latestObservedAt ?? "—" }),
|
|
318
|
+
/* @__PURE__ */ d("dt", {
|
|
319
|
+
className: A,
|
|
320
|
+
children: e("cosmicintersection.mission.breachCount", "Consecutive breaches")
|
|
321
|
+
}),
|
|
322
|
+
/* @__PURE__ */ d("dd", { children: S.consecutiveBreachSamples })
|
|
323
|
+
]
|
|
324
|
+
})] }) : null]
|
|
325
|
+
})]
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
function N() {
|
|
329
|
+
let e = n();
|
|
330
|
+
return /* @__PURE__ */ d("p", {
|
|
331
|
+
role: "alert",
|
|
332
|
+
className: "text-sm text-status-error-text",
|
|
333
|
+
children: e("cosmicintersection.mission.requestFailed", "The preview could not run. Check your input and workspace access, then try again.")
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
function P() {
|
|
337
|
+
let e = n(), { currentUser: t, workspaceId: i, tenantId: o, organizationId: s, projectId: c } = a(), l = JSON.stringify([
|
|
338
|
+
t?.id,
|
|
339
|
+
i,
|
|
340
|
+
o,
|
|
341
|
+
s,
|
|
342
|
+
c
|
|
343
|
+
]);
|
|
344
|
+
return /* @__PURE__ */ d(r, {
|
|
345
|
+
title: e("cosmicintersection.mission.title", "Mission previews"),
|
|
346
|
+
description: e("cosmicintersection.mission.description", "Preview a schedule from supplied windows or evaluate telemetry samples. Inputs are not saved and previews send no alerts."),
|
|
347
|
+
backPath: "sources",
|
|
348
|
+
children: i ? /* @__PURE__ */ f(S, {
|
|
349
|
+
defaultValue: "observation",
|
|
350
|
+
children: [
|
|
351
|
+
/* @__PURE__ */ f(w, {
|
|
352
|
+
"aria-label": e("cosmicintersection.mission.tools", "Mission previews"),
|
|
353
|
+
children: [/* @__PURE__ */ d(T, {
|
|
354
|
+
value: "observation",
|
|
355
|
+
children: e("cosmicintersection.mission.plannerTab", "Observation planning")
|
|
356
|
+
}), /* @__PURE__ */ d(T, {
|
|
357
|
+
value: "telemetry",
|
|
358
|
+
children: e("cosmicintersection.mission.telemetryTab", "Telemetry evaluation")
|
|
359
|
+
})]
|
|
360
|
+
}),
|
|
361
|
+
/* @__PURE__ */ d(C, {
|
|
362
|
+
value: "observation",
|
|
363
|
+
children: /* @__PURE__ */ d(j, {})
|
|
364
|
+
}),
|
|
365
|
+
/* @__PURE__ */ d(C, {
|
|
366
|
+
value: "telemetry",
|
|
367
|
+
children: /* @__PURE__ */ d(M, {})
|
|
368
|
+
})
|
|
369
|
+
]
|
|
370
|
+
}, l) : /* @__PURE__ */ d("p", {
|
|
371
|
+
className: A,
|
|
372
|
+
children: e("cosmicintersection.mission.workspaceRequired", "Select a workspace to run a preview.")
|
|
373
|
+
})
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
export { P as default };
|
|
377
|
+
|
|
378
|
+
//# sourceMappingURL=MissionPreviewPage.js.map
|