Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: with an agent open, the list's filters sit behind one filter button

An open agent narrows the list to a column, where the filter boxes and menus
took three rows. They now stack in a popover under one button that shows how
many filters are active; the full-width list keeps them in the bar.
This commit is contained in:
iris 2026-11-27 23:09:04 +01:00
commit e701be870a

View file

@ -0,0 +1,12 @@
import { test } from "node:test";
import assert from "node:assert/strict";
import { filterButtonLabel } from "../src/ui/filterable-view/filter-label.ts";
test("the filter button shows no count while no filter is active", () => {
assert.equal(filterButtonLabel(0), "filter");
});
test("the filter button counts the active filters", () => {
assert.equal(filterButtonLabel(1), "filter (1)");
assert.equal(filterButtonLabel(3), "filter (3)");
});