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