Public: anyone can read this; the crew can change it.
Empty words: move the boards, bets, waves and flows onto the shared table #15908
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/15900-empty-words-move-the-boards-bets-waves-a → main 7 commits fork 4 threads · 4 unresolved
5 files
changed +7
−6
src/core/empty_words.ts +2
| @@ -98,6 +98,8 @@ export const NOTE_WORDS = { | ||
| 98 | 98 | noIssuesYet: "No issues yet.", |
| 99 | 99 | noBetsYet: "No bets yet. The planner proposes them from the open work.", |
| 100 | 100 | noScopesYet: "No scopes yet.", |
| 101 | noWavesForThatApp: "No waves for that app.", | |
| 102 | noAppDeclaresAFeatureYet: "No app declares a feature yet.", | |
| 101 | 103 | noAgentIsConnected: "No agent is connected.", |
| 102 | 104 | nobodyIsOnThisTeamYet: "Nobody is on this team yet.", |
| 103 | 105 | } as const; |
src/web/pages/boards-holds.ts +1 −1
| @@ -35,7 +35,7 @@ export function boardsHoldsCard(db: Database, viewer: User | undefined, withBoar | ||
| 35 | 35 | ${btn("Release", { variant: "ghost" })} |
| 36 | 36 | </form>`; |
| 37 | 37 | const body = html`<p class="muted small"> |
| 38 | No build starts on an issue that names a held path. Nothing already | |
| 38 | A build does not start on an issue that names a held path. Nothing already | |
| 39 | 39 | running is cut. Only repositories you administer are listed. |
| 40 | 40 | </p> |
| 41 | 41 | ${total > holds.length |
src/web/pages/features.ts +2 −1
| @@ -27,6 +27,7 @@ import type { Run } from "../../core/feature_fires.ts"; | ||
| 27 | 27 | import { getAppBySlug } from "../../core/apps.ts"; |
| 28 | 28 | import { DAYS } from "../../apps/feature.ts"; |
| 29 | 29 | import type { FeedItem } from "../../feed/rank.ts"; |
| 30 | import { NOTE_WORDS } from "../../core/empty_words.ts"; | |
| 30 | 31 | import type { Ctx } from "../../http/context.ts"; |
| 31 | 32 | import { notePhase, takeSessionTime, timePhase } from "../../core/route_timing.ts"; |
| 32 | 33 | import { spanWords } from "../../system/format.ts"; |
| @@ -141,7 +142,7 @@ export async function featuresPage(ctx: Ctx): Promise<Response> { | ||
| 141 | 142 | ${listed.value.length === 0 |
| 142 | 143 | ? empty({ |
| 143 | 144 | icon: "rocket", |
| 144 | title: "No app declares a feature yet", | |
| 145 | title: NOTE_WORDS.noAppDeclaresAFeatureYet, | |
| 145 | 146 | note: 'An app declares one with a "feature" block in its forge.json: a name, a page and typed settings.', |
| 146 | 147 | action: html`<p><a href="${upstreamBlob(ctx.app.db, DOCS)}">How an app declares a feature</a></p>`, |
| 147 | 148 | }) |
src/web/pages/waves.ts +2 −1
| @@ -28,6 +28,7 @@ import { loadRepo, notFoundPage, repoBase, scopeHeader } from "../chrome.ts"; | ||
| 28 | 28 | import { escapeHtml, html, type Html } from "../html.ts"; |
| 29 | 29 | import { page } from "../layout.ts"; |
| 30 | 30 | import { EMPTY_WORDS } from "../empty_words.ts"; |
| 31 | import { NOTE_WORDS } from "../../core/empty_words.ts"; | |
| 31 | 32 | import { btn, empty, listCard, row, seg } from "../ui.ts"; |
| 32 | 33 | import { localScope } from "../scope.ts"; |
| 33 | 34 | import { milestoneHref, planFor, progress } from "./milestones.ts"; |
| @@ -107,7 +108,7 @@ export async function wavesPage(ctx: Ctx): Promise<Response> { | ||
| 107 | 108 | <h1 class="sr-only">Waves</h1> |
| 108 | 109 | ${filterLine} |
| 109 | 110 | ${rows.length === 0 && filtering |
| 110 | ? empty({ title: "No waves for that app" }) | |
| 111 | ? empty({ title: NOTE_WORDS.noWavesForThatApp }) | |
| 111 | 112 | : entries.length === 0 |
| 112 | 113 | ? empty({ |
| 113 | 114 | title: EMPTY_WORDS.waves.sentence, |
test/empty-words-all.test.ts −3
| @@ -28,7 +28,6 @@ const OWN_WORDS: Readonly<Record<string, number>> = { | ||
| 28 | 28 | "src/web/pages/admin-limits.ts": 1, |
| 29 | 29 | "src/web/pages/audit.ts": 1, |
| 30 | 30 | "src/web/pages/billing.ts": 1, |
| 31 | "src/web/pages/boards-holds.ts": 1, | |
| 32 | 31 | "src/web/pages/boards.ts": 1, |
| 33 | 32 | "src/web/pages/browse.ts": 1, |
| 34 | 33 | "src/web/pages/build_shots.ts": 1, |
| @@ -37,7 +36,6 @@ const OWN_WORDS: Readonly<Record<string, number>> = { | ||
| 37 | 36 | "src/web/pages/contribute.ts": 1, |
| 38 | 37 | "src/web/pages/display.ts": 1, |
| 39 | 38 | "src/web/pages/family.ts": 1, |
| 40 | "src/web/pages/features.ts": 1, | |
| 41 | 39 | "src/web/pages/inventory.ts": 1, |
| 42 | 40 | "src/web/pages/issues.ts": 1, |
| 43 | 41 | "src/web/pages/looks.ts": 1, |
| @@ -54,7 +52,6 @@ const OWN_WORDS: Readonly<Record<string, number>> = { | ||
| 54 | 52 | "src/web/pages/teams.ts": 1, |
| 55 | 53 | "src/web/pages/trusted.ts": 1, |
| 56 | 54 | "src/web/pages/visitors.ts": 1, |
| 57 | "src/web/pages/waves.ts": 1, | |
| 58 | 55 | "src/web/render/ora.ts": 1, |
| 59 | 56 | "src/web/render/sarif.ts": 1, |
| 60 | 57 | "src/web/render/sbom.ts": 1, |
new above
offline
Non-blocking: rewording a plain explanatory paragraph only to slip past the OWN_WORDS pattern is fine here since the new sentence is also clearer, but the ratchet regex should not drive copy; if it matches again, tighten the pattern to empty states.