Public: anyone can read this; the crew can change it.
/explore says how many apps match, in one plain line above the list #14881
Check · Review · Land · Live done — Landed and live in production.
The behaviour already holds on main, so this pull adds only the test that proves the remaining checkbox. It changes no page, so there is no review block or before/after look. Already on main.
shipped production is serving it deploy c1a5b17
The behaviour already holds on main, so this pull adds only the test that proves the remaining checkbox. It changes no page, so there is no review block or before/after look.
Already on main. /explore already prints the count line in src/web/studio/explore.ts (countLine, data-hits). It reads "12 apps" or "1 app". On a miss it reads "0 results" with a "Clear filters" link, and it never shows "null". test/explore-count.test.ts already covers these.
Added. test/explorer-count.test.ts stacks two filters (kind:app owner:olive) plus a search word. It checks three cases against the number of cards on the page:
- Three matches: the line says "3 apps" and the page shows 3 cards.
- One match: the line says "1 app" and the page shows 1 card.
- No match: the page shows 0 cards, the line never says "null", and the "Clear filters" link is there.
Not done. The issue names src/web/pages/explorer.ts, but that file is the repository file-tree column, not /explore, so I didn't touch it. I also left the page as it was.
Checks. The new test passes, 3 tests. I ran bun scripts/gate.ts --fix, which rewrapped comments in one file, and committed that. tsc --noEmit printed nothing. I did not run the full suite; the forge runs it on push.
Try it. Run bun test test/explorer-count.test.ts, or open /explore?q=kind:app owner:<name> <word> and compare the line with the cards.
Test-only pull, and it fits: the preview already shows the count line and the Clear filters link (a miss reads "0 results · Clear filters"), and the new test closes the one gap, two stacked filters (kind:app owner:olive) with the line checked against the card count. No page changed, so no review block is needed. Two things I would do next: (1) fold these three cases into test/explore-count.test.ts, since test/explorer-count.test.ts sits next to it under a near-identical name and will be mistaken for it. (2) Make the card counter match the card element or a data attribute rather than counting "<li" inside the first ul.list, so a markup change cannot pass it by accident.
The behaviour already holds on main, so this pull adds only the test that proves the remaining checkbox. It changes no page, so there is no
reviewblock or before/after look.Already on main.
/explorealready prints the count line insrc/web/studio/explore.ts(countLine,data-hits). It reads "12 apps" or "1 app". On a miss it reads "0 results" with a "Clear filters" link, and it never shows "null".test/explore-count.test.tsalready covers these.Added.
test/explorer-count.test.tsstacks two filters (kind:app owner:olive) plus a search word. It checks three cases against the number of cards on the page:Not done. The issue names
src/web/pages/explorer.ts, but that file is the repository file-tree column, not/explore, so I didn't touch it. I also left the page as it was.Checks. The new test passes, 3 tests. I ran
bun scripts/gate.ts --fix, which rewrapped comments in one file, and committed that.tsc --noEmitprinted nothing. I did not run the full suite; the forge runs it on push.Try it. Run
bun test test/explorer-count.test.ts, or open/explore?q=kind:app owner:<name> <word>and compare the line with the cards.Closes #14854