flock-core 0.5.0b63__py3-none-any.whl → 0.5.0b70__py3-none-any.whl
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.
Potentially problematic release.
This version of flock-core might be problematic. Click here for more details.
- flock/agent.py +205 -27
- flock/cli.py +74 -2
- flock/dashboard/websocket.py +13 -2
- flock/engines/dspy_engine.py +70 -13
- flock/examples.py +4 -1
- flock/frontend/README.md +15 -1
- flock/frontend/package-lock.json +11 -21
- flock/frontend/package.json +1 -1
- flock/frontend/src/App.tsx +74 -6
- flock/frontend/src/__tests__/e2e/critical-scenarios.test.tsx +4 -5
- flock/frontend/src/__tests__/integration/filtering-e2e.test.tsx +7 -3
- flock/frontend/src/components/filters/ArtifactTypeFilter.tsx +21 -0
- flock/frontend/src/components/filters/FilterFlyout.module.css +104 -0
- flock/frontend/src/components/filters/FilterFlyout.tsx +80 -0
- flock/frontend/src/components/filters/FilterPills.module.css +186 -45
- flock/frontend/src/components/filters/FilterPills.test.tsx +115 -99
- flock/frontend/src/components/filters/FilterPills.tsx +120 -44
- flock/frontend/src/components/filters/ProducerFilter.tsx +21 -0
- flock/frontend/src/components/filters/SavedFiltersControl.module.css +60 -0
- flock/frontend/src/components/filters/SavedFiltersControl.test.tsx +158 -0
- flock/frontend/src/components/filters/SavedFiltersControl.tsx +159 -0
- flock/frontend/src/components/filters/TagFilter.tsx +21 -0
- flock/frontend/src/components/filters/TimeRangeFilter.module.css +24 -0
- flock/frontend/src/components/filters/TimeRangeFilter.tsx +6 -1
- flock/frontend/src/components/filters/VisibilityFilter.tsx +21 -0
- flock/frontend/src/components/graph/GraphCanvas.tsx +24 -0
- flock/frontend/src/components/layout/DashboardLayout.css +13 -0
- flock/frontend/src/components/layout/DashboardLayout.tsx +8 -24
- flock/frontend/src/components/modules/HistoricalArtifactsModule.module.css +288 -0
- flock/frontend/src/components/modules/HistoricalArtifactsModule.tsx +460 -0
- flock/frontend/src/components/modules/HistoricalArtifactsModuleWrapper.tsx +13 -0
- flock/frontend/src/components/modules/ModuleRegistry.ts +7 -1
- flock/frontend/src/components/modules/registerModules.ts +9 -10
- flock/frontend/src/hooks/useModules.ts +11 -1
- flock/frontend/src/services/api.ts +140 -0
- flock/frontend/src/services/indexeddb.ts +56 -2
- flock/frontend/src/services/websocket.ts +129 -0
- flock/frontend/src/store/filterStore.test.ts +105 -185
- flock/frontend/src/store/filterStore.ts +173 -26
- flock/frontend/src/store/graphStore.test.ts +19 -0
- flock/frontend/src/store/graphStore.ts +166 -27
- flock/frontend/src/types/filters.ts +34 -1
- flock/frontend/src/types/graph.ts +7 -0
- flock/frontend/src/utils/artifacts.ts +24 -0
- flock/mcp/client.py +25 -1
- flock/mcp/config.py +1 -10
- flock/mcp/manager.py +34 -3
- flock/mcp/types/callbacks.py +4 -1
- flock/orchestrator.py +56 -5
- flock/service.py +146 -9
- flock/store.py +971 -24
- {flock_core-0.5.0b63.dist-info → flock_core-0.5.0b70.dist-info}/METADATA +27 -1
- {flock_core-0.5.0b63.dist-info → flock_core-0.5.0b70.dist-info}/RECORD +56 -49
- flock/frontend/src/components/filters/FilterBar.module.css +0 -29
- flock/frontend/src/components/filters/FilterBar.test.tsx +0 -133
- flock/frontend/src/components/filters/FilterBar.tsx +0 -33
- flock/frontend/src/components/modules/EventLogModule.test.tsx +0 -401
- flock/frontend/src/components/modules/EventLogModule.tsx +0 -396
- flock/frontend/src/components/modules/EventLogModuleWrapper.tsx +0 -17
- {flock_core-0.5.0b63.dist-info → flock_core-0.5.0b70.dist-info}/WHEEL +0 -0
- {flock_core-0.5.0b63.dist-info → flock_core-0.5.0b70.dist-info}/entry_points.txt +0 -0
- {flock_core-0.5.0b63.dist-info → flock_core-0.5.0b70.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
import React, { useMemo, useState } from 'react';
|
|
2
|
-
import { Message, Agent } from '../../types/graph';
|
|
3
|
-
import { TimeRange } from '../../types/filters';
|
|
4
|
-
|
|
5
|
-
interface ModuleContext {
|
|
6
|
-
agents: Map<string, Agent>;
|
|
7
|
-
messages: Map<string, Message>;
|
|
8
|
-
events: Message[];
|
|
9
|
-
filters: {
|
|
10
|
-
correlationId: string | null;
|
|
11
|
-
timeRange: TimeRange;
|
|
12
|
-
};
|
|
13
|
-
publish: (artifact: any) => void;
|
|
14
|
-
invoke: (agentName: string, inputs: any[]) => void;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface EventLogModuleProps {
|
|
18
|
-
context: ModuleContext;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
type SortField = 'timestamp' | 'type' | 'agent' | 'correlationId';
|
|
22
|
-
type SortDirection = 'asc' | 'desc';
|
|
23
|
-
|
|
24
|
-
const getTimeRangeStart = (timeRange: TimeRange, now: number): number => {
|
|
25
|
-
if (timeRange.preset === 'custom' && timeRange.start) {
|
|
26
|
-
return timeRange.start;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
switch (timeRange.preset) {
|
|
30
|
-
case 'last5min':
|
|
31
|
-
return now - 5 * 60 * 1000;
|
|
32
|
-
case 'last10min':
|
|
33
|
-
return now - 10 * 60 * 1000;
|
|
34
|
-
case 'last1hour':
|
|
35
|
-
return now - 60 * 60 * 1000;
|
|
36
|
-
default:
|
|
37
|
-
return now - 10 * 60 * 1000; // Default to 10 minutes
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const EventLogModule: React.FC<EventLogModuleProps> = ({ context }) => {
|
|
42
|
-
const { events, filters } = context;
|
|
43
|
-
const [expandedRowIds, setExpandedRowIds] = useState<Set<string>>(new Set());
|
|
44
|
-
const [sortField, setSortField] = useState<SortField>('timestamp');
|
|
45
|
-
const [sortDirection, setSortDirection] = useState<SortDirection>('desc');
|
|
46
|
-
|
|
47
|
-
// Apply filters
|
|
48
|
-
const filteredEvents = useMemo(() => {
|
|
49
|
-
let result = [...events];
|
|
50
|
-
|
|
51
|
-
// Filter by correlation ID
|
|
52
|
-
if (filters.correlationId) {
|
|
53
|
-
result = result.filter((e) => e.correlationId === filters.correlationId);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
// Filter by time range
|
|
57
|
-
if (filters.timeRange) {
|
|
58
|
-
const now = Date.now();
|
|
59
|
-
const start = getTimeRangeStart(filters.timeRange, now);
|
|
60
|
-
const end = filters.timeRange.preset === 'custom' && filters.timeRange.end
|
|
61
|
-
? filters.timeRange.end
|
|
62
|
-
: now;
|
|
63
|
-
|
|
64
|
-
result = result.filter((e) => e.timestamp >= start && e.timestamp <= end);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return result;
|
|
68
|
-
}, [events, filters]);
|
|
69
|
-
|
|
70
|
-
// Apply sorting
|
|
71
|
-
const sortedEvents = useMemo(() => {
|
|
72
|
-
const sorted = [...filteredEvents];
|
|
73
|
-
|
|
74
|
-
sorted.sort((a, b) => {
|
|
75
|
-
let comparison = 0;
|
|
76
|
-
|
|
77
|
-
switch (sortField) {
|
|
78
|
-
case 'timestamp':
|
|
79
|
-
comparison = a.timestamp - b.timestamp;
|
|
80
|
-
break;
|
|
81
|
-
case 'type':
|
|
82
|
-
comparison = a.type.localeCompare(b.type);
|
|
83
|
-
break;
|
|
84
|
-
case 'agent':
|
|
85
|
-
comparison = a.producedBy.localeCompare(b.producedBy);
|
|
86
|
-
break;
|
|
87
|
-
case 'correlationId':
|
|
88
|
-
comparison = a.correlationId.localeCompare(b.correlationId);
|
|
89
|
-
break;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return sortDirection === 'asc' ? comparison : -comparison;
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
return sorted;
|
|
96
|
-
}, [filteredEvents, sortField, sortDirection]);
|
|
97
|
-
|
|
98
|
-
const handleSort = (field: SortField) => {
|
|
99
|
-
if (sortField === field) {
|
|
100
|
-
// Toggle direction
|
|
101
|
-
setSortDirection(sortDirection === 'asc' ? 'desc' : 'asc');
|
|
102
|
-
} else {
|
|
103
|
-
// New field, default to ascending
|
|
104
|
-
setSortField(field);
|
|
105
|
-
setSortDirection('asc');
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
const handleExpandToggle = (eventId: string) => {
|
|
110
|
-
setExpandedRowIds(prev => {
|
|
111
|
-
const newSet = new Set(prev);
|
|
112
|
-
if (newSet.has(eventId)) {
|
|
113
|
-
newSet.delete(eventId);
|
|
114
|
-
} else {
|
|
115
|
-
newSet.add(eventId);
|
|
116
|
-
}
|
|
117
|
-
return newSet;
|
|
118
|
-
});
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
const handleExpandAll = () => {
|
|
122
|
-
const allIds = new Set(sortedEvents.map(e => e.id));
|
|
123
|
-
setExpandedRowIds(allIds);
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
const handleCollapseAll = () => {
|
|
127
|
-
setExpandedRowIds(new Set());
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
const [hoveredRow, setHoveredRow] = useState<string | null>(null);
|
|
131
|
-
|
|
132
|
-
return (
|
|
133
|
-
<div
|
|
134
|
-
className="event-log-module"
|
|
135
|
-
style={{
|
|
136
|
-
padding: '0',
|
|
137
|
-
height: '100%',
|
|
138
|
-
display: 'flex',
|
|
139
|
-
flexDirection: 'column',
|
|
140
|
-
background: 'var(--color-bg-surface)',
|
|
141
|
-
}}
|
|
142
|
-
>
|
|
143
|
-
{/* Expand/Collapse All Button */}
|
|
144
|
-
<div style={{
|
|
145
|
-
padding: 'var(--space-component-sm) var(--space-component-md)',
|
|
146
|
-
borderBottom: 'var(--border-width-1) solid var(--color-border-subtle)',
|
|
147
|
-
display: 'flex',
|
|
148
|
-
justifyContent: 'flex-end',
|
|
149
|
-
}}>
|
|
150
|
-
<button
|
|
151
|
-
onClick={expandedRowIds.size > 0 ? handleCollapseAll : handleExpandAll}
|
|
152
|
-
style={{
|
|
153
|
-
padding: 'var(--space-component-xs) var(--space-component-sm)',
|
|
154
|
-
cursor: 'pointer',
|
|
155
|
-
border: 'var(--border-width-1) solid var(--color-primary-500)',
|
|
156
|
-
borderRadius: 'var(--radius-md)',
|
|
157
|
-
background: expandedRowIds.size > 0 ? 'var(--color-primary-500)' : 'transparent',
|
|
158
|
-
color: expandedRowIds.size > 0 ? 'var(--color-bg-base)' : 'var(--color-primary-500)',
|
|
159
|
-
fontSize: 'var(--font-size-body-sm)',
|
|
160
|
-
fontWeight: 'var(--font-weight-medium)',
|
|
161
|
-
transition: 'var(--transition-colors)',
|
|
162
|
-
}}
|
|
163
|
-
>
|
|
164
|
-
{expandedRowIds.size > 0 ? 'Collapse All' : 'Expand All'}
|
|
165
|
-
</button>
|
|
166
|
-
</div>
|
|
167
|
-
|
|
168
|
-
{/* Table Container */}
|
|
169
|
-
<div style={{
|
|
170
|
-
flex: 1,
|
|
171
|
-
overflow: 'auto',
|
|
172
|
-
}}>
|
|
173
|
-
<table style={{
|
|
174
|
-
width: '100%',
|
|
175
|
-
borderCollapse: 'collapse',
|
|
176
|
-
fontSize: 'var(--font-size-body-sm)',
|
|
177
|
-
tableLayout: 'auto',
|
|
178
|
-
}}>
|
|
179
|
-
<thead>
|
|
180
|
-
<tr style={{
|
|
181
|
-
background: 'rgba(42, 42, 50, 0.5)',
|
|
182
|
-
position: 'sticky',
|
|
183
|
-
top: 0,
|
|
184
|
-
zIndex: 1,
|
|
185
|
-
}}>
|
|
186
|
-
<th
|
|
187
|
-
onClick={() => handleSort('timestamp')}
|
|
188
|
-
style={{
|
|
189
|
-
cursor: 'pointer',
|
|
190
|
-
padding: 'var(--space-component-sm) var(--space-component-md)',
|
|
191
|
-
borderBottom: 'var(--border-width-1) solid var(--color-border-subtle)',
|
|
192
|
-
textAlign: 'left',
|
|
193
|
-
fontWeight: 'var(--font-weight-semibold)',
|
|
194
|
-
color: 'var(--color-text-primary)',
|
|
195
|
-
transition: 'var(--transition-colors)',
|
|
196
|
-
userSelect: 'none',
|
|
197
|
-
}}
|
|
198
|
-
onMouseEnter={(e) => e.currentTarget.style.background = 'var(--color-bg-elevated)'}
|
|
199
|
-
onMouseLeave={(e) => e.currentTarget.style.background = 'transparent'}
|
|
200
|
-
>
|
|
201
|
-
Timestamp {sortField === 'timestamp' && (
|
|
202
|
-
<span style={{ color: 'var(--color-primary-500)', marginLeft: 'var(--gap-xs)' }}>
|
|
203
|
-
{sortDirection === 'asc' ? '↑' : '↓'}
|
|
204
|
-
</span>
|
|
205
|
-
)}
|
|
206
|
-
</th>
|
|
207
|
-
<th
|
|
208
|
-
onClick={() => handleSort('type')}
|
|
209
|
-
style={{
|
|
210
|
-
cursor: 'pointer',
|
|
211
|
-
padding: 'var(--space-component-sm) var(--space-component-md)',
|
|
212
|
-
borderBottom: 'var(--border-width-1) solid var(--color-border-subtle)',
|
|
213
|
-
textAlign: 'left',
|
|
214
|
-
fontWeight: 'var(--font-weight-semibold)',
|
|
215
|
-
color: 'var(--color-text-primary)',
|
|
216
|
-
transition: 'var(--transition-colors)',
|
|
217
|
-
userSelect: 'none',
|
|
218
|
-
}}
|
|
219
|
-
onMouseEnter={(e) => e.currentTarget.style.background = 'var(--color-bg-elevated)'}
|
|
220
|
-
onMouseLeave={(e) => e.currentTarget.style.background = 'transparent'}
|
|
221
|
-
>
|
|
222
|
-
Type {sortField === 'type' && (
|
|
223
|
-
<span style={{ color: 'var(--color-primary-500)', marginLeft: 'var(--gap-xs)' }}>
|
|
224
|
-
{sortDirection === 'asc' ? '↑' : '↓'}
|
|
225
|
-
</span>
|
|
226
|
-
)}
|
|
227
|
-
</th>
|
|
228
|
-
<th
|
|
229
|
-
onClick={() => handleSort('agent')}
|
|
230
|
-
style={{
|
|
231
|
-
cursor: 'pointer',
|
|
232
|
-
padding: 'var(--space-component-sm) var(--space-component-md)',
|
|
233
|
-
borderBottom: 'var(--border-width-1) solid var(--color-border-subtle)',
|
|
234
|
-
textAlign: 'left',
|
|
235
|
-
fontWeight: 'var(--font-weight-semibold)',
|
|
236
|
-
color: 'var(--color-text-primary)',
|
|
237
|
-
transition: 'var(--transition-colors)',
|
|
238
|
-
userSelect: 'none',
|
|
239
|
-
}}
|
|
240
|
-
onMouseEnter={(e) => e.currentTarget.style.background = 'var(--color-bg-elevated)'}
|
|
241
|
-
onMouseLeave={(e) => e.currentTarget.style.background = 'transparent'}
|
|
242
|
-
>
|
|
243
|
-
Agent {sortField === 'agent' && (
|
|
244
|
-
<span style={{ color: 'var(--color-primary-500)', marginLeft: 'var(--gap-xs)' }}>
|
|
245
|
-
{sortDirection === 'asc' ? '↑' : '↓'}
|
|
246
|
-
</span>
|
|
247
|
-
)}
|
|
248
|
-
</th>
|
|
249
|
-
<th
|
|
250
|
-
onClick={() => handleSort('correlationId')}
|
|
251
|
-
style={{
|
|
252
|
-
cursor: 'pointer',
|
|
253
|
-
padding: 'var(--space-component-sm) var(--space-component-md)',
|
|
254
|
-
borderBottom: 'var(--border-width-1) solid var(--color-border-subtle)',
|
|
255
|
-
textAlign: 'left',
|
|
256
|
-
fontWeight: 'var(--font-weight-semibold)',
|
|
257
|
-
color: 'var(--color-text-primary)',
|
|
258
|
-
transition: 'var(--transition-colors)',
|
|
259
|
-
userSelect: 'none',
|
|
260
|
-
}}
|
|
261
|
-
onMouseEnter={(e) => e.currentTarget.style.background = 'var(--color-bg-elevated)'}
|
|
262
|
-
onMouseLeave={(e) => e.currentTarget.style.background = 'transparent'}
|
|
263
|
-
>
|
|
264
|
-
Correlation ID {sortField === 'correlationId' && (
|
|
265
|
-
<span style={{ color: 'var(--color-primary-500)', marginLeft: 'var(--gap-xs)' }}>
|
|
266
|
-
{sortDirection === 'asc' ? '↑' : '↓'}
|
|
267
|
-
</span>
|
|
268
|
-
)}
|
|
269
|
-
</th>
|
|
270
|
-
<th style={{
|
|
271
|
-
padding: 'var(--space-component-sm) var(--space-component-md)',
|
|
272
|
-
borderBottom: 'var(--border-width-1) solid var(--color-border-subtle)',
|
|
273
|
-
textAlign: 'left',
|
|
274
|
-
fontWeight: 'var(--font-weight-semibold)',
|
|
275
|
-
color: 'var(--color-text-primary)',
|
|
276
|
-
}}>
|
|
277
|
-
Actions
|
|
278
|
-
</th>
|
|
279
|
-
</tr>
|
|
280
|
-
</thead>
|
|
281
|
-
<tbody>
|
|
282
|
-
{sortedEvents.map((event) => (
|
|
283
|
-
<React.Fragment key={event.id}>
|
|
284
|
-
<tr
|
|
285
|
-
style={{
|
|
286
|
-
borderBottom: 'var(--border-width-1) solid var(--color-border-subtle)',
|
|
287
|
-
background: hoveredRow === event.id ? 'var(--color-bg-elevated)' : 'transparent',
|
|
288
|
-
transition: 'var(--transition-colors)',
|
|
289
|
-
}}
|
|
290
|
-
onMouseEnter={() => setHoveredRow(event.id)}
|
|
291
|
-
onMouseLeave={() => setHoveredRow(null)}
|
|
292
|
-
>
|
|
293
|
-
<td style={{
|
|
294
|
-
padding: 'var(--space-component-sm) var(--space-component-md)',
|
|
295
|
-
color: 'var(--color-text-secondary)',
|
|
296
|
-
fontFamily: 'var(--font-family-mono)',
|
|
297
|
-
}}>
|
|
298
|
-
{new Date(event.timestamp).toLocaleString()}
|
|
299
|
-
</td>
|
|
300
|
-
<td style={{
|
|
301
|
-
padding: 'var(--space-component-sm) var(--space-component-md)',
|
|
302
|
-
color: 'var(--color-success)',
|
|
303
|
-
fontWeight: 'var(--font-weight-medium)',
|
|
304
|
-
}}>
|
|
305
|
-
{event.type}
|
|
306
|
-
</td>
|
|
307
|
-
<td style={{
|
|
308
|
-
padding: 'var(--space-component-sm) var(--space-component-md)',
|
|
309
|
-
color: 'var(--color-warning)',
|
|
310
|
-
}}>
|
|
311
|
-
{event.producedBy}
|
|
312
|
-
</td>
|
|
313
|
-
<td style={{
|
|
314
|
-
padding: 'var(--space-component-sm) var(--space-component-md)',
|
|
315
|
-
color: 'var(--color-text-secondary)',
|
|
316
|
-
fontFamily: 'var(--font-family-mono)',
|
|
317
|
-
fontSize: 'var(--font-size-body-xs)',
|
|
318
|
-
wordBreak: 'break-all',
|
|
319
|
-
}}>
|
|
320
|
-
{event.correlationId}
|
|
321
|
-
</td>
|
|
322
|
-
<td style={{ padding: 'var(--space-component-sm) var(--space-component-md)' }}>
|
|
323
|
-
<button
|
|
324
|
-
onClick={() => handleExpandToggle(event.id)}
|
|
325
|
-
style={{
|
|
326
|
-
padding: 'var(--space-component-xs) var(--space-component-sm)',
|
|
327
|
-
cursor: 'pointer',
|
|
328
|
-
border: 'var(--border-width-1) solid var(--color-primary-500)',
|
|
329
|
-
borderRadius: 'var(--radius-md)',
|
|
330
|
-
background: expandedRowIds.has(event.id) ? 'var(--color-primary-500)' : 'transparent',
|
|
331
|
-
color: expandedRowIds.has(event.id) ? 'var(--color-bg-base)' : 'var(--color-primary-500)',
|
|
332
|
-
fontSize: 'var(--font-size-body-xs)',
|
|
333
|
-
fontWeight: 'var(--font-weight-medium)',
|
|
334
|
-
transition: 'var(--transition-colors)',
|
|
335
|
-
}}
|
|
336
|
-
onMouseEnter={(e) => {
|
|
337
|
-
if (!expandedRowIds.has(event.id)) {
|
|
338
|
-
e.currentTarget.style.background = 'var(--color-primary-500-alpha-10)';
|
|
339
|
-
}
|
|
340
|
-
}}
|
|
341
|
-
onMouseLeave={(e) => {
|
|
342
|
-
if (!expandedRowIds.has(event.id)) {
|
|
343
|
-
e.currentTarget.style.background = 'transparent';
|
|
344
|
-
}
|
|
345
|
-
}}
|
|
346
|
-
>
|
|
347
|
-
{expandedRowIds.has(event.id) ? 'Collapse ▲' : 'Expand ▼'}
|
|
348
|
-
</button>
|
|
349
|
-
</td>
|
|
350
|
-
</tr>
|
|
351
|
-
{expandedRowIds.has(event.id) && (
|
|
352
|
-
<tr>
|
|
353
|
-
<td colSpan={5} style={{
|
|
354
|
-
padding: 'var(--space-component-md)',
|
|
355
|
-
background: 'var(--color-bg-base)',
|
|
356
|
-
borderBottom: 'var(--border-width-1) solid var(--color-border-subtle)',
|
|
357
|
-
}}>
|
|
358
|
-
<pre style={{
|
|
359
|
-
margin: 0,
|
|
360
|
-
fontSize: 'var(--font-size-body-xs)',
|
|
361
|
-
color: 'var(--color-text-primary)',
|
|
362
|
-
fontFamily: 'var(--font-family-mono)',
|
|
363
|
-
lineHeight: '1.6',
|
|
364
|
-
whiteSpace: 'pre-wrap',
|
|
365
|
-
wordBreak: 'break-word',
|
|
366
|
-
overflowWrap: 'break-word',
|
|
367
|
-
}}>
|
|
368
|
-
{JSON.stringify(event.payload, null, 2)}
|
|
369
|
-
</pre>
|
|
370
|
-
</td>
|
|
371
|
-
</tr>
|
|
372
|
-
)}
|
|
373
|
-
</React.Fragment>
|
|
374
|
-
))}
|
|
375
|
-
</tbody>
|
|
376
|
-
</table>
|
|
377
|
-
{sortedEvents.length === 0 && (
|
|
378
|
-
<div style={{
|
|
379
|
-
padding: 'var(--space-component-xl)',
|
|
380
|
-
textAlign: 'center',
|
|
381
|
-
color: 'var(--color-text-secondary)',
|
|
382
|
-
fontSize: 'var(--font-size-body-sm)',
|
|
383
|
-
}}>
|
|
384
|
-
<div style={{ fontSize: '32px', marginBottom: 'var(--gap-md)', opacity: 0.5 }}>📋</div>
|
|
385
|
-
<div>No events to display</div>
|
|
386
|
-
<div style={{ fontSize: 'var(--font-size-body-xs)', marginTop: 'var(--gap-sm)', opacity: 0.7 }}>
|
|
387
|
-
Events will appear here as they occur
|
|
388
|
-
</div>
|
|
389
|
-
</div>
|
|
390
|
-
)}
|
|
391
|
-
</div>
|
|
392
|
-
</div>
|
|
393
|
-
);
|
|
394
|
-
};
|
|
395
|
-
|
|
396
|
-
export default EventLogModule;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import EventLogModule from './EventLogModule';
|
|
3
|
-
import type { ModuleContext } from './ModuleRegistry';
|
|
4
|
-
|
|
5
|
-
interface EventLogModuleWrapperProps {
|
|
6
|
-
context: ModuleContext;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Wrapper component for EventLogModule
|
|
11
|
-
* Simply passes through the context provided by ModuleWindow (via useModules hook)
|
|
12
|
-
*/
|
|
13
|
-
const EventLogModuleWrapper: React.FC<EventLogModuleWrapperProps> = ({ context }) => {
|
|
14
|
-
return <EventLogModule context={context} />;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export default EventLogModuleWrapper;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|