feat: migrate playevent_note to StringCriterion and add note string filter to SessionFilterBar

This commit is contained in:
2026-06-10 18:19:45 +02:00
parent a1304e19ad
commit 64392c3935
5 changed files with 33 additions and 38 deletions
+3 -2
View File
@@ -560,7 +560,8 @@ class TestFilterBarRendering:
def test_mastered_not_checked_by_default(self):
html = str(FilterBar(filter_json=""))
assert 'checked="true"' not in html
assert 'name="filter-mastered" value="true" class="rounded-full border-default-medium bg-neutral-secondary-medium text-brand focus:ring-brand" checked="true"' not in html
assert 'name="filter-mastered" value="false" class="rounded-full border-default-medium bg-neutral-secondary-medium text-brand focus:ring-brand" checked="true"' not in html
def test_mastered_checked_when_filtered(self):
html = str(
@@ -1002,7 +1003,7 @@ class TestExpandedFiltersAgainstDB:
gf = GameFilter.from_json(
{
"playevent_note": {
"value": [{"id": "Completed", "label": "Completed"}],
"value": "Completed",
"modifier": "INCLUDES",
}
}