@burdenoff/microfe-semanticfed 2026.1014.1 → 2026.1030.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/semanticfed/api/semanticfedGraphql.js +22 -0
- package/dist/semanticfed/api/semanticfedGraphql.js.map +1 -0
- package/dist/semanticfed/components/OnboardingChecklist.js +220 -0
- package/dist/semanticfed/components/OnboardingChecklist.js.map +1 -0
- package/dist/semanticfed/hooks/useOnboarding.js +36 -0
- package/dist/semanticfed/hooks/useOnboarding.js.map +1 -0
- package/dist/semanticfed/pages/AgentsPage.js +3 -3
- package/dist/semanticfed/pages/AnalyticsPage.js +3 -3
- package/dist/semanticfed/pages/AuditPage.js +3 -3
- package/dist/semanticfed/pages/CollaborationPage.js +3 -3
- package/dist/semanticfed/pages/ConfigurationPage.js +3 -3
- package/dist/semanticfed/pages/DashboardPage.js +112 -109
- package/dist/semanticfed/pages/DashboardPage.js.map +1 -1
- package/dist/semanticfed/pages/DeploymentPage.js +3 -3
- package/dist/semanticfed/pages/KnowledgeGraphPage.js +3 -3
- package/dist/semanticfed/pages/MonitoringPage.js +3 -3
- package/dist/semanticfed/pages/OntologyPage.js +3 -3
- package/dist/semanticfed/pages/PerformancePage.js +3 -3
- package/dist/semanticfed/pages/PoliciesPage.js +4 -3
- package/dist/semanticfed/pages/PoliciesPage.js.map +1 -1
- package/dist/semanticfed/pages/ProtocolPage.js +3 -3
- package/dist/semanticfed/pages/QueryConsolePage.js +4 -3
- package/dist/semanticfed/pages/QueryConsolePage.js.map +1 -1
- package/dist/semanticfed/pages/RegistryPage.js +3 -3
- package/dist/semanticfed/pages/TechStackPage.js +3 -3
- package/dist/semanticfed/pages/TopologyPage.js +3 -3
- package/dist/semanticfed/pages/VisualizationPage.js +3 -3
- package/package.json +1 -1
|
@@ -1,219 +1,222 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { translateWithFallback as e } from "../utils/i18n.js";
|
|
2
|
+
import { OnboardingChecklist as t } from "../components/OnboardingChecklist.js";
|
|
3
|
+
import { useSemanticFedStore as n } from "../store/semanticfedStore.js";
|
|
4
|
+
import { Activity as r, ArrowUpRight as i, Bot as a, CircleDot as o, Database as s, GitBranch as c, Share2 as l, TrendingDown as u, TrendingUp as d } from "lucide-react";
|
|
5
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
6
|
+
import { useI18n as m } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
7
|
+
import { Badge as h, Card as g, CardContent as _, CardHeader as v, CardTitle as y } from "@burdenoff/fe-libs/ui";
|
|
7
8
|
//#region src/semanticfed/pages/DashboardPage.tsx
|
|
8
|
-
var
|
|
9
|
+
var b = {
|
|
9
10
|
active: "bg-emerald-500",
|
|
10
11
|
planned: "bg-blue-500",
|
|
11
12
|
at_risk: "bg-amber-500",
|
|
12
13
|
completed: "bg-zinc-400"
|
|
13
|
-
},
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
14
|
+
}, x = (e) => e.startsWith("+") ? /* @__PURE__ */ f(d, { className: "h-3 w-3 text-emerald-500" }) : /* @__PURE__ */ f(u, { className: "h-3 w-3 text-red-500" }), S = [
|
|
15
|
+
/* @__PURE__ */ f(s, { className: "h-4 w-4 text-muted-foreground" }, "db"),
|
|
16
|
+
/* @__PURE__ */ f(l, { className: "h-4 w-4 text-muted-foreground" }, "fed"),
|
|
17
|
+
/* @__PURE__ */ f(a, { className: "h-4 w-4 text-muted-foreground" }, "agent"),
|
|
18
|
+
/* @__PURE__ */ f(r, { className: "h-4 w-4 text-muted-foreground" }, "up")
|
|
18
19
|
];
|
|
19
|
-
function
|
|
20
|
-
let { t:
|
|
21
|
-
"Total Triples":
|
|
22
|
-
"Federation Endpoints":
|
|
23
|
-
"Active Agents":
|
|
24
|
-
"Query Uptime":
|
|
25
|
-
},
|
|
26
|
-
active:
|
|
27
|
-
planned:
|
|
28
|
-
at_risk:
|
|
29
|
-
completed:
|
|
30
|
-
},
|
|
31
|
-
return /* @__PURE__ */
|
|
20
|
+
function C() {
|
|
21
|
+
let { t: r } = m(), { metrics: a, workItems: s, federationEndpoints: l, agents: u, ontologies: d, monitoringMetrics: C } = n(), w = (t, n, i) => e(r, t, n, i), T = {
|
|
22
|
+
"Total Triples": w("semanticfed.dashboard.metrics.totalTriples", "Total Triples"),
|
|
23
|
+
"Federation Endpoints": w("semanticfed.dashboard.metrics.federationEndpoints", "Federation Endpoints"),
|
|
24
|
+
"Active Agents": w("semanticfed.dashboard.metrics.activeAgents", "Active Agents"),
|
|
25
|
+
"Query Uptime": w("semanticfed.dashboard.metrics.queryUptime", "Query Uptime")
|
|
26
|
+
}, E = {
|
|
27
|
+
active: w("semanticfed.dashboard.workItems.status.active", "Active"),
|
|
28
|
+
planned: w("semanticfed.dashboard.workItems.status.planned", "Planned"),
|
|
29
|
+
at_risk: w("semanticfed.dashboard.workItems.status.atRisk", "At risk"),
|
|
30
|
+
completed: w("semanticfed.dashboard.workItems.status.completed", "Completed")
|
|
31
|
+
}, D = l.filter((e) => e.status === "online").length, O = u.filter((e) => e.status === "running").length, k = C.filter((e) => e.status === "critical").length, A = C.filter((e) => e.status === "warning").length;
|
|
32
|
+
return /* @__PURE__ */ p("div", {
|
|
32
33
|
className: "space-y-6 p-6",
|
|
33
34
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ p("div", {
|
|
35
36
|
className: "flex items-center justify-between",
|
|
36
|
-
|
|
37
|
+
"data-tour": "semanticfed-dashboard-header",
|
|
38
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h1", {
|
|
37
39
|
className: "text-2xl font-semibold",
|
|
38
|
-
children:
|
|
39
|
-
}), /* @__PURE__ */
|
|
40
|
+
children: w("semanticfed.dashboard.title", "SemanticFed Dashboard")
|
|
41
|
+
}), /* @__PURE__ */ f("p", {
|
|
40
42
|
className: "text-sm text-muted-foreground",
|
|
41
|
-
children:
|
|
42
|
-
})] }), /* @__PURE__ */
|
|
43
|
+
children: w("semanticfed.dashboard.description", "Knowledge graph federation overview and health")
|
|
44
|
+
})] }), /* @__PURE__ */ p(h, {
|
|
43
45
|
variant: "secondary",
|
|
44
46
|
className: "gap-1",
|
|
45
|
-
children: [/* @__PURE__ */
|
|
47
|
+
children: [/* @__PURE__ */ f(o, { className: "h-3 w-3 text-emerald-500" }), w("semanticfed.dashboard.badges.federationActive", "Federation Active")]
|
|
46
48
|
})]
|
|
47
49
|
}),
|
|
48
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ f(t, {}),
|
|
51
|
+
/* @__PURE__ */ f("div", {
|
|
49
52
|
className: "grid gap-4 md:grid-cols-2 lg:grid-cols-4",
|
|
50
|
-
children:
|
|
53
|
+
children: a.map((e, t) => /* @__PURE__ */ p(g, { children: [/* @__PURE__ */ p(v, {
|
|
51
54
|
className: "flex flex-row items-center justify-between space-y-0 pb-2",
|
|
52
|
-
children: [/* @__PURE__ */
|
|
55
|
+
children: [/* @__PURE__ */ f(y, {
|
|
53
56
|
className: "text-sm font-medium",
|
|
54
|
-
children:
|
|
55
|
-
}),
|
|
56
|
-
}), /* @__PURE__ */
|
|
57
|
+
children: T[e.label] ?? e.label
|
|
58
|
+
}), S[t]]
|
|
59
|
+
}), /* @__PURE__ */ p(_, { children: [/* @__PURE__ */ f("div", {
|
|
57
60
|
className: "text-2xl font-bold",
|
|
58
61
|
children: e.value
|
|
59
|
-
}), /* @__PURE__ */
|
|
62
|
+
}), /* @__PURE__ */ p("p", {
|
|
60
63
|
className: "flex items-center gap-1 text-xs text-muted-foreground",
|
|
61
64
|
children: [
|
|
62
|
-
|
|
65
|
+
x(e.trend),
|
|
63
66
|
" ",
|
|
64
67
|
e.trend
|
|
65
68
|
]
|
|
66
69
|
})] })] }, e.label))
|
|
67
70
|
}),
|
|
68
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ p("div", {
|
|
69
72
|
className: "grid gap-4 md:grid-cols-2",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
73
|
+
children: [/* @__PURE__ */ p(g, { children: [/* @__PURE__ */ f(v, { children: /* @__PURE__ */ f(y, {
|
|
71
74
|
className: "text-base",
|
|
72
|
-
children:
|
|
73
|
-
}) }), /* @__PURE__ */
|
|
75
|
+
children: w("semanticfed.dashboard.systemHealth.title", "System Health")
|
|
76
|
+
}) }), /* @__PURE__ */ p(_, {
|
|
74
77
|
className: "space-y-3",
|
|
75
78
|
children: [
|
|
76
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ p("div", {
|
|
77
80
|
className: "flex items-center justify-between",
|
|
78
|
-
children: [/* @__PURE__ */
|
|
81
|
+
children: [/* @__PURE__ */ f("span", {
|
|
79
82
|
className: "text-sm",
|
|
80
|
-
children:
|
|
81
|
-
}), /* @__PURE__ */
|
|
83
|
+
children: w("semanticfed.dashboard.systemHealth.federationEndpoints", "Federation Endpoints")
|
|
84
|
+
}), /* @__PURE__ */ f(h, {
|
|
82
85
|
variant: "default",
|
|
83
|
-
children:
|
|
84
|
-
online:
|
|
85
|
-
total:
|
|
86
|
+
children: w("semanticfed.dashboard.systemHealth.onlineCount", "{online}/{total} online", {
|
|
87
|
+
online: D,
|
|
88
|
+
total: l.length
|
|
86
89
|
})
|
|
87
90
|
})]
|
|
88
91
|
}),
|
|
89
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ p("div", {
|
|
90
93
|
className: "flex items-center justify-between",
|
|
91
|
-
children: [/* @__PURE__ */
|
|
94
|
+
children: [/* @__PURE__ */ f("span", {
|
|
92
95
|
className: "text-sm",
|
|
93
|
-
children:
|
|
94
|
-
}), /* @__PURE__ */
|
|
96
|
+
children: w("semanticfed.dashboard.systemHealth.activeAgents", "Active Agents")
|
|
97
|
+
}), /* @__PURE__ */ f(h, {
|
|
95
98
|
variant: "default",
|
|
96
|
-
children:
|
|
97
|
-
running:
|
|
98
|
-
total:
|
|
99
|
+
children: w("semanticfed.dashboard.systemHealth.runningCount", "{running}/{total} running", {
|
|
100
|
+
running: O,
|
|
101
|
+
total: u.length
|
|
99
102
|
})
|
|
100
103
|
})]
|
|
101
104
|
}),
|
|
102
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ p("div", {
|
|
103
106
|
className: "flex items-center justify-between",
|
|
104
|
-
children: [/* @__PURE__ */
|
|
107
|
+
children: [/* @__PURE__ */ f("span", {
|
|
105
108
|
className: "text-sm",
|
|
106
|
-
children:
|
|
107
|
-
}), /* @__PURE__ */
|
|
109
|
+
children: w("semanticfed.dashboard.systemHealth.publishedOntologies", "Published Ontologies")
|
|
110
|
+
}), /* @__PURE__ */ p(h, {
|
|
108
111
|
variant: "default",
|
|
109
112
|
children: [
|
|
110
|
-
|
|
113
|
+
d.filter((e) => e.status === "published").length,
|
|
111
114
|
"/",
|
|
112
|
-
|
|
115
|
+
d.length
|
|
113
116
|
]
|
|
114
117
|
})]
|
|
115
118
|
}),
|
|
116
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ p("div", {
|
|
117
120
|
className: "flex items-center justify-between",
|
|
118
|
-
children: [/* @__PURE__ */
|
|
121
|
+
children: [/* @__PURE__ */ f("span", {
|
|
119
122
|
className: "text-sm",
|
|
120
|
-
children:
|
|
121
|
-
}), /* @__PURE__ */
|
|
123
|
+
children: w("semanticfed.dashboard.systemHealth.alerts", "Alerts")
|
|
124
|
+
}), /* @__PURE__ */ p("div", {
|
|
122
125
|
className: "flex gap-1",
|
|
123
126
|
children: [
|
|
124
|
-
|
|
127
|
+
k > 0 && /* @__PURE__ */ f(h, {
|
|
125
128
|
variant: "destructive",
|
|
126
|
-
children:
|
|
129
|
+
children: w("semanticfed.dashboard.systemHealth.criticalCount", "{count} critical", { count: k })
|
|
127
130
|
}),
|
|
128
|
-
|
|
131
|
+
A > 0 && /* @__PURE__ */ f(h, {
|
|
129
132
|
variant: "secondary",
|
|
130
|
-
children:
|
|
133
|
+
children: w("semanticfed.dashboard.systemHealth.warningCount", "{count} warning", { count: A })
|
|
131
134
|
}),
|
|
132
|
-
|
|
135
|
+
k === 0 && A === 0 && /* @__PURE__ */ f(h, {
|
|
133
136
|
variant: "default",
|
|
134
|
-
children:
|
|
137
|
+
children: w("semanticfed.dashboard.systemHealth.allClear", "All clear")
|
|
135
138
|
})
|
|
136
139
|
]
|
|
137
140
|
})]
|
|
138
141
|
})
|
|
139
142
|
]
|
|
140
|
-
})] }), /* @__PURE__ */
|
|
143
|
+
})] }), /* @__PURE__ */ p(g, { children: [/* @__PURE__ */ f(v, { children: /* @__PURE__ */ f(y, {
|
|
141
144
|
className: "text-base",
|
|
142
|
-
children:
|
|
143
|
-
}) }), /* @__PURE__ */
|
|
145
|
+
children: w("semanticfed.dashboard.ontologyCatalog.title", "Ontology Catalog")
|
|
146
|
+
}) }), /* @__PURE__ */ f(_, {
|
|
144
147
|
className: "space-y-2",
|
|
145
|
-
children:
|
|
148
|
+
children: d.slice(0, 4).map((e) => /* @__PURE__ */ p("div", {
|
|
146
149
|
className: "flex items-center justify-between rounded border p-2",
|
|
147
|
-
children: [/* @__PURE__ */
|
|
150
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
|
|
148
151
|
className: "text-sm font-medium",
|
|
149
152
|
children: e.name
|
|
150
|
-
}), /* @__PURE__ */
|
|
153
|
+
}), /* @__PURE__ */ f("p", {
|
|
151
154
|
className: "text-xs text-muted-foreground",
|
|
152
|
-
children:
|
|
155
|
+
children: w("semanticfed.dashboard.ontologyCatalog.summary", "{classes} classes / {properties} properties", {
|
|
153
156
|
classes: e.classCount,
|
|
154
157
|
properties: e.propertyCount
|
|
155
158
|
})
|
|
156
|
-
})] }), /* @__PURE__ */
|
|
159
|
+
})] }), /* @__PURE__ */ p("div", {
|
|
157
160
|
className: "flex items-center gap-2",
|
|
158
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ f(h, {
|
|
159
162
|
variant: e.status === "published" ? "default" : e.status === "draft" ? "secondary" : "outline",
|
|
160
163
|
children: e.format
|
|
161
|
-
}), /* @__PURE__ */
|
|
164
|
+
}), /* @__PURE__ */ f(i, { className: "h-3 w-3 text-muted-foreground" })]
|
|
162
165
|
})]
|
|
163
166
|
}, e.id))
|
|
164
167
|
})] })]
|
|
165
168
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ p("div", {
|
|
167
170
|
className: "grid gap-4 md:grid-cols-7",
|
|
168
|
-
children: [/* @__PURE__ */
|
|
171
|
+
children: [/* @__PURE__ */ p(g, {
|
|
169
172
|
className: "col-span-4",
|
|
170
|
-
children: [/* @__PURE__ */
|
|
173
|
+
children: [/* @__PURE__ */ f(v, { children: /* @__PURE__ */ f(y, {
|
|
171
174
|
className: "text-base",
|
|
172
|
-
children:
|
|
173
|
-
}) }), /* @__PURE__ */
|
|
175
|
+
children: w("semanticfed.dashboard.endpoints.title", "Federation Endpoints")
|
|
176
|
+
}) }), /* @__PURE__ */ f(_, {
|
|
174
177
|
className: "space-y-2",
|
|
175
|
-
children:
|
|
178
|
+
children: l.map((e) => /* @__PURE__ */ p("div", {
|
|
176
179
|
className: "flex items-center gap-3",
|
|
177
180
|
children: [
|
|
178
|
-
/* @__PURE__ */
|
|
179
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ f("span", { className: `h-2 w-2 rounded-full ${e.status === "online" ? "bg-emerald-500" : e.status === "degraded" ? "bg-amber-500" : "bg-red-500"}` }),
|
|
182
|
+
/* @__PURE__ */ f("span", {
|
|
180
183
|
className: "w-48 truncate text-sm font-medium",
|
|
181
184
|
children: e.name
|
|
182
185
|
}),
|
|
183
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ f(h, {
|
|
184
187
|
variant: "outline",
|
|
185
188
|
className: "text-xs",
|
|
186
189
|
children: e.protocol
|
|
187
190
|
}),
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ f("div", { className: "flex-1" }),
|
|
192
|
+
/* @__PURE__ */ p("span", {
|
|
190
193
|
className: "text-xs text-muted-foreground",
|
|
191
194
|
children: [e.latencyMs, "ms"]
|
|
192
195
|
}),
|
|
193
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ f("span", {
|
|
194
197
|
className: "text-xs text-muted-foreground",
|
|
195
|
-
children:
|
|
198
|
+
children: w("semanticfed.dashboard.endpoints.triples", "{count}M triples", { count: (e.triplesServed / 1e6).toFixed(1) })
|
|
196
199
|
})
|
|
197
200
|
]
|
|
198
201
|
}, e.id))
|
|
199
202
|
})]
|
|
200
|
-
}), /* @__PURE__ */
|
|
203
|
+
}), /* @__PURE__ */ p(g, {
|
|
201
204
|
className: "col-span-3",
|
|
202
|
-
children: [/* @__PURE__ */
|
|
205
|
+
children: [/* @__PURE__ */ f(v, { children: /* @__PURE__ */ f(y, {
|
|
203
206
|
className: "text-base",
|
|
204
|
-
children:
|
|
205
|
-
}) }), /* @__PURE__ */
|
|
207
|
+
children: w("semanticfed.dashboard.workItems.title", "Work Items")
|
|
208
|
+
}) }), /* @__PURE__ */ f(_, {
|
|
206
209
|
className: "space-y-3",
|
|
207
|
-
children:
|
|
210
|
+
children: s.map((e) => /* @__PURE__ */ p("div", {
|
|
208
211
|
className: "flex items-start gap-3",
|
|
209
212
|
children: [
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ f("span", { className: `mt-1.5 h-2 w-2 shrink-0 rounded-full ${b[e.status]}` }),
|
|
214
|
+
/* @__PURE__ */ p("div", {
|
|
212
215
|
className: "min-w-0 flex-1",
|
|
213
|
-
children: [/* @__PURE__ */
|
|
216
|
+
children: [/* @__PURE__ */ f("p", {
|
|
214
217
|
className: "text-sm font-medium",
|
|
215
218
|
children: e.title
|
|
216
|
-
}), /* @__PURE__ */
|
|
219
|
+
}), /* @__PURE__ */ p("p", {
|
|
217
220
|
className: "text-xs text-muted-foreground",
|
|
218
221
|
children: [
|
|
219
222
|
e.owner,
|
|
@@ -221,11 +224,11 @@ function S() {
|
|
|
221
224
|
e.updatedAt,
|
|
222
225
|
" ·",
|
|
223
226
|
" ",
|
|
224
|
-
|
|
227
|
+
E[e.status] ?? e.status
|
|
225
228
|
]
|
|
226
229
|
})]
|
|
227
230
|
}),
|
|
228
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ f(c, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" })
|
|
229
232
|
]
|
|
230
233
|
}, e.id))
|
|
231
234
|
})]
|
|
@@ -235,6 +238,6 @@ function S() {
|
|
|
235
238
|
});
|
|
236
239
|
}
|
|
237
240
|
//#endregion
|
|
238
|
-
export {
|
|
241
|
+
export { C as DashboardPage };
|
|
239
242
|
|
|
240
243
|
//# sourceMappingURL=DashboardPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardPage.js","names":[],"sources":["../../../src/semanticfed/pages/DashboardPage.tsx"],"sourcesContent":["import { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { Badge, Card, CardContent, CardHeader, CardTitle } from '@burdenoff/fe-libs/ui';\nimport {\n Activity,\n ArrowUpRight,\n Bot,\n CircleDot,\n Database,\n GitBranch,\n Share2,\n TrendingDown,\n TrendingUp,\n} from 'lucide-react';\nimport { useSemanticFedStore } from '../store/semanticfedStore';\nimport { translateWithFallback } from '../utils/i18n';\n\nconst statusColor: Record<string, string> = {\n active: 'bg-emerald-500',\n planned: 'bg-blue-500',\n at_risk: 'bg-amber-500',\n completed: 'bg-zinc-400',\n};\n\nconst trendIcon = (trend: string) =>\n trend.startsWith('+') ? (\n <TrendingUp className=\"h-3 w-3 text-emerald-500\" />\n ) : (\n <TrendingDown className=\"h-3 w-3 text-red-500\" />\n );\n\nconst metricIcons = [\n <Database key=\"db\" className=\"h-4 w-4 text-muted-foreground\" />,\n <Share2 key=\"fed\" className=\"h-4 w-4 text-muted-foreground\" />,\n <Bot key=\"agent\" className=\"h-4 w-4 text-muted-foreground\" />,\n <Activity key=\"up\" className=\"h-4 w-4 text-muted-foreground\" />,\n];\n\nexport function DashboardPage() {\n const { t } = useI18n();\n const { metrics, workItems, federationEndpoints, agents, ontologies, monitoringMetrics } =\n useSemanticFedStore();\n const tx = (key: string, fallback: string, params?: Record<string, string | number>) =>\n translateWithFallback(t, key, fallback, params);\n\n const metricLabelKeys: Record<string, string> = {\n 'Total Triples': tx('semanticfed.dashboard.metrics.totalTriples', 'Total Triples'),\n 'Federation Endpoints': tx(\n 'semanticfed.dashboard.metrics.federationEndpoints',\n 'Federation Endpoints'\n ),\n 'Active Agents': tx('semanticfed.dashboard.metrics.activeAgents', 'Active Agents'),\n 'Query Uptime': tx('semanticfed.dashboard.metrics.queryUptime', 'Query Uptime'),\n };\n\n const workItemStatusLabels: Record<string, string> = {\n active: tx('semanticfed.dashboard.workItems.status.active', 'Active'),\n planned: tx('semanticfed.dashboard.workItems.status.planned', 'Planned'),\n at_risk: tx('semanticfed.dashboard.workItems.status.atRisk', 'At risk'),\n completed: tx('semanticfed.dashboard.workItems.status.completed', 'Completed'),\n };\n\n const onlineEndpoints = federationEndpoints.filter((ep) => ep.status === 'online').length;\n const runningAgents = agents.filter((a) => a.status === 'running').length;\n const criticalMetrics = monitoringMetrics.filter((m) => m.status === 'critical').length;\n const warningMetrics = monitoringMetrics.filter((m) => m.status === 'warning').length;\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex items-center justify-between\">\n <div>\n <h1 className=\"text-2xl font-semibold\">\n {tx('semanticfed.dashboard.title', 'SemanticFed Dashboard')}\n </h1>\n <p className=\"text-sm text-muted-foreground\">\n {tx(\n 'semanticfed.dashboard.description',\n 'Knowledge graph federation overview and health'\n )}\n </p>\n </div>\n <Badge variant=\"secondary\" className=\"gap-1\">\n <CircleDot className=\"h-3 w-3 text-emerald-500\" />\n {tx('semanticfed.dashboard.badges.federationActive', 'Federation Active')}\n </Badge>\n </div>\n\n <div className=\"grid gap-4 md:grid-cols-2 lg:grid-cols-4\">\n {metrics.map((m, i) => (\n <Card key={m.label}>\n <CardHeader className=\"flex flex-row items-center justify-between space-y-0 pb-2\">\n <CardTitle className=\"text-sm font-medium\">\n {metricLabelKeys[m.label] ?? m.label}\n </CardTitle>\n {metricIcons[i]}\n </CardHeader>\n <CardContent>\n <div className=\"text-2xl font-bold\">{m.value}</div>\n <p className=\"flex items-center gap-1 text-xs text-muted-foreground\">\n {trendIcon(m.trend)} {m.trend}\n </p>\n </CardContent>\n </Card>\n ))}\n </div>\n\n <div className=\"grid gap-4 md:grid-cols-2\">\n <Card>\n <CardHeader>\n <CardTitle className=\"text-base\">\n {tx('semanticfed.dashboard.systemHealth.title', 'System Health')}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-3\">\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm\">\n {tx(\n 'semanticfed.dashboard.systemHealth.federationEndpoints',\n 'Federation Endpoints'\n )}\n </span>\n <Badge variant=\"default\">\n {tx('semanticfed.dashboard.systemHealth.onlineCount', '{online}/{total} online', {\n online: onlineEndpoints,\n total: federationEndpoints.length,\n })}\n </Badge>\n </div>\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm\">\n {tx('semanticfed.dashboard.systemHealth.activeAgents', 'Active Agents')}\n </span>\n <Badge variant=\"default\">\n {tx(\n 'semanticfed.dashboard.systemHealth.runningCount',\n '{running}/{total} running',\n {\n running: runningAgents,\n total: agents.length,\n }\n )}\n </Badge>\n </div>\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm\">\n {tx(\n 'semanticfed.dashboard.systemHealth.publishedOntologies',\n 'Published Ontologies'\n )}\n </span>\n <Badge variant=\"default\">\n {ontologies.filter((o) => o.status === 'published').length}/{ontologies.length}\n </Badge>\n </div>\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm\">\n {tx('semanticfed.dashboard.systemHealth.alerts', 'Alerts')}\n </span>\n <div className=\"flex gap-1\">\n {criticalMetrics > 0 && (\n <Badge variant=\"destructive\">\n {tx('semanticfed.dashboard.systemHealth.criticalCount', '{count} critical', {\n count: criticalMetrics,\n })}\n </Badge>\n )}\n {warningMetrics > 0 && (\n <Badge variant=\"secondary\">\n {tx('semanticfed.dashboard.systemHealth.warningCount', '{count} warning', {\n count: warningMetrics,\n })}\n </Badge>\n )}\n {criticalMetrics === 0 && warningMetrics === 0 && (\n <Badge variant=\"default\">\n {tx('semanticfed.dashboard.systemHealth.allClear', 'All clear')}\n </Badge>\n )}\n </div>\n </div>\n </CardContent>\n </Card>\n\n <Card>\n <CardHeader>\n <CardTitle className=\"text-base\">\n {tx('semanticfed.dashboard.ontologyCatalog.title', 'Ontology Catalog')}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-2\">\n {ontologies.slice(0, 4).map((ont) => (\n <div key={ont.id} className=\"flex items-center justify-between rounded border p-2\">\n <div>\n <p className=\"text-sm font-medium\">{ont.name}</p>\n <p className=\"text-xs text-muted-foreground\">\n {tx(\n 'semanticfed.dashboard.ontologyCatalog.summary',\n '{classes} classes / {properties} properties',\n {\n classes: ont.classCount,\n properties: ont.propertyCount,\n }\n )}\n </p>\n </div>\n <div className=\"flex items-center gap-2\">\n <Badge\n variant={\n ont.status === 'published'\n ? 'default'\n : ont.status === 'draft'\n ? 'secondary'\n : 'outline'\n }\n >\n {ont.format}\n </Badge>\n <ArrowUpRight className=\"h-3 w-3 text-muted-foreground\" />\n </div>\n </div>\n ))}\n </CardContent>\n </Card>\n </div>\n\n <div className=\"grid gap-4 md:grid-cols-7\">\n <Card className=\"col-span-4\">\n <CardHeader>\n <CardTitle className=\"text-base\">\n {tx('semanticfed.dashboard.endpoints.title', 'Federation Endpoints')}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-2\">\n {federationEndpoints.map((ep) => (\n <div key={ep.id} className=\"flex items-center gap-3\">\n <span\n className={`h-2 w-2 rounded-full ${\n ep.status === 'online'\n ? 'bg-emerald-500'\n : ep.status === 'degraded'\n ? 'bg-amber-500'\n : 'bg-red-500'\n }`}\n />\n <span className=\"w-48 truncate text-sm font-medium\">{ep.name}</span>\n <Badge variant=\"outline\" className=\"text-xs\">\n {ep.protocol}\n </Badge>\n <div className=\"flex-1\" />\n <span className=\"text-xs text-muted-foreground\">{ep.latencyMs}ms</span>\n <span className=\"text-xs text-muted-foreground\">\n {tx('semanticfed.dashboard.endpoints.triples', '{count}M triples', {\n count: (ep.triplesServed / 1_000_000).toFixed(1),\n })}\n </span>\n </div>\n ))}\n </CardContent>\n </Card>\n\n <Card className=\"col-span-3\">\n <CardHeader>\n <CardTitle className=\"text-base\">\n {tx('semanticfed.dashboard.workItems.title', 'Work Items')}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-3\">\n {workItems.map((item) => (\n <div key={item.id} className=\"flex items-start gap-3\">\n <span\n className={`mt-1.5 h-2 w-2 shrink-0 rounded-full ${statusColor[item.status]}`}\n />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-medium\">{item.title}</p>\n <p className=\"text-xs text-muted-foreground\">\n {item.owner} · {item.updatedAt} ·{' '}\n {workItemStatusLabels[item.status] ?? item.status}\n </p>\n </div>\n <GitBranch className=\"h-3.5 w-3.5 shrink-0 text-muted-foreground\" />\n </div>\n ))}\n </CardContent>\n </Card>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;AAgBA,IAAM,IAAsC;CAC1C,QAAQ;CACR,SAAS;CACT,SAAS;CACT,WAAW;CACZ,EAEK,KAAa,MACjB,EAAM,WAAW,IAAI,GACnB,kBAAC,GAAD,EAAY,WAAU,4BAA6B,CAAA,GAEnD,kBAAC,GAAD,EAAc,WAAU,wBAAyB,CAAA,EAG/C,IAAc;CAClB,kBAAC,GA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ACF,kBAAC,OAAD;SAAK,WAAU;mBAAf,CACE,kBAAC,KAAD;UAAG,WAAU;oBAAuB,EAAK;UAAU,CAAA,EACnD,kBAAC,KAAD;UAAG,WAAU;oBAAb;WACG,EAAK;WAAM;WAAW,EAAK;WAAU;WAAU;WAC/C,EAAqB,EAAK,WAAW,EAAK;WACzC;YACA;;QACN,kBAAC,GAAD,EAAW,WAAU,8CAA+C,CAAA;QAChE;SAZI,EAAK,GAYT,CACN;MACU,CAAA,CACT;OACH;;GACF"}
|
|
1
|
+
{"version":3,"file":"DashboardPage.js","names":[],"sources":["../../../src/semanticfed/pages/DashboardPage.tsx"],"sourcesContent":["import { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { Badge, Card, CardContent, CardHeader, CardTitle } from '@burdenoff/fe-libs/ui';\nimport {\n Activity,\n ArrowUpRight,\n Bot,\n CircleDot,\n Database,\n GitBranch,\n Share2,\n TrendingDown,\n TrendingUp,\n} from 'lucide-react';\nimport { OnboardingChecklist } from '../components/OnboardingChecklist';\nimport { useSemanticFedStore } from '../store/semanticfedStore';\nimport { translateWithFallback } from '../utils/i18n';\n\nconst statusColor: Record<string, string> = {\n active: 'bg-emerald-500',\n planned: 'bg-blue-500',\n at_risk: 'bg-amber-500',\n completed: 'bg-zinc-400',\n};\n\nconst trendIcon = (trend: string) =>\n trend.startsWith('+') ? (\n <TrendingUp className=\"h-3 w-3 text-emerald-500\" />\n ) : (\n <TrendingDown className=\"h-3 w-3 text-red-500\" />\n );\n\nconst metricIcons = [\n <Database key=\"db\" className=\"h-4 w-4 text-muted-foreground\" />,\n <Share2 key=\"fed\" className=\"h-4 w-4 text-muted-foreground\" />,\n <Bot key=\"agent\" className=\"h-4 w-4 text-muted-foreground\" />,\n <Activity key=\"up\" className=\"h-4 w-4 text-muted-foreground\" />,\n];\n\nexport function DashboardPage() {\n const { t } = useI18n();\n const { metrics, workItems, federationEndpoints, agents, ontologies, monitoringMetrics } =\n useSemanticFedStore();\n const tx = (key: string, fallback: string, params?: Record<string, string | number>) =>\n translateWithFallback(t, key, fallback, params);\n\n const metricLabelKeys: Record<string, string> = {\n 'Total Triples': tx('semanticfed.dashboard.metrics.totalTriples', 'Total Triples'),\n 'Federation Endpoints': tx(\n 'semanticfed.dashboard.metrics.federationEndpoints',\n 'Federation Endpoints'\n ),\n 'Active Agents': tx('semanticfed.dashboard.metrics.activeAgents', 'Active Agents'),\n 'Query Uptime': tx('semanticfed.dashboard.metrics.queryUptime', 'Query Uptime'),\n };\n\n const workItemStatusLabels: Record<string, string> = {\n active: tx('semanticfed.dashboard.workItems.status.active', 'Active'),\n planned: tx('semanticfed.dashboard.workItems.status.planned', 'Planned'),\n at_risk: tx('semanticfed.dashboard.workItems.status.atRisk', 'At risk'),\n completed: tx('semanticfed.dashboard.workItems.status.completed', 'Completed'),\n };\n\n const onlineEndpoints = federationEndpoints.filter((ep) => ep.status === 'online').length;\n const runningAgents = agents.filter((a) => a.status === 'running').length;\n const criticalMetrics = monitoringMetrics.filter((m) => m.status === 'critical').length;\n const warningMetrics = monitoringMetrics.filter((m) => m.status === 'warning').length;\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex items-center justify-between\" data-tour=\"semanticfed-dashboard-header\">\n <div>\n <h1 className=\"text-2xl font-semibold\">\n {tx('semanticfed.dashboard.title', 'SemanticFed Dashboard')}\n </h1>\n <p className=\"text-sm text-muted-foreground\">\n {tx(\n 'semanticfed.dashboard.description',\n 'Knowledge graph federation overview and health'\n )}\n </p>\n </div>\n <Badge variant=\"secondary\" className=\"gap-1\">\n <CircleDot className=\"h-3 w-3 text-emerald-500\" />\n {tx('semanticfed.dashboard.badges.federationActive', 'Federation Active')}\n </Badge>\n </div>\n\n <OnboardingChecklist />\n\n <div className=\"grid gap-4 md:grid-cols-2 lg:grid-cols-4\">\n {metrics.map((m, i) => (\n <Card key={m.label}>\n <CardHeader className=\"flex flex-row items-center justify-between space-y-0 pb-2\">\n <CardTitle className=\"text-sm font-medium\">\n {metricLabelKeys[m.label] ?? m.label}\n </CardTitle>\n {metricIcons[i]}\n </CardHeader>\n <CardContent>\n <div className=\"text-2xl font-bold\">{m.value}</div>\n <p className=\"flex items-center gap-1 text-xs text-muted-foreground\">\n {trendIcon(m.trend)} {m.trend}\n </p>\n </CardContent>\n </Card>\n ))}\n </div>\n\n <div className=\"grid gap-4 md:grid-cols-2\">\n <Card>\n <CardHeader>\n <CardTitle className=\"text-base\">\n {tx('semanticfed.dashboard.systemHealth.title', 'System Health')}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-3\">\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm\">\n {tx(\n 'semanticfed.dashboard.systemHealth.federationEndpoints',\n 'Federation Endpoints'\n )}\n </span>\n <Badge variant=\"default\">\n {tx('semanticfed.dashboard.systemHealth.onlineCount', '{online}/{total} online', {\n online: onlineEndpoints,\n total: federationEndpoints.length,\n })}\n </Badge>\n </div>\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm\">\n {tx('semanticfed.dashboard.systemHealth.activeAgents', 'Active Agents')}\n </span>\n <Badge variant=\"default\">\n {tx(\n 'semanticfed.dashboard.systemHealth.runningCount',\n '{running}/{total} running',\n {\n running: runningAgents,\n total: agents.length,\n }\n )}\n </Badge>\n </div>\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm\">\n {tx(\n 'semanticfed.dashboard.systemHealth.publishedOntologies',\n 'Published Ontologies'\n )}\n </span>\n <Badge variant=\"default\">\n {ontologies.filter((o) => o.status === 'published').length}/{ontologies.length}\n </Badge>\n </div>\n <div className=\"flex items-center justify-between\">\n <span className=\"text-sm\">\n {tx('semanticfed.dashboard.systemHealth.alerts', 'Alerts')}\n </span>\n <div className=\"flex gap-1\">\n {criticalMetrics > 0 && (\n <Badge variant=\"destructive\">\n {tx('semanticfed.dashboard.systemHealth.criticalCount', '{count} critical', {\n count: criticalMetrics,\n })}\n </Badge>\n )}\n {warningMetrics > 0 && (\n <Badge variant=\"secondary\">\n {tx('semanticfed.dashboard.systemHealth.warningCount', '{count} warning', {\n count: warningMetrics,\n })}\n </Badge>\n )}\n {criticalMetrics === 0 && warningMetrics === 0 && (\n <Badge variant=\"default\">\n {tx('semanticfed.dashboard.systemHealth.allClear', 'All clear')}\n </Badge>\n )}\n </div>\n </div>\n </CardContent>\n </Card>\n\n <Card>\n <CardHeader>\n <CardTitle className=\"text-base\">\n {tx('semanticfed.dashboard.ontologyCatalog.title', 'Ontology Catalog')}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-2\">\n {ontologies.slice(0, 4).map((ont) => (\n <div key={ont.id} className=\"flex items-center justify-between rounded border p-2\">\n <div>\n <p className=\"text-sm font-medium\">{ont.name}</p>\n <p className=\"text-xs text-muted-foreground\">\n {tx(\n 'semanticfed.dashboard.ontologyCatalog.summary',\n '{classes} classes / {properties} properties',\n {\n classes: ont.classCount,\n properties: ont.propertyCount,\n }\n )}\n </p>\n </div>\n <div className=\"flex items-center gap-2\">\n <Badge\n variant={\n ont.status === 'published'\n ? 'default'\n : ont.status === 'draft'\n ? 'secondary'\n : 'outline'\n }\n >\n {ont.format}\n </Badge>\n <ArrowUpRight className=\"h-3 w-3 text-muted-foreground\" />\n </div>\n </div>\n ))}\n </CardContent>\n </Card>\n </div>\n\n <div className=\"grid gap-4 md:grid-cols-7\">\n <Card className=\"col-span-4\">\n <CardHeader>\n <CardTitle className=\"text-base\">\n {tx('semanticfed.dashboard.endpoints.title', 'Federation Endpoints')}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-2\">\n {federationEndpoints.map((ep) => (\n <div key={ep.id} className=\"flex items-center gap-3\">\n <span\n className={`h-2 w-2 rounded-full ${\n ep.status === 'online'\n ? 'bg-emerald-500'\n : ep.status === 'degraded'\n ? 'bg-amber-500'\n : 'bg-red-500'\n }`}\n />\n <span className=\"w-48 truncate text-sm font-medium\">{ep.name}</span>\n <Badge variant=\"outline\" className=\"text-xs\">\n {ep.protocol}\n </Badge>\n <div className=\"flex-1\" />\n <span className=\"text-xs text-muted-foreground\">{ep.latencyMs}ms</span>\n <span className=\"text-xs text-muted-foreground\">\n {tx('semanticfed.dashboard.endpoints.triples', '{count}M triples', {\n count: (ep.triplesServed / 1_000_000).toFixed(1),\n })}\n </span>\n </div>\n ))}\n </CardContent>\n </Card>\n\n <Card className=\"col-span-3\">\n <CardHeader>\n <CardTitle className=\"text-base\">\n {tx('semanticfed.dashboard.workItems.title', 'Work Items')}\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-3\">\n {workItems.map((item) => (\n <div key={item.id} className=\"flex items-start gap-3\">\n <span\n className={`mt-1.5 h-2 w-2 shrink-0 rounded-full ${statusColor[item.status]}`}\n />\n <div className=\"min-w-0 flex-1\">\n <p className=\"text-sm font-medium\">{item.title}</p>\n <p className=\"text-xs text-muted-foreground\">\n {item.owner} · {item.updatedAt} ·{' '}\n {workItemStatusLabels[item.status] ?? item.status}\n </p>\n </div>\n <GitBranch className=\"h-3.5 w-3.5 shrink-0 text-muted-foreground\" />\n </div>\n ))}\n </CardContent>\n </Card>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAiBA,IAAM,IAAsC;CAC1C,QAAQ;CACR,SAAS;CACT,SAAS;CACT,WAAW;CACZ,EAEK,KAAa,MACjB,EAAM,WAAW,IAAI,GACnB,kBAAC,GAAD,EAAY,WAAU,4BAA6B,CAAA,GAEnD,kBAAC,GAAD,EAAc,WAAU,wBAAyB,CAAA,EAG/C,IAAc;CAClB,kBAAC,GAAD,EAAmB,WAAU,iCAAkC,EAAjD,KAAiD;CAC/D,kBAAC,GAAD,EAAkB,WAAU,iCAAkC,EAAlD,MAAkD;CAC9D,kBAAC,GAAD,EAAiB,WAAU,iCAAkC,EAApD,QAAoD;CAC7D,kBAAC,GAAD,EAAmB,WAAU,iCAAkC,EAAjD,KAAiD;CAChE;AAED,SAAgB,IAAgB;CAC9B,IAAM,EAAE,SAAM,GAAS,EACjB,EAAE,YAAS,cAAW,wBAAqB,WA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+C,CAAA;QAChE;SAZI,EAAK,GAYT,CACN;MACU,CAAA,CACT;OACH;;GACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useTr as e } from "../hooks/useTr.js";
|
|
2
|
+
import { useSemanticFedStore as t } from "../store/semanticfedStore.js";
|
|
3
3
|
import { Cloud as n, Cpu as r, Database as i, Globe as a, HardDrive as o, MemoryStick as s, Server as c } from "lucide-react";
|
|
4
4
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
5
|
import { Badge as d, Card as f, CardContent as p, CardHeader as m, CardTitle as h } from "@burdenoff/fe-libs/ui";
|
|
@@ -17,7 +17,7 @@ var g = {
|
|
|
17
17
|
error: "bg-red-500"
|
|
18
18
|
};
|
|
19
19
|
function v() {
|
|
20
|
-
let n =
|
|
20
|
+
let n = e(), { deploymentNodes: i } = t(), o = i.filter((e) => e.status === "running").length, v = [...new Set(i.map((e) => e.region))], y = i.filter((e) => e.status === "running").reduce((e, t, n, r) => e + t.cpu / r.length, 0), b = i.filter((e) => e.status === "running").reduce((e, t, n, r) => e + t.memory / r.length, 0);
|
|
21
21
|
return /* @__PURE__ */ u("div", {
|
|
22
22
|
className: "space-y-6 p-6",
|
|
23
23
|
children: [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useTr as e } from "../hooks/useTr.js";
|
|
2
|
+
import { useSemanticFedStore as t } from "../store/semanticfedStore.js";
|
|
3
3
|
import { ArrowRightLeft as n, Boxes as r, CircleDot as i, Link2 as a, Maximize2 as o, Workflow as s } from "lucide-react";
|
|
4
4
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
5
|
import { Badge as u, Card as d, CardContent as f, CardHeader as p, CardTitle as m } from "@burdenoff/fe-libs/ui";
|
|
6
6
|
//#region src/semanticfed/pages/KnowledgeGraphPage.tsx
|
|
7
7
|
function h() {
|
|
8
|
-
let h =
|
|
8
|
+
let h = e(), { knowledgeNodes: g, knowledgeEdges: _, ontologies: v } = t(), y = g.reduce((e, t) => e + t.properties, 0), b = g.reduce((e, t) => e + t.incomingEdges, 0), x = g.reduce((e, t) => e + t.outgoingEdges, 0), S = new Set(_.map((e) => e.predicate)).size;
|
|
9
9
|
return /* @__PURE__ */ l("div", {
|
|
10
10
|
className: "space-y-6 p-6",
|
|
11
11
|
children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { translateWithFallback as e } from "../utils/i18n.js";
|
|
2
|
+
import { useSemanticFedStore as t } from "../store/semanticfedStore.js";
|
|
3
3
|
import { Activity as n, AlertTriangle as r, CheckCircle2 as i, Cpu as a, Database as o, Gauge as s, Minus as c, TrendingDown as l, TrendingUp as u, XCircle as d } from "lucide-react";
|
|
4
4
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
5
5
|
import { useI18n as m } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
@@ -27,7 +27,7 @@ var b = {
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
function S() {
|
|
30
|
-
let { t: c } = m(), { monitoringMetrics: l, federationEndpoints: u, agents: S } =
|
|
30
|
+
let { t: c } = m(), { monitoringMetrics: l, federationEndpoints: u, agents: S } = t(), C = (t, n, r) => e(c, t, n, r), w = {
|
|
31
31
|
"SPARQL Query Throughput": C("semanticfed.monitoring.metricNames.queryThroughput", "SPARQL Query Throughput"),
|
|
32
32
|
"Triple Ingestion Rate": C("semanticfed.monitoring.metricNames.tripleIngestionRate", "Triple Ingestion Rate"),
|
|
33
33
|
"Federation Latency (p95)": C("semanticfed.monitoring.metricNames.federationLatencyP95", "Federation Latency (p95)"),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { translateWithFallback as e } from "../utils/i18n.js";
|
|
2
|
+
import { useSemanticFedStore as t } from "../store/semanticfedStore.js";
|
|
3
3
|
import { ArrowUpRight as n, FileCode2 as r, GitBranch as i, Layers as a, Plus as o, Search as s } from "lucide-react";
|
|
4
4
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
5
|
import { useI18n as u } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
@@ -12,7 +12,7 @@ var _ = {
|
|
|
12
12
|
SHACL: "bg-amber-100 text-amber-800"
|
|
13
13
|
};
|
|
14
14
|
function v() {
|
|
15
|
-
let { t: v } = u(), { ontologies: y } =
|
|
15
|
+
let { t: v } = u(), { ontologies: y } = t(), b = (t, n, r) => e(v, t, n, r), x = {
|
|
16
16
|
published: b("semanticfed.ontology.status.published", "Published"),
|
|
17
17
|
draft: b("semanticfed.ontology.status.draft", "Draft"),
|
|
18
18
|
deprecated: b("semanticfed.ontology.status.deprecated", "Deprecated")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useTr as e } from "../hooks/useTr.js";
|
|
2
|
+
import { useSemanticFedStore as t } from "../store/semanticfedStore.js";
|
|
3
3
|
import { Gauge as n, Minus as r, TrendingDown as i, TrendingUp as a, Zap as o } from "lucide-react";
|
|
4
4
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
5
|
import { Badge as l, Card as u, CardContent as d, CardHeader as f, CardTitle as p } from "@burdenoff/fe-libs/ui";
|
|
@@ -14,7 +14,7 @@ var m = {
|
|
|
14
14
|
stable: "text-muted-foreground"
|
|
15
15
|
};
|
|
16
16
|
function g() {
|
|
17
|
-
let g =
|
|
17
|
+
let g = e(), { performanceBenchmarks: _ } = t(), v = [...new Set(_.map((e) => e.category))], y = _.filter((e) => e.trend === "improving").length, b = _.filter((e) => e.trend === "degrading").length;
|
|
18
18
|
return /* @__PURE__ */ c("div", {
|
|
19
19
|
className: "space-y-6 p-6",
|
|
20
20
|
children: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useTr as e } from "../hooks/useTr.js";
|
|
2
|
+
import { useSemanticFedStore as t } from "../store/semanticfedStore.js";
|
|
3
3
|
import { AlertTriangle as n, Plus as r, Search as i, Shield as a, ShieldAlert as o, ShieldCheck as s } from "lucide-react";
|
|
4
4
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
5
|
import { Badge as u, Button as d, Card as f, CardContent as p, CardHeader as m, CardTitle as h } from "@burdenoff/fe-libs/ui";
|
|
@@ -16,7 +16,7 @@ var g = {
|
|
|
16
16
|
audit: "outline"
|
|
17
17
|
};
|
|
18
18
|
function v() {
|
|
19
|
-
let a =
|
|
19
|
+
let a = e(), { policies: o } = t(), s = {
|
|
20
20
|
access: a("semanticfed.policies.types.access", "Access"),
|
|
21
21
|
quality: a("semanticfed.policies.types.quality", "Quality"),
|
|
22
22
|
retention: a("semanticfed.policies.types.retention", "Retention"),
|
|
@@ -36,6 +36,7 @@ function v() {
|
|
|
36
36
|
children: [
|
|
37
37
|
/* @__PURE__ */ l("div", {
|
|
38
38
|
className: "flex items-center justify-between",
|
|
39
|
+
"data-tour": "semanticfed-policies-header",
|
|
39
40
|
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h1", {
|
|
40
41
|
className: "text-2xl font-semibold",
|
|
41
42
|
children: a("semanticfed.policies.title", "Governance Policies")
|