Skip to content

Filter form: Sort suggestions, A to Z or most requests (#199) - #200

Merged
noneck merged 1 commit into
masterfrom
feature/suggestion-sort
Nov 25, 2026
Merged

noneck merged 1 commit into
masterfrom
feature/suggestion-sort

Conversation

@noneck

@noneck noneck commented Nov 25, 2026

Copy link
Copy Markdown
Member

Closes #199. From Noel's review, 2026-11-24.

What changed

  • Sort suggestions switch (native radios styled as a pill) above Agency, Problem and Description on every page with the filter form. A to Z is the default; Most requests (the old order) is second.
  • A to Z sorts in tableLists (localeCompare, case-insensitive); Most requests keeps listOrderSql.
  • Not a filter, no Apply: it re-fills the lists at once. The link carries it: filtersToParams writes sort=count, nothing for A to Z, so the full-page map and back links keep it (onListOrder rewrites them). The address page still never rewrites its own URL.
  • Replaces the three per-box "Suggestions are listed…" hints with one screen-reader description (#list-order) that says the current order.
  • Help page, README and WHATS-CHANGED.md (dated 2026-11-24, page re-rendered); assets re-stamped.

Tests run

  • node --test v2/tests-js/: 123 passed (new: sort link parameter; A to Z vs. Most requests order).
  • cd v2/pipeline && uv run pytest: 271 passed (hint test rewritten for the switch).
  • v2/tests-browser: 23 passed. Three tests updated for the change: Tab now stops on the switch before Agency, and the agent's Problem list is A to Z.
  • Headless on the tailnet preview: district and map open A to Z; Most requests adds sort=count to the page and full-map links; a sort=count link opens on Most requests; no page errors.

🤖 Generated with Claude Code

A switch above Agency, Problem and Description orders all three lists A to Z (the
default) or with the most requests in the applied dates first. It replaces the three
per-box hints, changes only the lists (no Apply), and the link carries it as sort=count.

Closes #199

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noneck
noneck merged commit 0344b2a into master Nov 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filter form: sort suggestions A to Z or by most requests

1 participant