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

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/15355-small-a-forge-with-nothing-live-yet-says → main 0 commits fork 3 threads · 3 unresolved

  • Merged. scout/15355-small-a-forge-with-nothing-live-yet-says was merged into main as 02a7ec0.

Review

Sign in to review this change.
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,
2424 ## The chapter bar on the home (#14070)
2525
2626 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:
9292
9393 ## Nothing released yet
9494
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`.
9696
9797 ## A closed chapter's wave
9898
@@ -101,3 +101,7 @@ When a chapter closes (for example one named `v1.1.0`), its wave is told on `/ch
101101 ## The newest wave's milestone (#14502)
102102
103103 `/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 @@
1616 "graph.instagram.com"
1717 ],
1818 "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"],
2020 "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"],
2121 "run": "bun run src/main.ts",
2222 "install": "",
src/tui/screens/changelog.ts +2 −2
@@ -277,8 +277,8 @@ export function changelogScreen(f: Session, ctx: Ctx): Screen {
277277 const c = ctx.theme.c;
278278 if (entries.length === 0 && groups.length === 0) {
279279 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.",
282282 });
outdated

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.

283283 return;
284284 }
src/web/pages/changelog.ts +1 −1
@@ -338,7 +338,7 @@ function renderRegion(
338338 : html`commit ${commit}`;
339339 const top =
340340 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.'

342342 : html`<p class="small muted" id="shipped-top">
343343 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>
344344 </p>`;
test/changelog.test.ts +16 −7
@@ -219,7 +219,7 @@ describe("changelog page", () => {
219219 forgetLive(app.db);
220220 app.db.run("UPDATE repo SET visibility = 'private'");
221221 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");
223223 app.db.run("UPDATE repo SET visibility = 'public'");
224224 const body = await (await fetch(`${servers.url}/changelog`)).text();
225225 expect(body.indexOf("On its way")).toBeLessThan(body.indexOf("Third thing"));
@@ -262,7 +262,7 @@ describe("changelog page", () => {
262262 test("empty only when nothing has shipped", async () => {
263263 app.db.run("UPDATE pull SET merged_at = NULL");
264264 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");
266266 });
267267 });
268268
@@ -401,7 +401,7 @@ describe("the top line names what is running", () => {
401401 const out = String(shippedRegion({ live: [], onItsWay: [], version: "dev", commit: null, own: "a/forge" } as any, "all"));
402402 expect(out).toContain('<span id="shipped-today"></span>');
403403 expect(out).not.toContain("Nothing shipped today");
404 expect(out).toContain("changes appear on release");
404 expect(out).toContain("Nothing has gone live yet");
405405 });
406406
407407 test("shipped before today: the sentence still says nothing shipped today", async () => {
@@ -423,13 +423,22 @@ describe("the top line names what is running", () => {
423423 expect(line).not.toContain("dev");
424424 });
425425
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
426435 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.");
428437 });
429438
430439 test("a release with no commit says its version and no development build", async () => {
431440 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.");
433442 expect(line).not.toContain("development build");
434443 });
435444
@@ -514,7 +523,7 @@ describe("changelog rows, not boxes (#9688)", () => {
514523 const doc = await parse(String(shippedRegion(landings([]), "all")));
515524 const lines = [...doc.querySelectorAll("p")].filter((p) => p.id !== "shipped-top");
516525 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.");
518527 expect(doc.querySelectorAll(".card, strong").length).toBe(0);
519528 });
520529
@@ -536,7 +545,7 @@ describe("nothing released says what runs, once", () => {
536545 const sha = "310f789" + "0".repeat(33);
537546 const out = String(shippedRegion({ live: [], onItsWay: [], version: "dev", commit: sha, own: "a/forge" } as any, "all"));
538547 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>.");
540549 expect(out).not.toContain("Nothing has shipped yet");
541550 expect(out).not.toContain("Live:");
542551 expect(out).not.toMatch(/\s\./);
test/forge-looks.test.ts +1 −1
@@ -85,7 +85,7 @@ const NOT_A_PAGE: Record<string, string> = {
8585 "/apple-touch-icon-precomposed.png": "an icon, not a page",
8686 "/events": "a live event stream that never ends",
8787 "/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",
8989 "/displays": "a list of displays behind sign-in; its slot is not pictured; covered by test/displays-list.test.ts",
9090 "/search": "a search box; its slot went to the preview seed's /next as its owner (#8866)",
9191 "/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", () => {
1414
1515 test("a changelog with nothing shipped draws no data-nav row", () => {
1616 const text = String(shippedRegion(read([], []), "a/b"));
17 expect(text).toContain("changes appear on release");
17 expect(text).toContain("Nothing has gone live yet");
1818 expect(text).not.toContain("data-nav");
1919 });
test/tui-changelog-waves.test.ts +1 −1
@@ -96,7 +96,7 @@ test("a private forge repository gives the terminal no waves", async () => {
9696 const text = tui.screen.toText();
9797 tui.stop?.();
9898 expect(text).not.toContain("Waves in the terminal");
99 expect(text).toContain("No releases yet");
99 expect(text).toContain("Nothing has gone live yet");
100100 } finally {
101101 app.db.run("UPDATE repo SET visibility = 'public' WHERE name = 'forge'");
102102 }
test/tui-changelog.test.ts +3 −2
@@ -119,8 +119,9 @@ test("a private forge repository leaves the terminal's screen empty", async () =
119119 await settleApp(tui);
120120 const text = tui.screen.toText();
121121 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");
124125 expect(text).not.toContain("0.2.0");
125126 expect(text).not.toContain("#2");
126127 } finally {

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs