* Correctly sort summary responses

* Consider JinaV2 as a complex model

* Subscribe to record updates in camera watchdog

* Cleanup score showing

* No need to sort review summary

* Add tests for recording summary

* Don't break existing format

* Sort event summary by day
This commit is contained in:
Nicolas Mowen
2025-11-06 07:21:07 -07:00
committed by GitHub
parent a510ea9036
commit 8048168814
6 changed files with 400 additions and 8 deletions

View File

@@ -217,9 +217,7 @@ export function GroupedClassificationCard({
});
if (!best) {
// select an item from the middle of the time series as this usually correlates
// to a more representative image than the first or last
return group.at(Math.floor(group.length / 2));
return group.at(-1);
}
const bestTyped: ClassificationItemData = best;
@@ -230,7 +228,7 @@ export function GroupedClassificationCard({
? event.sub_label
: t(noClassificationLabel)
: bestTyped.name,
score: event?.data?.sub_label_score || bestTyped.score,
score: event?.data?.sub_label_score,
};
}, [group, event, noClassificationLabel, t]);