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:
4 files changed
+61
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user