Public: anyone can read this; the crew can change it.

Empty words: move the boards, bets, waves and flows onto the shared table #15908

Merged opened this

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

Merged

scout/forge:scout/15900-empty-words-move-the-boards-bets-waves-a → main 7 commits fork 4 threads · 4 unresolved

  • Merged. scout/15900-empty-words-move-the-boards-bets-waves-a was merged into main as 709cacf.

Review

Sign in to review this change.
5 files changed +7 −6
src/core/empty_words.ts +2
@@ -98,6 +98,8 @@ export const NOTE_WORDS = {
9898 noIssuesYet: "No issues yet.",
9999 noBetsYet: "No bets yet. The planner proposes them from the open work.",
100100 noScopesYet: "No scopes yet.",
101 noWavesForThatApp: "No waves for that app.",
102 noAppDeclaresAFeatureYet: "No app declares a feature yet.",
101103 noAgentIsConnected: "No agent is connected.",
102104 nobodyIsOnThisTeamYet: "Nobody is on this team yet.",
103105 } as const;
src/web/pages/boards-holds.ts +1 −1
@@ -35,7 +35,7 @@ export function boardsHoldsCard(db: Database, viewer: User | undefined, withBoar
3535 ${btn("Release", { variant: "ghost" })}
3636 </form>`;
3737 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

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.

3939 running is cut. Only repositories you administer are listed.
4040 </p>
4141 ${total > holds.length
src/web/pages/features.ts +2 −1
@@ -27,6 +27,7 @@ import type { Run } from "../../core/feature_fires.ts";
2727 import { getAppBySlug } from "../../core/apps.ts";
2828 import { DAYS } from "../../apps/feature.ts";
2929 import type { FeedItem } from "../../feed/rank.ts";
30 import { NOTE_WORDS } from "../../core/empty_words.ts";
3031 import type { Ctx } from "../../http/context.ts";
3132 import { notePhase, takeSessionTime, timePhase } from "../../core/route_timing.ts";
3233 import { spanWords } from "../../system/format.ts";
@@ -141,7 +142,7 @@ export async function featuresPage(ctx: Ctx): Promise<Response> {
141142 ${listed.value.length === 0
142143 ? empty({
143144 icon: "rocket",
144 title: "No app declares a feature yet",
145 title: NOTE_WORDS.noAppDeclaresAFeatureYet,
145146 note: 'An app declares one with a "feature" block in its forge.json: a name, a page and typed settings.',
146147 action: html`<p><a href="${upstreamBlob(ctx.app.db, DOCS)}">How an app declares a feature</a></p>`,
147148 })
src/web/pages/waves.ts +2 −1
@@ -28,6 +28,7 @@ import { loadRepo, notFoundPage, repoBase, scopeHeader } from "../chrome.ts";
2828 import { escapeHtml, html, type Html } from "../html.ts";
2929 import { page } from "../layout.ts";
3030 import { EMPTY_WORDS } from "../empty_words.ts";
31 import { NOTE_WORDS } from "../../core/empty_words.ts";
3132 import { btn, empty, listCard, row, seg } from "../ui.ts";
3233 import { localScope } from "../scope.ts";
3334 import { milestoneHref, planFor, progress } from "./milestones.ts";
@@ -107,7 +108,7 @@ export async function wavesPage(ctx: Ctx): Promise<Response> {
107108 <h1 class="sr-only">Waves</h1>
108109 ${filterLine}
109110 ${rows.length === 0 && filtering
110 ? empty({ title: "No waves for that app" })
111 ? empty({ title: NOTE_WORDS.noWavesForThatApp })
111112 : entries.length === 0
112113 ? empty({
113114 title: EMPTY_WORDS.waves.sentence,
test/empty-words-all.test.ts −3
@@ -28,7 +28,6 @@ const OWN_WORDS: Readonly<Record<string, number>> = {
2828 "src/web/pages/admin-limits.ts": 1,
2929 "src/web/pages/audit.ts": 1,
3030 "src/web/pages/billing.ts": 1,
31 "src/web/pages/boards-holds.ts": 1,
3231 "src/web/pages/boards.ts": 1,
3332 "src/web/pages/browse.ts": 1,
3433 "src/web/pages/build_shots.ts": 1,
@@ -37,7 +36,6 @@ const OWN_WORDS: Readonly<Record<string, number>> = {
3736 "src/web/pages/contribute.ts": 1,
3837 "src/web/pages/display.ts": 1,
3938 "src/web/pages/family.ts": 1,
40 "src/web/pages/features.ts": 1,
4139 "src/web/pages/inventory.ts": 1,
4240 "src/web/pages/issues.ts": 1,
4341 "src/web/pages/looks.ts": 1,
@@ -54,7 +52,6 @@ const OWN_WORDS: Readonly<Record<string, number>> = {
5452 "src/web/pages/teams.ts": 1,
5553 "src/web/pages/trusted.ts": 1,
5654 "src/web/pages/visitors.ts": 1,
57 "src/web/pages/waves.ts": 1,
5855 "src/web/render/ora.ts": 1,
5956 "src/web/render/sarif.ts": 1,
6057 "src/web/render/sbom.ts": 1,

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs