Public: anyone can read this; the crew can change it.
The home feed stops rendering a bar its stylesheet always hides, and .feed-head leaves the stylesheet #5080
scout/forge:scout/5064-the-home-feed-stops-rendering-a-bar-its → main 3 commits fork
4 files
changed +6
−6
docs/DESIGN.md −1
| @@ -599,7 +599,6 @@ the same line (#4888). | ||
| 599 | 599 | - `.map-wrap` |
| 600 | 600 | - **`studio/feed_style.ts`** — the home feed's cards and its composer (the apps rail is §5's card, row and btn; an admin's tick boxes and Archive are always shown, deliberately, with no Select toggle): |
| 601 | 601 | - `.feed` |
| 602 | - `.feed-head` | |
| 603 | 602 | --- |
| 604 | 603 | |
| 605 | 604 | ## 6. Keyboard |
src/web/studio/feed_style.ts −1
| @@ -12,7 +12,6 @@ export const feedCss = /* css */ ` | ||
| 12 | 12 | @media (max-width: 899px) { |
| 13 | 13 | /* "What you asked for" is a tab on a phone: the first post comes next. |
| 14 | 14 | !important, as [hidden] is: .bar sits in a later cascade layer. */ |
| 15 | .feed-head { display: none !important; } | |
| 16 | 15 | #live-apps { display: none; } |
| 17 | 16 | } |
| 18 | 17 | @media (max-width: 600px) { |
src/web/studio/home.ts −4
| @@ -264,10 +264,6 @@ export async function studioHome( | ||
| 264 | 264 | <div class="split" data-rail="wide"> |
| 265 | 265 | <div class="stack"> |
| 266 | 266 | ${composer(ctx, user)} |
| 267 | <div class="bar feed-head"> | |
| 268 | <span class="spacer"></span> | |
| 269 | <a class="small muted" href="/asked">What you asked for</a> | |
| 270 | </div> | |
| 271 | 267 | ${flowCards(ctx, user)} |
| 272 | 268 | ${feedNote()} |
| 273 | 269 | ${timePhase(ctx.request, "feed", () => feedRegion(user, ctx), () => feedCandidateCache(ctx.app.db))} |
test/home-feed.test.ts +6
| @@ -123,6 +123,12 @@ describe("home is the feed", () => { | ||
| 123 | 123 | await rm(dataDir, { recursive: true, force: true }); |
| 124 | 124 | }); |
| 125 | 125 | |
| 126 | test("home renders no hidden feed-head bar; /asked stays in the home tabs", async () => { | |
| 127 | const text = await (await get("/", aliceCookie)).text(); | |
| 128 | expect(text).not.toContain("feed-head"); | |
| 129 | expect(text).toContain('href="/asked"'); | |
| 130 | }); | |
| 131 | ||
| 126 | 132 | test("the composer is a §5 card, and no .composer class remains", async () => { |
| 127 | 133 | const text = await (await get("/", aliceCookie)).text(); |
| 128 | 134 | expect(text).toMatch(/<form id="composer" class="card" method="post" action="\/tell">\s*<div class="card-body/); |
new above
offline