Merge branch 'main' of github.com:KucharczykL/timetracker
Django CI/CD / test (push) Failing after 13m50s
Django CI/CD / build-and-push (push) Has been skipped

This commit is contained in:
2026-06-07 20:22:50 +02:00
6 changed files with 197 additions and 46 deletions
+3 -9
View File
@@ -97,6 +97,7 @@ def SearchSelect(
placeholder: str = "Search…",
id: str = "",
sync_url: bool = False,
autofocus: bool = False,
) -> SafeText:
"""Render the search-select widget. See module docstring for the contract."""
selected = [_normalize_option(o) for o in (selected or [])]
@@ -139,17 +140,10 @@ def SearchSelect(
("autocomplete", "off"),
("class", _SEARCH_CLASS),
]
if search_value:
search_attrs.append(("value", search_value))
if autofocus:
search_attrs.append(("autofocus", ""))
search = Component(tag_name="input", attributes=search_attrs)
# ── Field row: pills + search box combined into one visual field ──
field = Component(
tag_name="div",
attributes=[("data-ss-field", ""), ("class", _FIELD_CLASS)],
children=[pills, search],
)
# ── Options panel (pre-rendered only when there is no search_url) ──
option_rows = [_option_row(o) for o in options] if not search_url else []
no_results = Component(