@@ -87,7 +87,7 @@ export default function EventDefs() {
{expanded.has(def.hash) ? 'Hide' : 'Show'}
{expanded.has(def.hash) && (
-
+
{JSON.stringify(def.schema, null, 2)
.split('\n')
.map((line, i) => {
diff --git a/packages/engine/ui/src/components/Events.tsx b/packages/engine/ui/src/components/Events.tsx
index d80bb12..ec81c54 100644
--- a/packages/engine/ui/src/components/Events.tsx
+++ b/packages/engine/ui/src/components/Events.tsx
@@ -51,29 +51,29 @@ export default function Events() {
return (
- Events
+ Events
setRefFilter(e.target.value)}
/>
-
+
{data.length === 0 ? (
) : (
-
+
| ID |
@@ -92,8 +92,8 @@ export default function Events() {
|
| {event.id} |
@@ -108,7 +108,7 @@ export default function Events() {
{expanded.has(event.id) ? 'Hide' : 'Show'}
{expanded.has(event.id) && (
-
+
{JSON.stringify(event.payload, null, 2)
.split('\n')
.map((line, i) => {
diff --git a/packages/engine/ui/src/components/Health.tsx b/packages/engine/ui/src/components/Health.tsx
index 54e52e2..f65266b 100644
--- a/packages/engine/ui/src/components/Health.tsx
+++ b/packages/engine/ui/src/components/Health.tsx
@@ -19,8 +19,8 @@ export default function Health() {
return (
- Health Check
-
+ Health Check
+
@@ -30,7 +30,7 @@ export default function Health() {
Version:
- {data?.version}
+ {data?.version}
diff --git a/packages/engine/ui/src/components/Layout.tsx b/packages/engine/ui/src/components/Layout.tsx
index 1630e23..9347b43 100644
--- a/packages/engine/ui/src/components/Layout.tsx
+++ b/packages/engine/ui/src/components/Layout.tsx
@@ -23,85 +23,98 @@ const navGroups: Array<{ label: string; items: Array<{ id: Page; label: string;
{
label: 'Schema',
items: [
- { id: 'object-defs', label: 'Object Defs', icon: '📦' },
- { id: 'event-defs', label: 'Event Defs', icon: '📋' },
- { id: 'projection-defs', label: 'Projection Defs', icon: '📊' },
+ { id: 'object-defs', label: 'Object Defs', icon: '◻' },
+ { id: 'event-defs', label: 'Event Defs', icon: '◆' },
+ { id: 'projection-defs', label: 'Projection Defs', icon: '▤' },
],
},
{
label: 'Data',
items: [
- { id: 'objects', label: 'Objects', icon: '🗂️' },
+ { id: 'objects', label: 'Objects', icon: '⊞' },
{ id: 'events', label: 'Events', icon: '⚡' },
- { id: 'projections', label: 'Projections', icon: '📈' },
- { id: 'reactions', label: 'Reactions', icon: '🔔' },
+ { id: 'projections', label: 'Projections', icon: '◎' },
+ { id: 'reactions', label: 'Reactions', icon: '⟳' },
],
},
{
- label: 'Observability',
+ label: 'Logs',
items: [
- { id: 'reaction-logs', label: 'Reaction Logs', icon: '📜' },
- { id: 'request-logs', label: 'Request Logs', icon: '📝' },
+ { id: 'reaction-logs', label: 'Reaction Logs', icon: '▸' },
+ { id: 'request-logs', label: 'Request Logs', icon: '▸' },
],
},
{
- label: 'Security',
- items: [{ id: 'api-keys', label: 'API Keys', icon: '🔑' }],
- },
- {
- label: 'System',
- items: [{ id: 'health', label: 'Health', icon: '🏠' }],
+ label: 'Admin',
+ items: [
+ { id: 'api-keys', label: 'API Keys', icon: '⚿' },
+ { id: 'health', label: 'System', icon: '●' },
+ ],
},
]
export default function Layout({ page, onPageChange, children }: Props) {
return (
-
+
{/* Sidebar */}
- | |