fix: filter dashboard activity feed events
This commit is contained in:
@@ -2142,7 +2142,10 @@
|
||||
dashboardState.toolCounts[t.name] = t.count;
|
||||
}
|
||||
|
||||
const events = (recentData.events || []).slice().reverse();
|
||||
const events = (recentData.events || [])
|
||||
.filter(isAgentTimelineEvent)
|
||||
.slice()
|
||||
.reverse();
|
||||
for (const evt of events) {
|
||||
const id = getRecordID(evt);
|
||||
if (id && !dashboardState.recentEventIDs.has(id)) {
|
||||
@@ -2224,6 +2227,13 @@
|
||||
renderSummaryCards();
|
||||
}
|
||||
|
||||
if (!isAgentTimelineEvent(msg.data)) {
|
||||
if (dashboardState.timeseries && dashboardState.window === '1h') {
|
||||
appendToCurrentBucket(msg.data);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
const id = getRecordID(msg.data);
|
||||
if (id && !dashboardState.recentEventIDs.has(id)) {
|
||||
dashboardState.recentEventIDs.add(id);
|
||||
|
||||
Reference in New Issue
Block a user