Skip to content

Problem and Description as UI SDK comboboxes, agent-ready, in the NYSDS look (#187, slice 1) - #189

Merged
noneck merged 9 commits into
masterfrom
feature/agent-ready-filters-prototype
Nov 23, 2026
Merged

noneck merged 9 commits into
masterfrom
feature/agent-ready-filters-prototype

Conversation

@noneck

@noneck noneck commented Nov 23, 2026

Copy link
Copy Markdown
Member

Part of #187 (slice 1). It does not close #187 yet, because the iPhone size check in its acceptance hasn't been done. Stacked on the #186 PR; merge that one first. Tracking issue for the design layers: BetaNYC/betanyc-ai-workspace#1733 (option 2).

What changed

  • Problem and Description are now UI SDK ui-combobox with multiple picks, shown as chips. Description uses a virtualized list (670 items). Exclude is ui-checkbox. Apply and Reset are ui-button, styled like BoardStat's other buttons. Dates, Agency and Status stay native.
  • filterform.js follows valuechange, checkedchange and action. The draft-then-Apply flow is unchanged, and v2: Filter panel layout, an Apply button, and wider charts #142's typed-text rule is kept.
  • UI SDK 0.1.0-beta.14 is pinned on jsDelivr through the import map (js/vendor-importmap.json, merged by stamp_assets.py).
  • css/ui-theme.css: a custom NYSDS theme, betanyc, with --ui-* mapped to it, plus forced-colors rules.
  • Agent test (createAgent): picks two problems and a description, ticks Exclude, presses Apply, then checks the link and the counts.
  • Each chip's remove button names its kind ("Remove problem filter X" or "Remove description filter X"). A test covers a value that is both a problem and a description.
  • If the UI SDK files fail to load, a warning stays next to the form.
  • test_filter_form.py is rewritten on purpose for the new markup.
  • There's a What's changed entry, and whats-changed.html is re-rendered.

Findings

  • Size: UI SDK adds 121 files, 736 KB raw, about 211 KB gzip, measured in desktop Chromium. It hasn't been measured on an iPhone, so Pilot: agent-ready Problem and Description filters with UI SDK, in the NYSDS look #187's size acceptance is not met yet.
  • createAgent doesn't see controls inside a closed <details>. Slice 2 plans UI SDK's Accordion.
  • The page doesn't load the agent bridge. An agent has to import it itself. The public copy doesn't claim agent support.

Test plan, as run

  • Marvin reran all three at the branch head: cd v2/tests-browser && uv run pytest (21 passed, offline), cd v2/pipeline && uv run pytest (264 passed), node --test v2/tests-js/ (105 passed).
  • QA, two rounds by two read-only reviewers (code and credibility). Round 1 found 2 should-fix bugs, 1 public-copy blocker and nits, all fixed. Round 2: ship.
  • Checked by hand in Chromium: keyboard (Tab, arrows, Enter, Escape, Backspace), click-away, forced colors, a 390 px width, and the address and map pages.

Still open

🤖 Generated with Claude Code

noneck and others added 9 commits November 22, 2026 22:25
…look (#187)

- Problem and Description are ui-combobox multiple with chips; Description's
  list is virtualized (the docs' pattern). Exclude is ui-checkbox; Apply and
  Reset are ui-button. Dates, Agency and Status stay native.
- filterform.js follows valuechange, checkedchange and action into the draft;
  nothing applies until Apply, as before.
- UI SDK 0.1.0-beta.14 pinned on jsDelivr through the import map
  (js/vendor-importmap.json, merged by stamp_assets.py). Plain ES module files,
  so @ui-sdk/web/agent shares one @ui-sdk/core with the components.
- css/ui-theme.css: a custom NYSDS theme in BetaNYC blues, --ui-* mapped to it,
  forced-colors rules.
- Pages restamped (stamp_assets.py).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sts rewritten (#187)

- tests-browser/test_agent.py: createAgent (@ui-sdk/web/agent) sees Problem,
  Description, Exclude, Apply and Reset; sets two problems, a description and
  Exclude, presses Apply; the link and counts match a fresh load of that link.
- Measured: the bridge leaves out every control inside a closed <details>, and a
  step naming one fails. Pinned as a test, for slice 2.
- pipeline/tests/test_filter_form.py rewritten on purpose for the new markup:
  UI SDK events instead of change/keydown, query instead of value on Reset, and
  new checks for the parts, the one pinned version, and the import map.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hone, virtual list (#187)

- tests-browser/test_pickers.py: keyboard (Tab, type, Arrow+Enter, Escape,
  Backspace, Enter in an empty box applies), click-away, visible focus, forced
  colors, a 390 px screen, the virtualized Description list, and UI SDK's
  download size with a budget.
- Fixed while checking: the virtual list was never used, because pages fill the
  lists before bind(); it is now made on first use.
- Kept #142's rule: typed text that was never chosen stays in the box (UI SDK
  would clear it on focus-out), so Apply adds a whole name or says it names
  nothing; Enter after a whole name adds it.
- Check-mark indicators on chosen items; pages restamped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…page form test (#187)

Typing after scrolling far down left the window past the end of the shorter
list, so UI SDK drew every match itself, unindexed. New matches now start at
the top. Found on real Manhattan CD 1 data (670 descriptions).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
web.css draws them as a masked background, which forced colors repaints.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r tests (#186, #187)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Chip buttons are "Remove problem filter X" / "Remove description filter X"
  again, and chips rows are "Chosen problems" / "Chosen descriptions" /
  "Excluded descriptions" (UI SDK rewrites its own names, so an observer puts
  these back). Test link adds Derelict Vehicles as both kinds; toolbar role
  checked too.
- Description's virtual list filters by box.query a tick after querychange,
  and again on open, so it matches text kept after click-away.
- "Boxes did not load" is a sticky alert (#parts-failed) the counts never
  overwrite, shown with the panel closed too.
- Browser tests: address page; console errors fail a test (only the fixture's
  missing street map is allowed); changes.json stub in the fixture; a test that
  refuses extensions.duckdb.org confirms the page cannot read data without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… (QA round 1)

- No claim that an AI assistant can use the boxes (the page does not load the
  agent bridge, and closed groups hide controls).
- "A new design" for Problem and Description; Exclude, Apply and Reset "have
  the new look and work as before".
- No screen reader or High Contrast claim until one is run on real systems.
- Shorter: the format joins continuation lines, so the text is split across
  What changed and Who it affects. Page re-rendered; check passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd 2)

Apply filters and Reset filters keep BoardStat's button style (css/ui-theme.css).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noneck
noneck changed the base branch from feature/browser-tests-186 to master November 23, 2026 04:52
@noneck
noneck merged commit 0cd08d8 into master Nov 23, 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.

Pilot: agent-ready Problem and Description filters with UI SDK, in the NYSDS look

1 participant