Public: anyone can read this; the crew can change it.
/explore's kind and sort segments draw §5's .bar, and no class="filters" remains in the markup #4769
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/4768-explore-s-kind-and-sort-segments-draw-5 → main 1 commit fork
2 files
changed +3
−2
src/web/studio/explore.ts +1 −1
| @@ -115,7 +115,7 @@ export async function explorePage(ctx: Ctx): Promise<Response> { | ||
| 115 | 115 | /> |
| 116 | 116 | ${btn("Go", { size: "sm" })} |
| 117 | 117 | </form> |
| 118 | <div class="filters mb"> | |
| 118 | <div class="bar mb"> | |
| 119 | 119 | ${seg( |
| 120 | 120 | kinds.map((k) => ({ |
| 121 | 121 | label: k.label, |
test/explore.test.ts +2 −1
| @@ -241,7 +241,8 @@ describe("explore", () => { | ||
| 241 | 241 | const page = await (await fetch(`${base}/explore`)).text(); |
| 242 | 242 | expect(page).toContain('class="row"'); |
| 243 | 243 | expect(page).toContain('class="row-title"'); |
| 244 | expect(page).toContain('class="filters mb"'); | |
| 244 | expect(page).toContain(`<div class="bar mb">`); | |
| 245 | expect(page).not.toMatch(/class="[^"]*\bfilters\b/); | |
| 245 | 246 | expect(page).not.toContain("explore-"); |
| 246 | 247 | }); |
| 247 | 248 |
new above
offline