Public: anyone can read this; the crew can change it.
small: a forge with nothing live yet says so on /changelog and its feed #15361
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/15355-small-a-forge-with-nothing-live-yet-says → main 0 commits fork 3 threads · 3 unresolved
10 files
changed +36
−17
docs/design/areas/changelog.md +5
| @@ -24,3 +24,8 @@ A closed chapter is one `row()` in a `list setting-list` (its name as the title, | ||
| 24 | 24 | ## The chapter bar on the home (#14070) |
| 25 | 25 | |
| 26 | 26 | One `row()` in a `list setting-list` under the door's hero: "v2: 12 of 19" as the title, linking the open chapter, and the next unfinished item as the meta, in full so it wraps. Absent with no open chapter or an unreadable repository. No new class: the row already has the tap target and focus ring, and a hand-rolled line did not. `test/home-chapter-bar.test.ts` holds it. |
| 27 | ||
| 28 | ## Nothing live yet (#15355) | |
| 29 | ||
| 30 | With no live release the top line says "Nothing has gone live yet." before what runs, and links the forge's open pulls | |
| 31 | (`/<owner>/<repo>/pulls`) as where work in progress shows. Still the one muted `small` line; no new class. |
docs/features/changelog.md +5 −1
| @@ -92,7 +92,7 @@ A release still `pending` when the forge restarts is settled to `none` on boot: | ||
| 92 | 92 | |
| 93 | 93 | ## Nothing released yet |
| 94 | 94 | |
| 95 | When no pull has landed, `/changelog` shows one sentence in place of the "Live:" line and "Nothing has shipped yet.": "Running <version · commit>; changes appear on release." A development build says "a development build" when no commit is known. The terminal's Changelog screen, with no releases, reads "No releases yet" and "Changes appear on release." The page is held to the first-view word budget in `test/attention.test.ts`, which is why the sentence is short. Tested in `test/changelog.test.ts`. | |
| 95 | When no pull has landed, `/changelog` shows one sentence in place of the "Live:" line and "Nothing has shipped yet.": "Nothing has gone live yet. Running <version · commit>." and a link to the forge's open pulls, where work in progress shows. A development build says "a development build" when no commit is known. The terminal's Changelog screen, with no releases, reads "Nothing has gone live yet" and "Work in progress shows in the open pulls." The page is held to the first-view word budget in `test/attention.test.ts`, which is why the sentence is short. Tested in `test/changelog.test.ts`. | |
| 96 | 96 | |
| 97 | 97 | ## A closed chapter's wave |
| 98 | 98 | |
| @@ -101,3 +101,7 @@ When a chapter closes (for example one named `v1.1.0`), its wave is told on `/ch | ||
| 101 | 101 | ## The newest wave's milestone (#14502) |
| 102 | 102 | |
| 103 | 103 | `/changelog` says, beside the newest wave's sentence, how far the widest milestone that wave moved has come: "The milestone: <name>: N of M done", counted by the plan the milestone page reads (`src/web/pages/wave_standing.ts`, `withStanding`). A wave that moved no milestone says nothing. The terminal's Changelog screen (`src/tui/screens/changelog.ts`) shows the same line under the wave's sentence, from the same function. The page's tag holds the last change to any issue of a repository with a chapter, so closing an issue refreshes the count rather than serving a 304. Tested in `test/changelog-wave-standing.test.ts` and, for the terminal line, `test/tui-changelog.test.ts`. |
| 104 | ||
| 105 | ## Nothing live yet (#15355) | |
| 106 | ||
| 107 | A forge that has cut no release says so once. `/changelog` opens with "Nothing has gone live yet. Running <commit>. Work in progress shows in the open pulls." The terminal's Changelog screen shows the title "Nothing has gone live yet" over "Work in progress shows in the open pulls." `/changelog.atom` has no entry then, and its `updated` is the forge's first boot (the first account), never a fixed date. Tested in `test/changelog.test.ts`, `test/tui-changelog.test.ts` and `test/changelog-atom.test.ts`. |
forge.json +1 −1
| @@ -16,7 +16,7 @@ | ||
| 16 | 16 | "graph.instagram.com" |
| 17 | 17 | ], |
| 18 | 18 | "app": { |
| 19 | "looks": ["/", "/docs", "/explore", "/board", "/notes", "/review", "/releases", "/apps", "/security", "/system", "/admin/limits", "/maintenance", "/talk", "/flow", "/resilience", "/boards?help", "/settings/crew", "/settings/crew?help", "/settings/security/controls", "/settings/grants", "/preview-admin/sample", "/preview-admin/sample/drop", "/preview-admin/sample/data-move", "/preview-admin/sample/cut-over", "/preview-admin/sample/pulls/3", "/preview-admin/sample/next?pick", "/preview-admin/sample/bets", "/preview-admin/sample/waves", "/preview-admin/sample/space", "/looks/missing", "/looks/failed", "/nope/nothing"], | |
| 19 | "looks": ["/", "/docs", "/explore", "/board", "/notes", "/review", "/changelog", "/apps", "/security", "/system", "/admin/limits", "/maintenance", "/talk", "/flow", "/resilience", "/boards?help", "/settings/crew", "/settings/crew?help", "/settings/security/controls", "/settings/grants", "/preview-admin/sample", "/preview-admin/sample/drop", "/preview-admin/sample/data-move", "/preview-admin/sample/cut-over", "/preview-admin/sample/pulls/3", "/preview-admin/sample/next?pick", "/preview-admin/sample/bets", "/preview-admin/sample/waves", "/preview-admin/sample/space", "/looks/missing", "/looks/failed", "/nope/nothing"], | |
| 20 | 20 | "looksAsOwner": ["/", "/board", "/flow", "/boards?help", "/settings/crew", "/settings/crew?help", "/settings/security/controls", "/settings/grants", "/talk", "/system", "/admin/limits", "/maintenance", "/resilience", "/preview-admin/sample", "/preview-admin/sample/drop", "/preview-admin/sample/data-move", "/preview-admin/sample/cut-over", "/preview-admin/sample/pulls/3", "/preview-admin/sample/next?pick", "/preview-admin/sample/bets", "/preview-admin/sample/waves", "/preview-admin/sample/space"], |
| 21 | 21 | "run": "bun run src/main.ts", |
| 22 | 22 | "install": "", |
src/tui/screens/changelog.ts +2 −2
| @@ -277,8 +277,8 @@ export function changelogScreen(f: Session, ctx: Ctx): Screen { | ||
| 277 | 277 | const c = ctx.theme.c; |
| 278 | 278 | if (entries.length === 0 && groups.length === 0) { |
| 279 | 279 | emptyState(s, area, c, { |
| 280 | title: loaded ? "No releases yet" : "Reading…", | |
| 281 | body: "Changes appear on release.", | |
| 280 | title: loaded ? "Nothing has gone live yet" : "Reading…", | |
| 281 | body: loaded ? "Work in progress shows in the open pulls." : "Changes appear on release.", | |
| 282 | 282 | }); |
| 283 | 283 | return; |
| 284 | 284 | } |
src/web/pages/changelog.ts +1 −1
| @@ -338,7 +338,7 @@ function renderRegion( | ||
| 338 | 338 | : html`commit ${commit}`; |
| 339 | 339 | const top = |
| 340 | 340 | live.length === 0 |
| 341 | ? html`<p class="small muted" id="shipped-top">Running ${running}; changes appear on release.<span id="shipped-today"></span></p>` | |
| 341 | ? html`<p class="small muted" id="shipped-top">Nothing has gone live yet. Running ${running}.${read.own === undefined ? null : html` Work in progress shows in <a href="/${read.own}/pulls">the open pulls</a>.`}<span id="shipped-today"></span></p>` | |
outdated
Principle 1: 'Nothing has gone live yet.' and 'changes appear on release' say the same thing. Use one sentence: 'Nothing has gone live yet. Running <commit>. Work in progress shows in the open pulls.' |
||
| 342 | 342 | : html`<p class="small muted" id="shipped-top"> |
| 343 | 343 | Live: ${version}.${toLive !== undefined && toLive.version === read.version ? html` Landed to live in ${secondsWords(toLive.seconds)}.` : null} <span id="shipped-today">${shippedToday(today, zone === "UTC")}</span> |
| 344 | 344 | </p>`; |
test/changelog.test.ts +16 −7
| @@ -219,7 +219,7 @@ describe("changelog page", () => { | ||
| 219 | 219 | forgetLive(app.db); |
| 220 | 220 | app.db.run("UPDATE repo SET visibility = 'private'"); |
| 221 | 221 | try { |
| 222 | expect(await (await fetch(`${servers.url}/changelog`)).text()).toContain("changes appear on release"); | |
| 222 | expect(await (await fetch(`${servers.url}/changelog`)).text()).toContain("Nothing has gone live yet"); | |
| 223 | 223 | app.db.run("UPDATE repo SET visibility = 'public'"); |
| 224 | 224 | const body = await (await fetch(`${servers.url}/changelog`)).text(); |
| 225 | 225 | expect(body.indexOf("On its way")).toBeLessThan(body.indexOf("Third thing")); |
| @@ -262,7 +262,7 @@ describe("changelog page", () => { | ||
| 262 | 262 | test("empty only when nothing has shipped", async () => { |
| 263 | 263 | app.db.run("UPDATE pull SET merged_at = NULL"); |
| 264 | 264 | const body = await (await fetch(`${servers.url}/changelog`)).text(); |
| 265 | expect(body).toContain("changes appear on release"); | |
| 265 | expect(body).toContain("Nothing has gone live yet"); | |
| 266 | 266 | }); |
| 267 | 267 | }); |
| 268 | 268 | |
| @@ -401,7 +401,7 @@ describe("the top line names what is running", () => { | ||
| 401 | 401 | const out = String(shippedRegion({ live: [], onItsWay: [], version: "dev", commit: null, own: "a/forge" } as any, "all")); |
| 402 | 402 | expect(out).toContain('<span id="shipped-today"></span>'); |
| 403 | 403 | expect(out).not.toContain("Nothing shipped today"); |
| 404 | expect(out).toContain("changes appear on release"); | |
| 404 | expect(out).toContain("Nothing has gone live yet"); | |
| 405 | 405 | }); |
| 406 | 406 | |
| 407 | 407 | test("shipped before today: the sentence still says nothing shipped today", async () => { |
| @@ -423,13 +423,22 @@ describe("the top line names what is running", () => { | ||
| 423 | 423 | expect(line).not.toContain("dev"); |
| 424 | 424 | }); |
| 425 | 425 | |
| 426 | test("nothing live says so once and links the open pulls", async () => { | |
| 427 | const { shippedRegion } = await import("../src/web/pages/changelog.ts"); | |
| 428 | const out = String(shippedRegion({ live: [], onItsWay: [], version: "dev", commit: null, own: "a/forge" } as any, "all")); | |
| 429 | expect(out).toContain("Nothing has gone live yet."); | |
| 430 | expect(out).toContain('<a href="/a/forge/pulls">the open pulls</a>'); | |
| 431 | const live = { at: "2026-01-02T03:04:05Z", repo: "a/forge", number: 1, title: "t" }; | |
| 432 | expect(String(shippedRegion({ live: [live], onItsWay: [], version: "1", commit: null, own: "a/forge" } as any, "all"))).not.toContain("Nothing has gone live yet."); | |
| 433 | }); | |
| 434 | ||
| 426 | 435 | test("a development build with no commit says so", async () => { |
| 427 | expect(await top("dev", null)).toContain("Running a development build; changes appear on release."); | |
| 436 | expect(await top("dev", null)).toContain("Running a development build."); | |
| 428 | 437 | }); |
| 429 | 438 | |
| 430 | 439 | test("a release with no commit says its version and no development build", async () => { |
| 431 | 440 | const line = await top("1.2", null); |
| 432 | expect(line).toContain("Running 1.2; changes appear on release."); | |
| 441 | expect(line).toContain("Running 1.2."); | |
| 433 | 442 | expect(line).not.toContain("development build"); |
| 434 | 443 | }); |
| 435 | 444 | |
| @@ -514,7 +523,7 @@ describe("changelog rows, not boxes (#9688)", () => { | ||
| 514 | 523 | const doc = await parse(String(shippedRegion(landings([]), "all"))); |
| 515 | 524 | const lines = [...doc.querySelectorAll("p")].filter((p) => p.id !== "shipped-top"); |
| 516 | 525 | expect(lines).toEqual([]); |
| 517 | expect(doc.getElementById("shipped-top")!.textContent).toContain("; changes appear on release."); | |
| 526 | expect(doc.getElementById("shipped-top")!.textContent).toContain("Nothing has gone live yet."); | |
| 518 | 527 | expect(doc.querySelectorAll(".card, strong").length).toBe(0); |
| 519 | 528 | }); |
| 520 | 529 | |
| @@ -536,7 +545,7 @@ describe("nothing released says what runs, once", () => { | ||
| 536 | 545 | const sha = "310f789" + "0".repeat(33); |
| 537 | 546 | const out = String(shippedRegion({ live: [], onItsWay: [], version: "dev", commit: sha, own: "a/forge" } as any, "all")); |
| 538 | 547 | expect(out).toContain(`commit <a class="sha" href="/a/forge/commit/${sha}"`); |
| 539 | expect(out).toContain("</a>; changes appear on release."); | |
| 548 | expect(out).toContain("</a>."); | |
| 540 | 549 | expect(out).not.toContain("Nothing has shipped yet"); |
| 541 | 550 | expect(out).not.toContain("Live:"); |
| 542 | 551 | expect(out).not.toMatch(/\s\./); |
test/forge-looks.test.ts +1 −1
| @@ -85,7 +85,7 @@ const NOT_A_PAGE: Record<string, string> = { | ||
| 85 | 85 | "/apple-touch-icon-precomposed.png": "an icon, not a page", |
| 86 | 86 | "/events": "a live event stream that never ends", |
| 87 | 87 | "/boards": "the list of boards, and where the flow panel and its help sit: pictured as /boards?help, taken as the owner (#11170), and /board is pictured; the slot went to the preview seed's repository as its owner (#8865); covered by test/boards-page.test.ts", |
| 88 | "/changelog": "the merged changes in words; /releases is pictured, and the slot went to the preview seed's pull as its owner (#8865); covered by test/changelog.test.ts", | |
| 88 | "/releases": "the releases and whether live is proved; /changelog is pictured instead (#15355), whose empty state the picture shows; covered by test/releases-page.test.ts", | |
| 89 | 89 | "/displays": "a list of displays behind sign-in; its slot is not pictured; covered by test/displays-list.test.ts", |
| 90 | 90 | "/search": "a search box; its slot went to the preview seed's /next as its owner (#8866)", |
| 91 | 91 | "/contribute": "a static page about how to help; its slot went to the preview seed's /bets as its owner (#8866)", |
test/keys-changelog.test.ts +1 −1
| @@ -14,6 +14,6 @@ test("every landing row, live or on its way, is one data-nav row", () => { | ||
| 14 | 14 | |
| 15 | 15 | test("a changelog with nothing shipped draws no data-nav row", () => { |
| 16 | 16 | const text = String(shippedRegion(read([], []), "a/b")); |
| 17 | expect(text).toContain("changes appear on release"); | |
| 17 | expect(text).toContain("Nothing has gone live yet"); | |
| 18 | 18 | expect(text).not.toContain("data-nav"); |
| 19 | 19 | }); |
test/tui-changelog-waves.test.ts +1 −1
| @@ -96,7 +96,7 @@ test("a private forge repository gives the terminal no waves", async () => { | ||
| 96 | 96 | const text = tui.screen.toText(); |
| 97 | 97 | tui.stop?.(); |
| 98 | 98 | expect(text).not.toContain("Waves in the terminal"); |
| 99 | expect(text).toContain("No releases yet"); | |
| 99 | expect(text).toContain("Nothing has gone live yet"); | |
| 100 | 100 | } finally { |
| 101 | 101 | app.db.run("UPDATE repo SET visibility = 'public' WHERE name = 'forge'"); |
| 102 | 102 | } |
test/tui-changelog.test.ts +3 −2
| @@ -119,8 +119,9 @@ test("a private forge repository leaves the terminal's screen empty", async () = | ||
| 119 | 119 | await settleApp(tui); |
| 120 | 120 | const text = tui.screen.toText(); |
| 121 | 121 | tui.stop?.(); |
| 122 | expect(text).toContain("No releases yet"); | |
| 123 | expect(text).toContain("Changes appear on release."); | |
| 122 | expect(text).toContain("Nothing has gone live yet"); | |
| 123 | expect(text).toContain("Work in progress shows in the open pulls."); | |
| 124 | expect(text).not.toContain("No releases yet"); | |
| 124 | 125 | expect(text).not.toContain("0.2.0"); |
| 125 | 126 | expect(text).not.toContain("#2"); |
| 126 | 127 | } finally { |
new above
offline
Principle 1: title 'No releases yet', body 'Changes appear on release.' and this detail all say it three times. Make the title 'Nothing has gone live yet' and the body 'Work in progress shows in the open pulls.', with no detail.