Contributors: find a name as you type; projects in two columns on wide screens

Merged
LU
2d ago
+62-3

Contributors gains a Find a name field: type part of a name and only matching people stay, with a line counting them ("10 of 625 contributors match “ach”"). Accents and case are ignored. On a wide screen (≥1200 px), a person's projects run in two columns, so heavy contributors' rows are about half as tall.

Search, 1440 px and 390 px

search 1440

search 390

Rows at 1440 px, before → after

rows

On a phone the introduction is cut to six lines with "more", the match count sits right under the name field, and a project's wrapped roles hang under its title.

Decisions to review

  • The search works alongside the project and role filters (which reload the page) and is not written into the URL.
  • The field stays hidden until the script runs, so without JavaScript nobody sees a control that does nothing.
  • The page now loads contributor-filter.js by a relative path (../js/). With the absolute /js/ path, the preview at /rebrand-doors/ ran forrt.org's copy of the script, not the branch's. On forrt.org both paths load the same file.
  • The panel heading is now "Find contributors" (was "Filter contributors").

Checks

  • tenzing.py regenerated locally from the cache; Hugo build; screenshots at 390 and 1440 px.
  • Playwright: "aczel" → 1 match; "ach" → 10; "zzzq" → "No contributor’s name contains …"; with ?project=glossary, 112 people, of whom 98 match "a". No script errors.
  • Unit tests, check_source_rules.py.

🤖 Generated with Claude Code