Remove bare-value fallback from _extract_labeled

The JS always emits {id, label} objects now; the else branch was dead code
and the docstring was wrong. Update the remaining test that was still
passing bare strings.

https://claude.ai/code/session_01EyAJcMoDktLrY9tSbdHViA
This commit is contained in:
Claude
2026-06-08 19:00:03 +00:00
committed by Lukáš Kucharczyk
parent 11cd62a3b9
commit 428edbcfe8
2 changed files with 4 additions and 10 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ class TestFilterBarRendering:
html = str(
FilterBar(
filter_json=json.dumps(
{"status": {"value": ["f"], "modifier": "INCLUDES"}}
{"status": {"value": [{"id": "f", "label": "Finished"}], "modifier": "INCLUDES"}}
),
)
)