Skip to content

search: the filter combos ask for the search; a request reads its search once; frames for ari 3.7.13 - #11

Merged
transfix merged 5 commits into
mainfrom
search-combo-on-handlers
Nov 12, 2026
Merged

transfix merged 5 commits into
mainfrom
search-combo-on-handlers

Conversation

@transfix

Copy link
Copy Markdown
Contributor

Two changes, and a fix the first one turned up.

The filter combos ask for the search themselves. Platform, Arch and Link now search again from the first row in their on:, as the query field already does. on_tick no longer compares the filters with the ones it last sent each tick. That workaround waited on transfix/libcvc#902 (a combo's on: fires), merged 2026-10-30. ROADMAP's L15 is marked done.

A request reads its search once. on_tick read the search key at its top and took the request further down. On ari 3.7.13 a tick can run over frames, so a query typed in between was searched under the key from before it. The reply then counted as no new query, and the status kept the old package count ("builds 1-10 of 25, 10 packages"). The request now reads the query and the three filters once, as it is taken, and uses them for the key, the request and the prefetch alike. search_test caught this once the per-tick filter compare stopped shifting the timing.

Frames for ari 3.7.13. transfix/libcvc#1086 gave windows a maximize button, which FTXUI draws as [↑] in the title bar. The six unit frames with a window title take it, and only the first line of each changes. tests/run.sh hadn't run on 3.7.13 before: the scheduled runs skip it. The first run that did was today's hand-started test (Pages redeploy), and it failed on exactly these six frames.

Tests (Windows, ari 3.7.13+cvc.1 from cvcpkg.org):

  • tests/unit.sh: all frames pass.
  • tests/modules.sh: 5 documents, 42 tests, three runs in a row.
  • On main, the same search_test passes. Without the read-once fix, this branch fails it every time.

tests/interactive.sh (tmux) didn't run here; CI runs it on both backends, and it picks a platform with the keyboard.

…rch once

- The Platform, Arch and Link combos search again from the first row in their
  on:, as the query field does. on_tick no longer compares the filters with the
  ones it last sent: a combo's on: has fired since transfix/libcvc#902.
- on_tick read the search's key at its top and took the request further down.
  A tick can run over frames, so a query typed in between was searched under
  the key from before it: the reply counted as no new query, and the status
  kept the old package count. The request now reads the query and the filters
  once as it is taken, for the key, the request and the prefetch alike.
  (search_test caught it on ari 3.7.13 once the filter compare was gone.)
- search_test sets a filter as the combo's on: does; tests/interactive.sh picks
  one with the keyboard in both terminal backends. ROADMAP's L15 is done.
transfix/libcvc#1086 gave windows a maximize button; FTXUI draws it as [↑] in
the title bar. The six unit frames with a window title take it. Only the first
line of each changes. tests/run.sh had not run on 3.7.13 before: the scheduled
runs skip it.
The previous commit moved the unit frames to ari 3.7.13's window titles
([↑] after the title, transfix/libcvc#1086). The snapshots in
tests/expected/ draw the same windows: the cypkg window, and the
Builders, Builds, Activity and Account windows over it. Only those title
lines change.
A filter combo's on: sets the offset to 0 and req.search (views.ari); a
state-set on search.platform, .arch or .link alone no longer searches.
The integration copy of the filter tests set the filters alone, so each
waited for a search that never came (max_steps_exceeded). They now do
what the combos do, as tests/modules/search_test.ari already does.
The integration step's snapshots against a local cvcpkg-server
(tests/integration/expected/) draw the same cypkg window as
tests/expected/; its title line gains ari 3.7.13's [↑]. Nothing else in
those frames changes.
@transfix
transfix merged commit 77a1a82 into main Nov 12, 2026
6 checks passed
@transfix
transfix deleted the search-combo-on-handlers branch November 12, 2026 21:59
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.

1 participant