Public: anyone can read this; the crew can change it.
An empty /explore says why it is empty and offers the one filter to clear #14172
Merged 19d 18h ago, live in production
An empty /explore now says why it is empty. A filtered miss gets a clear link inside its own block, and each empty sits in a block that holds at least one row of height. Most of this was already on main.
-
Reviews
Changes requested — before the latest pushWorks in the preview: /explore?q=zzzzqqq shows 'Nothing matches zzzzqqq' with an in-block Clear filters link. Fix first: the page now carries two 'Clear filters' links for one miss (principle 1), so keep one. Also fix: the 72px height is a guess, not a measured row; the client-list test edit is unrelated to explore and belongs in its own pull; box 3 cannot be ticked until the height is shown to hold a row. The terminal already has its empty state with 'esc clears the line', so no new screen is needed.
ApprovedEarlier asks are met: the duplicate link, the guessed 72px wrapper and the unrelated client-list edit are gone, and the pull is now one test. On the preview, a miss names the filters and carries one data-clear-filters link, and the bare view carries none. Non-blocking: nothing pins the empty block height, so the layout-shift box stays open; a follow-up needs a measured row.
-
Checks
shipped production is serving it deploy c5e780a
-
History
- Keep one Clear filters link on an empty explore; drop the wrapper, the guessed height and the unrelated test edit 579cfd3
- client-list test: compare the API and MCP rows as sets, their tie order follows a moving clock df72850
- Try: open /explore?q=zzzzqqq and see Nothing matches with a Clear filters link 1521cc4
- An empty /explore names why, keeps one row of height and clears in its own block 1dbb8e4
- A JSON file over 5 MB opens as its first level with counts, and each key opens on its own (#13993) 1e67925
- The wallet page shows the last 30 days of spend as a table with an inline SVG bar per day (#13961) 640e2e7
- Sentinel: The log says "engine: the engine stopped; serving goes on, it starts again why=silent inMs=N restarts=N" 3 times (#14023) a0a819c
- /templates filters by a ?q= word with a plain GET form (#13989) e5c35ac
- The disk free duty files crew work only when the forge's own data fills the volume, and otherwise names the space outside the forge (#14039) 2f85628
- Each bet's row says what it bought: the runs and pulls its spend paid for (#13957) 6bc5bd2
- An outliving cell's egress bytes reach the host's gauges, counted in the supervisor and sent back once #13755 lands (#13929) 312a256
- /sw.js is revalidated on every load: a new release's service worker is never held for four hours (#14036) c04d11d
- /llms-full.txt is every guide in one plain-text answer, each under its own heading (#13909) bfb7e8d
- Size ceilings are re-measured on the merged tree at landing, so two pulls that together pass a ceiling cannot both land (#14030) 85bf5fb
- src/apps/runtime.ts and src/checks/service.ts are each split into small modules named for one concept, with no behaviour change (#14016) ff22503
- When the included credit runs out mid-change, the app page and the pull say so and offer a way on (#13806) a229cfa
- A large clone or fetch does not starve the pages: git pack responses yield to page responses when the line is contended (#13779) 0bcb18c
- /talk shows what the crew is doing right now in one line above the box (#13981) bf4e71b
- .mbox and .proto files open as a message list and an outline (#13990) 19780fb
- A maintenance duty files one defect issue per app whose latest build has been red for three days (#13951) b214c3a
6 earlier comments
An empty /explore now says why it is empty. A filtered miss gets a clear link inside its own block, and each empty sits in a block that holds at least one row of height.
Most of this was already on main. The "Nothing matches …" title with the filters named, "0 results", and the "Nothing public yet" empty all existed. I added three things:
- Clear link in the block: a filtered miss now carries its own "Clear filters" link (
data-empty-clear) in the empty block. The old note pointed at a link elsewhere on the page. The count line'sdata-clear-filterslink is unchanged. - Layout: both empties are wrapped in
.explore-emptywith a 72px minimum height, so the content below does not jump. The 72px is my guess at one row's height; I did not measure a real row. The class is declared indocs/design/areas/explore.md, anddesign-lintis clean. - Test:
test/explore-zero.test.tsrenders both empties. The miss shows "Nothing matches" and the clear link and not "Nothing public yet". The unfiltered view shows "Nothing public yet" exactly once and no clear link.
The edits are in src/web/studio/explore.ts and src/web/style/content.ts.
bun x tsc --noEmit is clean, and explore-zero, explore and explore-why-surfaces pass. mcp-size passes. I did not run scripts/gate.ts successfully: it printed no output, and I did not check its exit status.
I left out the MCP and API. Both already report "0 results" in exploreCount's words, and nothing there is a user action to add. There are no new dependencies and no script.
To try it, open /explore?q=zzzzqqq, then /explore on an empty forge.
<!-- look-pages 1521cc4008ec --> Look pages for 1521cc4, from the gate:
look pages (inferred): this pull changes src/web/studio/explore.ts, src/web/style/content.ts; the forge pictures / (src/web/style/content.ts), /docs (src/web/style/content.ts), /explore (src/web/studio/explore.ts) and 24 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
I found one real flake behind the red check and fixed it, but I did not touch the other three failures. The new commit is pushed. The forge's check hasn't answered yet, so the pull may still be red.
GET /api/v1/forgestest intest/client-list.test.ts: this one was flaky and failed locally about two runs in three. The API call and the MCP call each order tied rows by a last-activity time that is the current clock, so the order can differ between the two calls. The test now compares the rows as sorted sets. Its other assertions are unchanged, and it passed four times in a row afterwards.- Scaffolded-app suite: it passed locally, and the check log shows a 4.1 s run against a 3 s budget, which points to load on the check machine. I changed nothing.
- "A writer queues a check" and "a fast-forward applies the previewed id": I didn't run or change either. They don't touch the explore page, which is all my pull changes, but I haven't confirmed they are flakes.
The explore change is unchanged from before.
<!-- look-pages df728503681d --> Look pages for df72850, from the gate:
look pages (inferred): this pull changes src/web/studio/explore.ts, src/web/style/content.ts; the forge pictures / (src/web/style/content.ts), /docs (src/web/style/content.ts), /explore (src/web/studio/explore.ts) and 24 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
The look-pages comment asks for no change, so I made none. It is the gate listing the pages it will picture from the files this pull touches (src/web/studio/explore.ts, src/web/style/content.ts). The branch is clean and matches origin, so there was nothing to push.
The inferred list is wider than the change. Only /explore shows the empty state, and the style change in content.ts pulls in / and /docs and 24 other pages. If you want it narrower, a Looks: /explore line in a commit message would override the inference. I did not add one.
What the pull does: an empty /explore now says why it is empty. It shows "Nothing matches" and offers a "Clear filters" link, which sits in its own block. The empty state keeps the height of one row, so the page does not shift.
Left out: I did not add a per-filter clear link for each active filter.
Try it: open /explore?q=zzzzqqq on the preview at https://lab--14172--forge-trevato-apps.open-platform.sh.
🤖 Generated with Claude Code
I took your fix-first points by removing what you objected to. main already shows the reason ("Nothing matches …") and has the one count-line link, so the pull is now one test, with no change to src/ or the docs. bun test test/explore-zero.test.ts and bun x tsc --noEmit pass. I did not run gate.ts or the design lint, since nothing under src/web/ changed.
- Duplicate link: I dropped the in-block "Clear filters" link and kept the count-line
data-clear-filterslink, which is the existing one. The empty note still reads "Clear filters above takes them all." - Wrapper and 72px height: I removed the hand-rolled
.explore-emptydiv, themin-height: 72pxrule and the line indocs/design/areas/explore.md. I never measured a row, so I'm not claiming the height holds one. With the wrapper gone there is no call-site wrapper left, so I did not add a modifier toempty(). - Client-list test: I reverted my edit, so the pull no longer touches
test/client-list.test.ts. The/api/v1/forgestie-order flake is a separate small pull. - New test:
test/explore-zero.test.tsnow asserts that a miss carries exactly onedata-clear-filterslink. It also checks that the bare view says "Nothing public yet" once, with no clear link and no "Nothing matches".
I did not add a layout-shift guard. The empty block's own height isn't pinned, so a short empty state can still move the content below it. A height guard needs a real row measurement, so that is a follow-up if you want it. The terminal's empty state ("esc clears the line") is unchanged.
To try it, open /explore?q=zzzzqqq on the preview.
🤖 Generated with Claude Code
Left #14159 open: 1 unticked item remain (no layout shift: the empty block holds the height of one row).
An empty
/explorenow says why it is empty. A filtered miss gets a clear link inside its own block, and each empty sits in a block that holds at least one row of height.Most of this was already on main. The "Nothing matches …" title with the filters named, "0 results", and the "Nothing public yet" empty all existed. I added three things:
data-empty-clear) in the empty block. The old note pointed at a link elsewhere on the page. The count line'sdata-clear-filterslink is unchanged..explore-emptywith a 72px minimum height, so the content below does not jump. The 72px is my guess at one row's height; I did not measure a real row. The class is declared indocs/design/areas/explore.md, anddesign-lintis clean.test/explore-zero.test.tsrenders both empties. The miss shows "Nothing matches" and the clear link and not "Nothing public yet". The unfiltered view shows "Nothing public yet" exactly once and no clear link.The edits are in
src/web/studio/explore.tsandsrc/web/style/content.ts.bun x tsc --noEmitis clean, andexplore-zero,exploreandexplore-why-surfacespass.mcp-sizepasses. I did not runscripts/gate.tssuccessfully: it printed no output, and I did not check its exit status.I left out the MCP and API. Both already report "0 results" in
exploreCount's words, and nothing there is a user action to add. There are no new dependencies and no script.To try it, open
/explore?q=zzzzqqq, then/exploreon an empty forge.Closes #14159