@burdenoff/microfe-labsofscience 2026.820.2 → 2026.820.4

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.
Files changed (46) hide show
  1. package/dist/labsofscience/LabsOfScienceRoutes.d.ts.map +1 -1
  2. package/dist/labsofscience/LabsOfScienceRoutes.js +11 -7
  3. package/dist/labsofscience/LabsOfScienceRoutes.js.map +1 -1
  4. package/dist/labsofscience/components/ProvenancePanel.d.ts +14 -0
  5. package/dist/labsofscience/components/ProvenancePanel.d.ts.map +1 -0
  6. package/dist/labsofscience/components/ProvenancePanel.js +113 -0
  7. package/dist/labsofscience/components/ProvenancePanel.js.map +1 -0
  8. package/dist/labsofscience/components/provenanceMapping.d.ts +35 -0
  9. package/dist/labsofscience/components/provenanceMapping.d.ts.map +1 -0
  10. package/dist/labsofscience/components/provenanceMapping.js +101 -0
  11. package/dist/labsofscience/components/provenanceMapping.js.map +1 -0
  12. package/dist/labsofscience/hooks/index.d.ts +1 -1
  13. package/dist/labsofscience/hooks/index.d.ts.map +1 -1
  14. package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts +24 -1
  15. package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts.map +1 -1
  16. package/dist/labsofscience/hooks/useLabsOfScienceApi.js +113 -54
  17. package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
  18. package/dist/labsofscience/pages/OverviewPage.d.ts +3 -3
  19. package/dist/labsofscience/pages/OverviewPage.d.ts.map +1 -1
  20. package/dist/labsofscience/pages/OverviewPage.js +240 -176
  21. package/dist/labsofscience/pages/OverviewPage.js.map +1 -1
  22. package/dist/labsofscience/pages/ai/AiOperationsPage.js +10 -10
  23. package/dist/labsofscience/pages/analytics/AnalyticsPage.d.ts +9 -0
  24. package/dist/labsofscience/pages/analytics/AnalyticsPage.d.ts.map +1 -0
  25. package/dist/labsofscience/pages/analytics/AnalyticsPage.js +283 -0
  26. package/dist/labsofscience/pages/analytics/AnalyticsPage.js.map +1 -0
  27. package/dist/labsofscience/pages/datasets/DatasetDetailPage.d.ts.map +1 -1
  28. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js +80 -75
  29. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js.map +1 -1
  30. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.d.ts.map +1 -1
  31. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +125 -121
  32. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js.map +1 -1
  33. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +11 -11
  34. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js +9 -9
  35. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +9 -9
  36. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.d.ts.map +1 -1
  37. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.js +82 -77
  38. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.js.map +1 -1
  39. package/dist/labsofscience/pages/pipelines/PipelinesPage.d.ts.map +1 -1
  40. package/dist/labsofscience/pages/pipelines/PipelinesPage.js +85 -118
  41. package/dist/labsofscience/pages/pipelines/PipelinesPage.js.map +1 -1
  42. package/dist/labsofscience/pages/projects/ProjectDetailPage.js +15 -15
  43. package/dist/labsofscience/pages/projects/ProjectsListPage.js +12 -12
  44. package/dist/labsofscience/types/index.d.ts +73 -0
  45. package/dist/labsofscience/types/index.d.ts.map +1 -1
  46. package/package.json +2 -1
@@ -2,10 +2,10 @@ import { useLabsOfScience as e } from "../../context/LabsOfScienceContext.js";
2
2
  import { PageLayout as t } from "../../components/PageLayout.js";
3
3
  import { StatusBadge as n } from "../../components/StatusBadge.js";
4
4
  import { QueryBoundary as r } from "../../components/QueryStates.js";
5
- import { useAgentRuns as i } from "../../hooks/useLabsOfScienceApi.js";
6
- import { formatDate as a, formatRelativeTime as o, titleCase as s } from "../../utils/formatters.js";
7
- import { EmptyState as c } from "../../components/EmptyState.js";
8
- import { useLabActorNames as l } from "../../hooks/useLabActorNames.js";
5
+ import { useLabActorNames as i } from "../../hooks/useLabActorNames.js";
6
+ import { useAgentRuns as a } from "../../hooks/useLabsOfScienceApi.js";
7
+ import { formatDate as o, formatRelativeTime as s, titleCase as c } from "../../utils/formatters.js";
8
+ import { EmptyState as l } from "../../components/EmptyState.js";
9
9
  import { DetailSection as u } from "../shared/DetailComponents.js";
10
10
  import { describeDecision as d, formatLatency as f, formatTokens as p } from "./aiReaders.js";
11
11
  import { OverrideDecisionDialog as m, RecommendNextRunDialog as h, SuggestProtocolDialog as g } from "./AiDialogs.js";
@@ -18,10 +18,10 @@ import { Button as E, Pagination as D, ResponsiveTable as O } from "@burdenoff/f
18
18
  //#region src/labsofscience/pages/ai/AiOperationsPage.tsx
19
19
  var k = 20;
20
20
  function A() {
21
- let { navigateTo: A } = e(), [j, M] = y(1), [N, P] = y(!1), [F, I] = y(!1), [L, R] = y(null), z = i({ pagination: {
21
+ let { navigateTo: A } = e(), [j, M] = y(1), [N, P] = y(!1), [F, I] = y(!1), [L, R] = y(null), z = a({ pagination: {
22
22
  limit: k,
23
23
  offset: (j - 1) * k
24
- } }), B = z.data?.items ?? [], V = z.data?.pageInfo.hasMore ?? !1, { nameOf: H } = l(B.map((e) => e.actorType === "user" ? e.actorId : null)), U = B.filter((e) => d(e.decision).kind !== "none");
24
+ } }), B = z.data?.items ?? [], V = z.data?.pageInfo.hasMore ?? !1, { nameOf: H } = i(B.map((e) => e.actorType === "user" ? e.actorId : null)), U = B.filter((e) => d(e.decision).kind !== "none");
25
25
  return /* @__PURE__ */ T(t, {
26
26
  title: "AI Operations",
27
27
  description: "The model this workspace uses, every decision it has taken, and your call on each one.",
@@ -49,7 +49,7 @@ function A() {
49
49
  error: z.error,
50
50
  onRetry: () => void z.refetch(),
51
51
  loadingLabel: "Loading decisions…",
52
- children: B.length === 0 ? /* @__PURE__ */ w(c, {
52
+ children: B.length === 0 ? /* @__PURE__ */ w(l, {
53
53
  icon: /* @__PURE__ */ w(b, { className: "h-10 w-10" }),
54
54
  title: "No decisions yet",
55
55
  description: "Nothing has been asked of the AI in this workspace. Every attempt — including the ones that fail — is recorded here, newest first.",
@@ -72,9 +72,9 @@ function A() {
72
72
  priority: "primary",
73
73
  cell: (e) => /* @__PURE__ */ w("time", {
74
74
  dateTime: e.createdAt,
75
- title: a(e.createdAt),
75
+ title: o(e.createdAt),
76
76
  className: "text-text-secondary",
77
- children: o(e.createdAt)
77
+ children: s(e.createdAt)
78
78
  })
79
79
  },
80
80
  {
@@ -109,7 +109,7 @@ function A() {
109
109
  priority: "hidden-on-mobile",
110
110
  cell: (e) => /* @__PURE__ */ w("span", {
111
111
  className: "text-text-secondary",
112
- children: e.actorType === "user" ? H(e.actorId) : s(e.actorType)
112
+ children: e.actorType === "user" ? H(e.actorId) : c(e.actorType)
113
113
  })
114
114
  },
115
115
  {
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Research Analytics dashboard page
3
+ * @module labsofscience/pages/analytics
4
+ *
5
+ * Workspace-scoped read-only analytics for LabsOfScience: experiment/run
6
+ * throughput, status distributions, ELN attestation counts, and summary KPIs.
7
+ */
8
+ export declare function AnalyticsPage(): import("react").JSX.Element;
9
+ //# sourceMappingURL=AnalyticsPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnalyticsPage.d.ts","sourceRoot":"","sources":["../../../../src/labsofscience/pages/analytics/AnalyticsPage.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAuQH,wBAAgB,aAAa,gCA8C5B"}
@@ -0,0 +1,283 @@
1
+ import { PageLayout as e } from "../../components/PageLayout.js";
2
+ import { MetricsCard as t } from "../../components/MetricsCard.js";
3
+ import { QueryBoundary as n } from "../../components/QueryStates.js";
4
+ import { useResearchAnalytics as r } from "../../hooks/useLabsOfScienceApi.js";
5
+ import { useMemo as i } from "react";
6
+ import { BarChart2 as a, BookOpen as o, CheckCircle2 as s, Clock as c, Database as l, FlaskConical as u, GitBranch as d } from "lucide-react";
7
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
8
+ import { Bar as m, BarChart as h, CartesianGrid as g, Cell as _, ComposedChart as v, Legend as y, Line as b, Pie as x, PieChart as S, ResponsiveContainer as C, Tooltip as w, XAxis as T, YAxis as E } from "recharts";
9
+ //#region src/labsofscience/pages/analytics/AnalyticsPage.tsx
10
+ var D = [
11
+ "var(--color-chart-1)",
12
+ "var(--color-chart-2)",
13
+ "var(--color-chart-3)",
14
+ "var(--color-chart-4)",
15
+ "var(--color-chart-5)",
16
+ "var(--color-chart-6)",
17
+ "var(--color-chart-7)",
18
+ "var(--color-chart-8)"
19
+ ], O = {
20
+ background: "var(--color-bg-surface)",
21
+ border: "1px solid var(--color-border-default)",
22
+ borderRadius: "6px",
23
+ fontSize: "12px"
24
+ };
25
+ function k(e) {
26
+ return `${e.toFixed(1)}%`;
27
+ }
28
+ function A(e) {
29
+ if (e === 0) return "0m";
30
+ let t = Math.floor(e / 60), n = Math.round(e % 60);
31
+ return t === 0 ? `${n}m` : n === 0 ? `${t}h` : `${t}h ${n}m`;
32
+ }
33
+ function j(e) {
34
+ let t = e.split("-");
35
+ return t.length === 2 ? t[1] : e;
36
+ }
37
+ function M(e) {
38
+ return e.map((e) => ({
39
+ status: e.status,
40
+ count: e.count
41
+ }));
42
+ }
43
+ function N({ title: e, icon: t, children: n, className: r }) {
44
+ return /* @__PURE__ */ p("section", {
45
+ className: `rounded-2xl border border-border-seam bg-bg-surface p-4 shadow-sm md:p-5 ${r ?? ""}`,
46
+ children: [/* @__PURE__ */ p("div", {
47
+ className: "mb-4 flex items-center gap-2",
48
+ children: [/* @__PURE__ */ f("span", {
49
+ className: "text-text-secondary",
50
+ children: t
51
+ }), /* @__PURE__ */ f("h2", {
52
+ className: "text-sm font-semibold text-text-primary",
53
+ children: e
54
+ })]
55
+ }), n]
56
+ });
57
+ }
58
+ function P() {
59
+ return /* @__PURE__ */ f("div", {
60
+ className: "flex h-[200px] items-center justify-center text-sm text-text-secondary",
61
+ children: "No data available for the selected range"
62
+ });
63
+ }
64
+ function F({ data: e }) {
65
+ let t = i(() => e.map((e) => ({
66
+ label: j(e.week),
67
+ experiments: e.experiments,
68
+ runs: e.runs
69
+ })), [e]);
70
+ return t.length === 0 ? /* @__PURE__ */ f(P, {}) : /* @__PURE__ */ f(C, {
71
+ width: "100%",
72
+ height: 300,
73
+ children: /* @__PURE__ */ p(v, {
74
+ data: t,
75
+ margin: {
76
+ top: 5,
77
+ right: 10,
78
+ left: 0,
79
+ bottom: 5
80
+ },
81
+ children: [
82
+ /* @__PURE__ */ f(g, {
83
+ strokeDasharray: "3 3",
84
+ stroke: "var(--color-border-default)",
85
+ opacity: .3
86
+ }),
87
+ /* @__PURE__ */ f(T, {
88
+ dataKey: "label",
89
+ tick: {
90
+ fill: "var(--color-text-secondary)",
91
+ fontSize: 11
92
+ },
93
+ axisLine: { stroke: "var(--color-border-default)" }
94
+ }),
95
+ /* @__PURE__ */ f(E, {
96
+ tick: {
97
+ fill: "var(--color-text-secondary)",
98
+ fontSize: 11
99
+ },
100
+ axisLine: { stroke: "var(--color-border-default)" },
101
+ allowDecimals: !1
102
+ }),
103
+ /* @__PURE__ */ f(w, { contentStyle: O }),
104
+ /* @__PURE__ */ f(y, { wrapperStyle: { fontSize: "12px" } }),
105
+ /* @__PURE__ */ f(m, {
106
+ dataKey: "experiments",
107
+ name: "Experiments",
108
+ fill: "var(--color-chart-1)",
109
+ radius: [
110
+ 4,
111
+ 4,
112
+ 0,
113
+ 0
114
+ ]
115
+ }),
116
+ /* @__PURE__ */ f(b, {
117
+ type: "monotone",
118
+ dataKey: "runs",
119
+ name: "Runs",
120
+ stroke: "var(--color-chart-2)",
121
+ strokeWidth: 2,
122
+ dot: !1
123
+ })
124
+ ]
125
+ })
126
+ });
127
+ }
128
+ function I({ data: e }) {
129
+ let t = i(() => M(e), [e]);
130
+ return t.length === 0 ? /* @__PURE__ */ f(P, {}) : /* @__PURE__ */ f(C, {
131
+ width: "100%",
132
+ height: 250,
133
+ children: /* @__PURE__ */ p(S, { children: [
134
+ /* @__PURE__ */ f(x, {
135
+ data: t,
136
+ dataKey: "count",
137
+ nameKey: "status",
138
+ cx: "40%",
139
+ cy: "50%",
140
+ innerRadius: 55,
141
+ outerRadius: 80,
142
+ paddingAngle: 2,
143
+ children: t.map((e, t) => /* @__PURE__ */ f(_, { fill: D[t % D.length] }, `cell-${t}`))
144
+ }),
145
+ /* @__PURE__ */ f(w, { contentStyle: O }),
146
+ /* @__PURE__ */ f(y, {
147
+ layout: "vertical",
148
+ align: "right",
149
+ verticalAlign: "middle",
150
+ wrapperStyle: { fontSize: "11px" }
151
+ })
152
+ ] })
153
+ });
154
+ }
155
+ function L({ data: e }) {
156
+ let t = i(() => M(e), [e]);
157
+ return t.length === 0 ? /* @__PURE__ */ f(P, {}) : /* @__PURE__ */ f(C, {
158
+ width: "100%",
159
+ height: 250,
160
+ children: /* @__PURE__ */ p(h, {
161
+ data: t,
162
+ margin: {
163
+ top: 5,
164
+ right: 10,
165
+ left: 0,
166
+ bottom: 5
167
+ },
168
+ children: [
169
+ /* @__PURE__ */ f(g, {
170
+ strokeDasharray: "3 3",
171
+ stroke: "var(--color-border-default)",
172
+ opacity: .3
173
+ }),
174
+ /* @__PURE__ */ f(T, {
175
+ dataKey: "status",
176
+ tick: {
177
+ fill: "var(--color-text-secondary)",
178
+ fontSize: 11
179
+ },
180
+ axisLine: { stroke: "var(--color-border-default)" }
181
+ }),
182
+ /* @__PURE__ */ f(E, {
183
+ tick: {
184
+ fill: "var(--color-text-secondary)",
185
+ fontSize: 11
186
+ },
187
+ axisLine: { stroke: "var(--color-border-default)" },
188
+ allowDecimals: !1
189
+ }),
190
+ /* @__PURE__ */ f(w, { contentStyle: O }),
191
+ /* @__PURE__ */ f(m, {
192
+ dataKey: "count",
193
+ radius: [
194
+ 4,
195
+ 4,
196
+ 0,
197
+ 0
198
+ ],
199
+ children: t.map((e, t) => /* @__PURE__ */ f(_, { fill: D[t % D.length] }, `cell-${t}`))
200
+ })
201
+ ]
202
+ })
203
+ });
204
+ }
205
+ function R({ summary: e }) {
206
+ return /* @__PURE__ */ p("div", {
207
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
208
+ children: [
209
+ /* @__PURE__ */ f(t, {
210
+ featured: !0,
211
+ icon: /* @__PURE__ */ f(u, {}),
212
+ value: e.experimentsCompleted,
213
+ label: "Experiments completed"
214
+ }),
215
+ /* @__PURE__ */ f(t, {
216
+ icon: /* @__PURE__ */ f(s, {}),
217
+ value: k(e.runSuccessRate),
218
+ label: "Run success rate"
219
+ }),
220
+ /* @__PURE__ */ f(t, {
221
+ icon: /* @__PURE__ */ f(l, {}),
222
+ value: e.datasetVersions,
223
+ label: "Dataset versions"
224
+ }),
225
+ /* @__PURE__ */ f(t, {
226
+ icon: /* @__PURE__ */ f(c, {}),
227
+ value: A(e.averageTimeToSignMinutes),
228
+ label: "Avg. time to sign"
229
+ })
230
+ ]
231
+ });
232
+ }
233
+ function z() {
234
+ let { data: t, isLoading: i, isError: s, error: c, refetch: l } = r(12);
235
+ return /* @__PURE__ */ f(e, {
236
+ hero: !0,
237
+ title: "Research Analytics",
238
+ description: "Workspace-level trends and KPIs across experiments, runs, pipelines, and the ELN.",
239
+ children: /* @__PURE__ */ f(n, {
240
+ isLoading: i,
241
+ isError: s,
242
+ error: c,
243
+ onRetry: () => l(),
244
+ loadingLabel: "Loading research analytics…",
245
+ children: t && /* @__PURE__ */ p("div", {
246
+ className: "space-y-8",
247
+ children: [
248
+ /* @__PURE__ */ f(R, { summary: t.summary }),
249
+ /* @__PURE__ */ f(N, {
250
+ title: "Weekly throughput",
251
+ icon: /* @__PURE__ */ f(a, { className: "h-4 w-4" }),
252
+ className: "lg:col-span-2",
253
+ children: /* @__PURE__ */ f(F, { data: t.experimentThroughputByWeek })
254
+ }),
255
+ /* @__PURE__ */ p("div", {
256
+ className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
257
+ children: [
258
+ /* @__PURE__ */ f(N, {
259
+ title: "Experiment status",
260
+ icon: /* @__PURE__ */ f(u, { className: "h-4 w-4" }),
261
+ children: /* @__PURE__ */ f(I, { data: t.experimentStatusDistribution })
262
+ }),
263
+ /* @__PURE__ */ f(N, {
264
+ title: "Pipeline run status",
265
+ icon: /* @__PURE__ */ f(d, { className: "h-4 w-4" }),
266
+ children: /* @__PURE__ */ f(L, { data: t.pipelineRunsByStatus })
267
+ }),
268
+ /* @__PURE__ */ f(N, {
269
+ title: "Notebook attestations",
270
+ icon: /* @__PURE__ */ f(o, { className: "h-4 w-4" }),
271
+ children: /* @__PURE__ */ f(L, { data: t.notebookEntriesByAttestation })
272
+ })
273
+ ]
274
+ })
275
+ ]
276
+ })
277
+ })
278
+ });
279
+ }
280
+ //#endregion
281
+ export { z as AnalyticsPage };
282
+
283
+ //# sourceMappingURL=AnalyticsPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnalyticsPage.js","names":[],"sources":["../../../../src/labsofscience/pages/analytics/AnalyticsPage.tsx"],"sourcesContent":["/**\n * Research Analytics dashboard page\n * @module labsofscience/pages/analytics\n *\n * Workspace-scoped read-only analytics for LabsOfScience: experiment/run\n * throughput, status distributions, ELN attestation counts, and summary KPIs.\n */\n\nimport { useMemo } from 'react';\nimport {\n BarChart,\n Bar,\n CartesianGrid,\n Cell,\n ComposedChart,\n Legend,\n Line,\n Pie,\n PieChart,\n ResponsiveContainer,\n Tooltip,\n XAxis,\n YAxis,\n} from 'recharts';\nimport {\n BarChart2,\n CheckCircle2,\n Clock,\n Database,\n FlaskConical,\n GitBranch,\n BookOpen,\n} from 'lucide-react';\n\nimport { PageLayout } from '../../components/PageLayout';\nimport { MetricsCard } from '../../components/MetricsCard';\nimport { QueryBoundary } from '../../components/QueryStates';\nimport { useResearchAnalytics } from '../../hooks/useLabsOfScienceApi';\nimport type {\n LabAttestationCount,\n LabResearchAnalytics,\n LabStatusCount,\n LabWeeklyThroughput,\n} from '../../types';\n\nconst CHART_COLORS = [\n 'var(--color-chart-1)',\n 'var(--color-chart-2)',\n 'var(--color-chart-3)',\n 'var(--color-chart-4)',\n 'var(--color-chart-5)',\n 'var(--color-chart-6)',\n 'var(--color-chart-7)',\n 'var(--color-chart-8)',\n];\n\nconst TOOLTIP_STYLE = {\n background: 'var(--color-bg-surface)',\n border: '1px solid var(--color-border-default)',\n borderRadius: '6px',\n fontSize: '12px',\n};\n\nfunction formatRate(value: number): string {\n return `${value.toFixed(1)}%`;\n}\n\nfunction formatMinutes(value: number): string {\n if (value === 0) return '0m';\n const hours = Math.floor(value / 60);\n const minutes = Math.round(value % 60);\n if (hours === 0) return `${minutes}m`;\n if (minutes === 0) return `${hours}h`;\n return `${hours}h ${minutes}m`;\n}\n\nfunction formatWeek(week: string): string {\n // `2026-W33` -> `W33`\n const parts = week.split('-');\n return parts.length === 2 ? parts[1] : week;\n}\n\nfunction toChartBuckets(items: LabStatusCount[] | LabAttestationCount[]): LabStatusCount[] {\n return items.map((item) => ({ status: item.status, count: item.count }));\n}\n\ninterface ChartCardProps {\n title: string;\n icon: React.ReactNode;\n children: React.ReactNode;\n className?: string;\n}\n\nfunction ChartCard({ title, icon, children, className }: ChartCardProps) {\n return (\n <section\n className={`rounded-2xl border border-border-seam bg-bg-surface p-4 shadow-sm md:p-5 ${className ?? ''}`}\n >\n <div className=\"mb-4 flex items-center gap-2\">\n <span className=\"text-text-secondary\">{icon}</span>\n <h2 className=\"text-sm font-semibold text-text-primary\">{title}</h2>\n </div>\n {children}\n </section>\n );\n}\n\nfunction EmptyChart() {\n return (\n <div className=\"flex h-[200px] items-center justify-center text-sm text-text-secondary\">\n No data available for the selected range\n </div>\n );\n}\n\ninterface ThroughputChartProps {\n data: LabWeeklyThroughput[];\n}\n\nfunction ThroughputChart({ data }: ThroughputChartProps) {\n const chartData = useMemo(\n () =>\n data.map((week) => ({\n label: formatWeek(week.week),\n experiments: week.experiments,\n runs: week.runs,\n })),\n [data]\n );\n\n if (chartData.length === 0) {\n return <EmptyChart />;\n }\n\n return (\n <ResponsiveContainer width=\"100%\" height={300}>\n <ComposedChart data={chartData} margin={{ top: 5, right: 10, left: 0, bottom: 5 }}>\n <CartesianGrid strokeDasharray=\"3 3\" stroke=\"var(--color-border-default)\" opacity={0.3} />\n <XAxis\n dataKey=\"label\"\n tick={{ fill: 'var(--color-text-secondary)', fontSize: 11 }}\n axisLine={{ stroke: 'var(--color-border-default)' }}\n />\n <YAxis\n tick={{ fill: 'var(--color-text-secondary)', fontSize: 11 }}\n axisLine={{ stroke: 'var(--color-border-default)' }}\n allowDecimals={false}\n />\n <Tooltip contentStyle={TOOLTIP_STYLE} />\n <Legend wrapperStyle={{ fontSize: '12px' }} />\n <Bar\n dataKey=\"experiments\"\n name=\"Experiments\"\n fill=\"var(--color-chart-1)\"\n radius={[4, 4, 0, 0]}\n />\n <Line\n type=\"monotone\"\n dataKey=\"runs\"\n name=\"Runs\"\n stroke=\"var(--color-chart-2)\"\n strokeWidth={2}\n dot={false}\n />\n </ComposedChart>\n </ResponsiveContainer>\n );\n}\n\ninterface StatusDonutChartProps {\n data: LabStatusCount[];\n}\n\nfunction StatusDonutChart({ data }: StatusDonutChartProps) {\n const chartData = useMemo(() => toChartBuckets(data), [data]);\n\n if (chartData.length === 0) {\n return <EmptyChart />;\n }\n\n return (\n <ResponsiveContainer width=\"100%\" height={250}>\n <PieChart>\n <Pie\n data={chartData}\n dataKey=\"count\"\n nameKey=\"status\"\n cx=\"40%\"\n cy=\"50%\"\n innerRadius={55}\n outerRadius={80}\n paddingAngle={2}\n >\n {chartData.map((_, index) => (\n <Cell key={`cell-${index}`} fill={CHART_COLORS[index % CHART_COLORS.length]} />\n ))}\n </Pie>\n <Tooltip contentStyle={TOOLTIP_STYLE} />\n <Legend\n layout=\"vertical\"\n align=\"right\"\n verticalAlign=\"middle\"\n wrapperStyle={{ fontSize: '11px' }}\n />\n </PieChart>\n </ResponsiveContainer>\n );\n}\n\ninterface StatusBarChartProps {\n data: LabStatusCount[];\n}\n\nfunction StatusBarChart({ data }: StatusBarChartProps) {\n const chartData = useMemo(() => toChartBuckets(data), [data]);\n\n if (chartData.length === 0) {\n return <EmptyChart />;\n }\n\n return (\n <ResponsiveContainer width=\"100%\" height={250}>\n <BarChart data={chartData} margin={{ top: 5, right: 10, left: 0, bottom: 5 }}>\n <CartesianGrid strokeDasharray=\"3 3\" stroke=\"var(--color-border-default)\" opacity={0.3} />\n <XAxis\n dataKey=\"status\"\n tick={{ fill: 'var(--color-text-secondary)', fontSize: 11 }}\n axisLine={{ stroke: 'var(--color-border-default)' }}\n />\n <YAxis\n tick={{ fill: 'var(--color-text-secondary)', fontSize: 11 }}\n axisLine={{ stroke: 'var(--color-border-default)' }}\n allowDecimals={false}\n />\n <Tooltip contentStyle={TOOLTIP_STYLE} />\n <Bar dataKey=\"count\" radius={[4, 4, 0, 0]}>\n {chartData.map((_, index) => (\n <Cell key={`cell-${index}`} fill={CHART_COLORS[index % CHART_COLORS.length]} />\n ))}\n </Bar>\n </BarChart>\n </ResponsiveContainer>\n );\n}\n\nfunction KpiCards({ summary }: { summary: LabResearchAnalytics['summary'] }) {\n return (\n <div className=\"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4\">\n <MetricsCard\n featured\n icon={<FlaskConical />}\n value={summary.experimentsCompleted}\n label=\"Experiments completed\"\n />\n <MetricsCard\n icon={<CheckCircle2 />}\n value={formatRate(summary.runSuccessRate)}\n label=\"Run success rate\"\n />\n <MetricsCard icon={<Database />} value={summary.datasetVersions} label=\"Dataset versions\" />\n <MetricsCard\n icon={<Clock />}\n value={formatMinutes(summary.averageTimeToSignMinutes)}\n label=\"Avg. time to sign\"\n />\n </div>\n );\n}\n\nexport function AnalyticsPage() {\n const { data, isLoading, isError, error, refetch } = useResearchAnalytics(12);\n\n return (\n <PageLayout\n hero\n title=\"Research Analytics\"\n description=\"Workspace-level trends and KPIs across experiments, runs, pipelines, and the ELN.\"\n >\n <QueryBoundary\n isLoading={isLoading}\n isError={isError}\n error={error}\n onRetry={() => refetch()}\n loadingLabel=\"Loading research analytics…\"\n >\n {data && (\n <div className=\"space-y-8\">\n <KpiCards summary={data.summary} />\n\n <ChartCard\n title=\"Weekly throughput\"\n icon={<BarChart2 className=\"h-4 w-4\" />}\n className=\"lg:col-span-2\"\n >\n <ThroughputChart data={data.experimentThroughputByWeek} />\n </ChartCard>\n\n <div className=\"grid grid-cols-1 gap-6 lg:grid-cols-3\">\n <ChartCard title=\"Experiment status\" icon={<FlaskConical className=\"h-4 w-4\" />}>\n <StatusDonutChart data={data.experimentStatusDistribution} />\n </ChartCard>\n\n <ChartCard title=\"Pipeline run status\" icon={<GitBranch className=\"h-4 w-4\" />}>\n <StatusBarChart data={data.pipelineRunsByStatus} />\n </ChartCard>\n\n <ChartCard title=\"Notebook attestations\" icon={<BookOpen className=\"h-4 w-4\" />}>\n <StatusBarChart data={data.notebookEntriesByAttestation} />\n </ChartCard>\n </div>\n </div>\n )}\n </QueryBoundary>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;AA6CA,IAAM,IAAe;CACnB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,GAEM,IAAgB;CACpB,YAAY;CACZ,QAAQ;CACR,cAAc;CACd,UAAU;AACZ;AAEA,SAAS,EAAW,GAAuB;CACzC,OAAO,GAAG,EAAM,QAAQ,CAAC,EAAE;AAC7B;AAEA,SAAS,EAAc,GAAuB;CAC5C,IAAI,MAAU,GAAG,OAAO;CACxB,IAAM,IAAQ,KAAK,MAAM,IAAQ,EAAE,GAC7B,IAAU,KAAK,MAAM,IAAQ,EAAE;CAGrC,OAFI,MAAU,IAAU,GAAG,EAAQ,KAC/B,MAAY,IAAU,GAAG,EAAM,KAC5B,GAAG,EAAM,IAAI,EAAQ;AAC9B;AAEA,SAAS,EAAW,GAAsB;CAExC,IAAM,IAAQ,EAAK,MAAM,GAAG;CAC5B,OAAO,EAAM,WAAW,IAAI,EAAM,KAAK;AACzC;AAEA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,cAAa;aAEZ,KACC,kBAAC,OAAD;IAAK,WAAU;cAAf;KACE,kBAAC,GAAD,EAAU,SAAS,EAAK,QAAU,CAAA;KAElC,kBAAC,GAAD;MACE,OAAM;MACN,MAAM,kBAAC,GAAD,EAAW,WAAU,UAAW,CAAA;MACtC,WAAU;gBAEV,kBAAC,GAAD,EAAiB,MAAM,EAAK,2BAA6B,CAAA;KAChD,CAAA;KAEX,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,GAAD;QAAW,OAAM;QAAoB,MAAM,kBAAC,GAAD,EAAc,WAAU,UAAW,CAAA;kBAC5E,kBAAC,GAAD,EAAkB,MAAM,EAAK,6BAA+B,CAAA;OACnD,CAAA;OAEX,kBAAC,GAAD;QAAW,OAAM;QAAsB,MAAM,kBAAC,GAAD,EAAW,WAAU,UAAW,CAAA;kBAC3E,kBAAC,GAAD,EAAgB,MAAM,EAAK,qBAAuB,CAAA;OACzC,CAAA;OAEX,kBAAC,GAAD;QAAW,OAAM;QAAwB,MAAM,kBAAC,GAAD,EAAU,WAAU,UAAW,CAAA;kBAC5E,kBAAC,GAAD,EAAgB,MAAM,EAAK,6BAA+B,CAAA;OACjD,CAAA;MACR;;IACF;;EAEM,CAAA;CACL,CAAA;AAEhB"}
@@ -1 +1 @@
1
- {"version":3,"file":"DatasetDetailPage.d.ts","sourceRoot":"","sources":["../../../../src/labsofscience/pages/datasets/DatasetDetailPage.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA8BH,wBAAgB,iBAAiB,gCA0KhC"}
1
+ {"version":3,"file":"DatasetDetailPage.d.ts","sourceRoot":"","sources":["../../../../src/labsofscience/pages/datasets/DatasetDetailPage.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA+BH,wBAAgB,iBAAiB,gCA4KhC"}
@@ -7,20 +7,21 @@ import { formatBytes as o, formatDate as s, formatNumber as c, titleCase as l }
7
7
  import { EmptyState as u } from "../../components/EmptyState.js";
8
8
  import { BackLink as d, DetailField as f, DetailSection as p, TagList as m } from "../shared/DetailComponents.js";
9
9
  import { DiscussionPanel as h } from "../../components/DiscussionPanel.js";
10
- import { AddDatasetVersionDialog as g } from "./AddDatasetVersionDialog.js";
11
- import { useState as _ } from "react";
12
- import { Archive as v, Database as y, Plus as b } from "lucide-react";
13
- import { useParams as x } from "react-router";
14
- import { jsx as S, jsxs as C } from "react/jsx-runtime";
15
- import { AlertDialog as w, AlertDialogAction as T, AlertDialogCancel as E, AlertDialogContent as D, AlertDialogDescription as O, AlertDialogFooter as k, AlertDialogHeader as A, AlertDialogTitle as j, Button as M, ResponsiveTable as N } from "@burdenoff/fe-libs/ui";
10
+ import { ProvenancePanel as g } from "../../components/ProvenancePanel.js";
11
+ import { AddDatasetVersionDialog as _ } from "./AddDatasetVersionDialog.js";
12
+ import { useState as v } from "react";
13
+ import { Archive as y, Database as b, Plus as x } from "lucide-react";
14
+ import { useParams as S } from "react-router";
15
+ import { jsx as C, jsxs as w } from "react/jsx-runtime";
16
+ import { AlertDialog as T, AlertDialogAction as E, AlertDialogCancel as D, AlertDialogContent as O, AlertDialogDescription as k, AlertDialogFooter as A, AlertDialogHeader as j, AlertDialogTitle as M, Button as N, ResponsiveTable as P } from "@burdenoff/fe-libs/ui";
16
17
  //#region src/labsofscience/pages/datasets/DatasetDetailPage.tsx
17
- function P() {
18
- let { id: P } = x(), { navigateTo: F } = e(), I = a(P), L = i(), [R, z] = _(!1), [B, V] = _(!1), H = I.data, U = [
18
+ function F() {
19
+ let { id: F } = S(), { navigateTo: I } = e(), L = a(F), R = i(), [z, B] = v(!1), [V, H] = v(!1), U = L.data, W = [
19
20
  {
20
21
  key: "version",
21
22
  header: "Version",
22
23
  priority: "primary",
23
- cell: (e) => /* @__PURE__ */ C("span", {
24
+ cell: (e) => /* @__PURE__ */ w("span", {
24
25
  className: "font-medium tabular-nums text-text-primary",
25
26
  children: ["v", e.version]
26
27
  })
@@ -28,7 +29,7 @@ function P() {
28
29
  {
29
30
  key: "size",
30
31
  header: "Size",
31
- cell: (e) => /* @__PURE__ */ S("span", {
32
+ cell: (e) => /* @__PURE__ */ C("span", {
32
33
  className: "text-text-secondary",
33
34
  children: o(e.sizeBytes)
34
35
  })
@@ -37,7 +38,7 @@ function P() {
37
38
  key: "rows",
38
39
  header: "Rows",
39
40
  priority: "hidden-on-mobile",
40
- cell: (e) => /* @__PURE__ */ S("span", {
41
+ cell: (e) => /* @__PURE__ */ C("span", {
41
42
  className: "text-text-secondary",
42
43
  children: e.rowCount === null ? "—" : c(e.rowCount)
43
44
  })
@@ -46,7 +47,7 @@ function P() {
46
47
  key: "checksum",
47
48
  header: "Checksum",
48
49
  priority: "hidden-on-mobile",
49
- cell: (e) => /* @__PURE__ */ S("span", {
50
+ cell: (e) => /* @__PURE__ */ C("span", {
50
51
  className: "font-mono text-xs text-text-tertiary",
51
52
  children: e.checksum ? `${e.checksum.slice(0, 12)}…` : "—"
52
53
  })
@@ -55,131 +56,135 @@ function P() {
55
56
  key: "createdAt",
56
57
  header: "Created",
57
58
  priority: "hidden-on-mobile",
58
- cell: (e) => /* @__PURE__ */ S("span", {
59
+ cell: (e) => /* @__PURE__ */ C("span", {
59
60
  className: "text-text-secondary",
60
61
  children: s(e.createdAt)
61
62
  })
62
63
  }
63
- ], W = async () => {
64
- H && (await L.mutateAsync(H.id), z(!1), F("datasets"));
64
+ ], G = async () => {
65
+ U && (await R.mutateAsync(U.id), B(!1), I("datasets"));
65
66
  };
66
- return /* @__PURE__ */ C(t, {
67
- title: H?.name ?? "Dataset",
68
- description: H ? l(H.kind) : void 0,
69
- actions: H ? /* @__PURE__ */ C(M, {
67
+ return /* @__PURE__ */ w(t, {
68
+ title: U?.name ?? "Dataset",
69
+ description: U ? l(U.kind) : void 0,
70
+ actions: U ? /* @__PURE__ */ w(N, {
70
71
  variant: "outline",
71
- onClick: () => z(!0),
72
- children: [/* @__PURE__ */ S(v, { className: "mr-2 h-4 w-4" }), "Archive"]
72
+ onClick: () => B(!0),
73
+ children: [/* @__PURE__ */ C(y, { className: "mr-2 h-4 w-4" }), "Archive"]
73
74
  }) : void 0,
74
75
  children: [
75
- /* @__PURE__ */ C("div", {
76
+ /* @__PURE__ */ w("div", {
76
77
  className: "space-y-4",
77
- children: [/* @__PURE__ */ S(d, {
78
+ children: [/* @__PURE__ */ C(d, {
78
79
  label: "Datasets",
79
- onClick: () => F("datasets")
80
- }), /* @__PURE__ */ S(r, {
81
- isLoading: I.isLoading,
82
- isError: I.isError,
83
- error: I.error,
84
- onRetry: () => void I.refetch(),
80
+ onClick: () => I("datasets")
81
+ }), /* @__PURE__ */ C(r, {
82
+ isLoading: L.isLoading,
83
+ isError: L.isError,
84
+ error: L.error,
85
+ onRetry: () => void L.refetch(),
85
86
  loadingLabel: "Loading dataset…",
86
- children: H ? /* @__PURE__ */ C("div", {
87
+ children: U ? /* @__PURE__ */ w("div", {
87
88
  className: "space-y-6",
88
89
  children: [
89
- /* @__PURE__ */ S(p, {
90
+ /* @__PURE__ */ C(p, {
90
91
  title: "Overview",
91
- children: /* @__PURE__ */ C("dl", {
92
+ children: /* @__PURE__ */ w("dl", {
92
93
  className: "grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2 lg:grid-cols-3",
93
94
  children: [
94
- /* @__PURE__ */ S(f, {
95
+ /* @__PURE__ */ C(f, {
95
96
  label: "Status",
96
- children: /* @__PURE__ */ S(n, { status: H.status })
97
+ children: /* @__PURE__ */ C(n, { status: U.status })
97
98
  }),
98
- /* @__PURE__ */ S(f, {
99
+ /* @__PURE__ */ C(f, {
99
100
  label: "Kind",
100
- children: l(H.kind)
101
+ children: l(U.kind)
101
102
  }),
102
- /* @__PURE__ */ C(f, {
103
+ /* @__PURE__ */ w(f, {
103
104
  label: "Latest version",
104
- children: ["v", H.latestVersion]
105
+ children: ["v", U.latestVersion]
105
106
  }),
106
- /* @__PURE__ */ S(f, {
107
+ /* @__PURE__ */ C(f, {
107
108
  label: "Created",
108
- children: s(H.createdAt)
109
+ children: s(U.createdAt)
109
110
  }),
110
- /* @__PURE__ */ S(f, {
111
+ /* @__PURE__ */ C(f, {
111
112
  label: "Updated",
112
- children: s(H.updatedAt)
113
+ children: s(U.updatedAt)
113
114
  }),
114
- /* @__PURE__ */ S(f, {
115
+ /* @__PURE__ */ C(f, {
115
116
  label: "Description",
116
117
  className: "sm:col-span-2 lg:col-span-3",
117
- children: H.description ?? "—"
118
+ children: U.description ?? "—"
118
119
  }),
119
- /* @__PURE__ */ S(f, {
120
+ /* @__PURE__ */ C(f, {
120
121
  label: "Tags",
121
122
  className: "sm:col-span-2 lg:col-span-3",
122
- children: /* @__PURE__ */ S(m, { tags: H.tags })
123
+ children: /* @__PURE__ */ C(m, { tags: U.tags })
123
124
  })
124
125
  ]
125
126
  })
126
127
  }),
127
- /* @__PURE__ */ S(p, {
128
- title: `Versions (${H.versions.length})`,
129
- action: /* @__PURE__ */ C(M, {
128
+ /* @__PURE__ */ C(p, {
129
+ title: `Versions (${U.versions.length})`,
130
+ action: /* @__PURE__ */ w(N, {
130
131
  size: "sm",
131
132
  variant: "outline",
132
- onClick: () => V(!0),
133
- children: [/* @__PURE__ */ S(b, { className: "mr-1.5 h-4 w-4" }), "Add version"]
133
+ onClick: () => H(!0),
134
+ children: [/* @__PURE__ */ C(x, { className: "mr-1.5 h-4 w-4" }), "Add version"]
134
135
  }),
135
- children: H.versions.length === 0 ? /* @__PURE__ */ S("p", {
136
+ children: U.versions.length === 0 ? /* @__PURE__ */ C("p", {
136
137
  className: "py-6 text-center text-sm text-text-secondary",
137
138
  children: "No versions yet. Versions are immutable snapshots with a checksum."
138
- }) : /* @__PURE__ */ S(N, {
139
- columns: U,
140
- data: [...H.versions].sort((e, t) => t.version - e.version),
139
+ }) : /* @__PURE__ */ C(P, {
140
+ columns: W,
141
+ data: [...U.versions].sort((e, t) => t.version - e.version),
141
142
  rowKey: (e) => e.id
142
143
  })
143
144
  }),
144
- /* @__PURE__ */ S(h, {
145
+ /* @__PURE__ */ C(g, {
146
+ entityType: "LAB_DATASET",
147
+ entityId: U.id
148
+ }),
149
+ /* @__PURE__ */ C(h, {
145
150
  entityType: "lab-dataset",
146
- entityId: H.id
151
+ entityId: U.id
147
152
  })
148
153
  ]
149
- }) : /* @__PURE__ */ S(u, {
150
- icon: /* @__PURE__ */ S(y, { className: "h-10 w-10" }),
154
+ }) : /* @__PURE__ */ C(u, {
155
+ icon: /* @__PURE__ */ C(b, { className: "h-10 w-10" }),
151
156
  title: "Dataset not found",
152
157
  description: "This dataset may have been archived or is outside your workspace."
153
158
  })
154
159
  })]
155
160
  }),
156
- H && /* @__PURE__ */ S(g, {
157
- open: B,
158
- onOpenChange: V,
159
- datasetId: H.id
161
+ U && /* @__PURE__ */ C(_, {
162
+ open: V,
163
+ onOpenChange: H,
164
+ datasetId: U.id
160
165
  }),
161
- H && /* @__PURE__ */ S(w, {
162
- open: R,
163
- onOpenChange: z,
164
- children: /* @__PURE__ */ C(D, { children: [/* @__PURE__ */ C(A, { children: [/* @__PURE__ */ S(j, { children: "Archive this dataset?" }), /* @__PURE__ */ C(O, { children: [
166
+ U && /* @__PURE__ */ C(T, {
167
+ open: z,
168
+ onOpenChange: B,
169
+ children: /* @__PURE__ */ w(O, { children: [/* @__PURE__ */ w(j, { children: [/* @__PURE__ */ C(M, { children: "Archive this dataset?" }), /* @__PURE__ */ w(k, { children: [
165
170
  "Archiving removes “",
166
- H.name,
171
+ U.name,
167
172
  "” from active lists."
168
- ] })] }), /* @__PURE__ */ C(k, { children: [/* @__PURE__ */ S(E, {
169
- disabled: L.isPending,
173
+ ] })] }), /* @__PURE__ */ w(A, { children: [/* @__PURE__ */ C(D, {
174
+ disabled: R.isPending,
170
175
  children: "Cancel"
171
- }), /* @__PURE__ */ S(T, {
176
+ }), /* @__PURE__ */ C(E, {
172
177
  onClick: (e) => {
173
- e.preventDefault(), W();
178
+ e.preventDefault(), G();
174
179
  },
175
- disabled: L.isPending,
176
- children: L.isPending ? "Archiving…" : "Archive"
180
+ disabled: R.isPending,
181
+ children: R.isPending ? "Archiving…" : "Archive"
177
182
  })] })] })
178
183
  })
179
184
  ]
180
185
  });
181
186
  }
182
187
  //#endregion
183
- export { P as DatasetDetailPage };
188
+ export { F as DatasetDetailPage };
184
189
 
185
190
  //# sourceMappingURL=DatasetDetailPage.js.map