fix: show quizzes without local artifacts in library exam filters

Classify quizzes as assessments during online and offline scans,
support legacy quiz entries in the Exams filter, and add regression tests.
This commit is contained in:
Meghdad committed 2026-10-29 17:00:53 +03:30
1 parent 3e37df980c
commit 9d277383ac
4 files changed
+61 -2

No files matched your search

+1
View File
@@ -261,6 +261,7 @@ function resourceMatches(item) {
if (state.query && !haystack.includes(state.query)) return false;
if (state.filter === "all") return true;
if (state.filter === "downloaded" || state.filter === "missing") return item.status === state.filter;
if (state.filter === "assessment") return item.kind === "assessment" || item.activity_type === "quiz";
return item.kind === state.filter;
}