MCPcopy Create free account
hub / github.com/ShipSecAI/studio / handleEventToggle

Function handleEventToggle

frontend/src/components/timeline/EventInspector.tsx:270–291  ·  view source on GitHub ↗
(event: TimelineEvent, hasExpandableContent: boolean)

Source from the content-addressed store, hash-verified

268 };
269
270 const handleEventToggle = (event: TimelineEvent, hasExpandableContent: boolean) => {
271 if (!hasExpandableContent) return;
272
273 if (event.nodeId) {
274 selectNode(event.nodeId);
275 }
276 selectEvent(event.id);
277 seek(event.offsetMs);
278
279 // Disable auto-scroll when user manually selects an event
280 autoScrollRef.current = false;
281
282 setExpandedEvents((prev) => {
283 const next = new Set(prev);
284 if (next.has(event.id)) {
285 next.delete(event.id);
286 } else {
287 next.add(event.id);
288 }
289 return next;
290 });
291 };
292
293 const openFullMessageModal = (message: string, event: TimelineEvent) => {
294 setFullMessageModal({

Callers 1

EventInspectorFunction · 0.85

Calls 2

hasMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected