You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Highlight active search constraints on results pages (LMFDB#2770)
On search results pages, inputs that constrain the displayed query are now
visually distinguished with a subtle yellow tint so users can see at a glance
why results are filtered.
What/why: constraint-eligible search boxes render a `search_constraint` class
on results pages, plus `search_active` when their value in `info` is non-empty;
CSS tints active text/select backgrounds and rings active checkboxes. Display
controls (count, sort/column selectors, DynStats variable boxes, and diagram
axis/color selectors) set `is_constraint = False` so they are never
highlighted. Hidden inputs are untouched. A small JS hook keeps the highlight
live as the user edits, pairing with the existing stale/fresh button signal.
How verified: flask test client across elliptic curves, number fields, abstract
groups, abvar/Fq (checkbox), modular-curve/groups diagram search, and DynStats;
browse pages render unchanged; direct unit checks of every box subclass; all 19
color schemes resolve the new `search_active_background` key; /style.css renders;
ECQ diagram-search and CMF dynamic-stats tests pass; pyflakes clean.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments