From 15bb3ce1b92501d43222970cd7d16af546e8e784 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 8 Jun 2026 14:13:05 +0000 Subject: [PATCH] Expand the ss namespace prefix to search-select everywhere MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Spell out the abbreviated data-ss-* hook attributes (data-search-select-option, -label, -mode, -template, -action, -type, -modifier, -modifier-option, -pills, -search, -options, -no-results) and the JS expando properties (_searchSelectInit, _searchSelectLabel, _searchSelectDirty, _searchSelectOption) across components, JS, and tests — no abbreviations left in the widget's hooks. https://claude.ai/code/session_01XzhXvMvw42CQGc9kmin3GS --- common/components/primitives.py | 8 +++- common/components/search_select.py | 43 +++++++++-------- games/static/js/filter_bar.js | 6 +-- games/static/js/search_select.js | 76 +++++++++++++++--------------- tests/test_filter_bars.py | 4 +- tests/test_filters.py | 2 +- tests/test_search_select.py | 64 ++++++++++++------------- 7 files changed, 106 insertions(+), 97 deletions(-) diff --git a/common/components/primitives.py b/common/components/primitives.py index 6c76929..93289c0 100644 --- a/common/components/primitives.py +++ b/common/components/primitives.py @@ -395,7 +395,7 @@ def Pill( are JS hooks only (no CSS attached). ``value`` (when set) becomes ``data-value``; extra ``attributes`` are appended to the outer span. - ``label_slot=True`` wraps the label in a ```` so JS can + ``label_slot=True`` wraps the label in a ```` so JS can fill it when cloning the pill from a server-rendered ``