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

The map's first screen is one row per wave with its issue count and how many have landed #16150

Merged opened this

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

Merged

The map's first screen now gives each wave one row that reads "3 of 8 landed", and a wave with nothing in it is no longer shown. The issue doesn't say what a wave is on the map. I took it to mean a pillar row, which is what /map already draws first (src/web/pages/roadmap.ts).

Notes

shipped production is serving it deploy 3fede26

opened this

The map's first screen now gives each wave one row that reads "3 of 8 landed", and a wave with nothing in it is no longer shown.

The issue doesn't say what a wave is on the map. I took it to mean a pillar row, which is what /map already draws first (src/web/pages/roadmap.ts). Those rows used to say "N of M done", "done" or "nothing yet". If you meant something else, such as chapters or the graph's dependency levels, this isn't what you asked for.

What changed

  • src/story/wave.ts has a new landedWords(landed, total). It returns "3 of 8 landed", clamps the count to the total, and returns an empty string when the total is zero.
  • Each row's meta line uses landedWords. The current wave still ends with its finish estimate.
  • A finished wave reads "8 of 8 landed" instead of "done".
  • Rows with no issues are dropped before rendering. This is a render-time filter only, so the roadmap data, the API, the MCP tool and the terminal screen still include them.
  • test/map-waves.test.ts covers the wording and the empty-row filter. The wording test fails without landedWords, and the render test fails without the new meta line and filter.

Checks

  • bun x tsc --noEmit, gate.ts --fix and design-lint are clean.
  • I ran the map, roadmap and design-map tests; they pass.
  • scripts/fast.ts found the diff too broad to name tests (2,306 of 4,221 files), so I ran only the map and roadmap ones. The forge's full check runs on the push.

Left out

  • The JSON and terminal roadmaps keep the old counts, since the issue is only about the first screen.
  • The issue named src/web/pages/map.ts as the expected file, but the first screen is drawn in roadmap.ts, so map.ts is untouched.

To try it Open /map on a repository that has pillars. Each non-empty row should read "N of M landed".

The first push was refused because the pre-push hook wanted a commit saying how to try the change. I added an empty "Try:" commit for that.

[
  {"go":"/map on a repo with pillars","look":"each pillar row's meta line","expect":"'3 of 8 landed'; a finished pillar reads '8 of 8 landed'"},
  {"go":"/map on a repo with a pillar that has no issues","look":"the pillar list","expect":"that pillar has no row"}
]

🤖 Generated with Claude Code

Closes #16130

6 earlier comments · 1 event
commented

The map's first screen now gives each wave one row that reads "3 of 8 landed", and a wave with nothing in it is no longer shown.

The issue doesn't say what a wave is on the map. I took it to mean a pillar row, which is what /map already draws first (src/web/pages/roadmap.ts). Those rows used to say "N of M done", "done" or "nothing yet". If you meant something else, such as chapters or the graph's dependency levels, this isn't what you asked for.

What changed

  • src/story/wave.ts has a new landedWords(landed, total). It returns "3 of 8 landed", clamps the count to the total, and returns an empty string when the total is zero.
  • Each row's meta line uses landedWords. The current wave still ends with its finish estimate.
  • A finished wave reads "8 of 8 landed" instead of "done".
  • Rows with no issues are dropped before rendering. This is a render-time filter only, so the roadmap data, the API, the MCP tool and the terminal screen still include them.
  • test/map-waves.test.ts covers the wording and the empty-row filter. The wording test fails without landedWords, and the render test fails without the new meta line and filter.

Checks

  • bun x tsc --noEmit, gate.ts --fix and design-lint are clean.
  • I ran the map, roadmap and design-map tests; they pass.
  • scripts/fast.ts found the diff too broad to name tests (2,306 of 4,221 files), so I ran only the map and roadmap ones. The forge's full check runs on the push.

Left out

  • The JSON and terminal roadmaps keep the old counts, since the issue is only about the first screen.
  • The issue named src/web/pages/map.ts as the expected file, but the first screen is drawn in roadmap.ts, so map.ts is untouched.

To try it Open /map on a repository that has pillars. Each non-empty row should read "N of M landed".

The first push was refused because the pre-push hook wanted a commit saying how to try the change. I added an empty "Try:" commit for that.

[
  {"go":"/map on a repo with pillars","look":"each pillar row's meta line","expect":"'3 of 8 landed'; a finished pillar reads '8 of 8 landed'"},
  {"go":"/map on a repo with a pillar that has no issues","look":"the pillar list","expect":"that pillar has no row"}
]

🤖 Generated with Claude Code

commented

<!-- look-pages 3bdb5bfa7ea6 --> Look pages for 3bdb5bf, from the gate:

  • look pages (inferred): this pull changes src/web/pages/roadmap.ts; the forge pictures / (src/web/pages/roadmap.ts), /docs (src/web/pages/roadmap.ts), /explore (src/web/pages/roadmap.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

The "both doors" rule is satisfied and bun scripts/gate.ts no longer reports it; the rule was the only failure in the check's log. I did not re-run the rest of the check. I ran bun x tsc --noEmit and the 8 roadmap and map test files (80 pass), and both were clean before the last two commits. The second commit only adds a docs paragraph, and the first changes only the terminal's roadmap screen, which those tests cover.

What changed

  • On a repository's /map, each pillar row now reads "3 of 8 landed" (landedWords in src/story/wave.ts). The current pillar still adds its finish estimate after the count.
  • A pillar with nothing counted in it is no longer listed.
  • The terminal's map screen (src/tui/screens/roadmap.ts) now says the same line and hides the same empty pillars as the page. That is the new commit the gate asked for.
  • docs/features/roadmap.md has a short note on how a pillar's standing reads.
  • test/map-waves.test.ts covers the wording and the hidden empty pillar.

Not done

  • Pillars with state "done" now also read "N of N landed" instead of the word "done". I did not add a separate label for them.

Try it: open /<owner>/<repo>/map on a repository that names pillars, or the map screen over SSH. Both should show the same "N of M landed" rows.

commented

<!-- look-pages b188565218a8 --> Look pages for b188565, from the gate:

  • look pages (inferred): this pull changes src/web/pages/roadmap.ts; the forge pictures / (src/web/pages/roadmap.ts), /docs (src/web/pages/roadmap.ts), /explore (src/web/pages/roadmap.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
Changes requested — before the latest push

Page change works and is small. Two things to fix: (1) the terminal screen change has no test, so the both-doors behaviour is unproven; (2) landedWords lives in src/story/wave.ts, a changelog module, though it is now a map concept imported by web and tui. Also note the pull is not part of the PIPELINE FIRST list; keep it single-purpose and rebased.

commented

All three points are fixed and pushed to the same branch. bun x tsc --noEmit is clean, and 138 tests across 26 files pass. That run covers map-waves plus the wave tests, not the whole suite. I haven't seen the forge's check on this push yet.

  • Terminal test: test/map-waves.test.ts now calls roadmapLines with a 3-of-8 pillar, an empty pillar and a done 2-of-2 pillar. It expects "3 of 8 landed" and "2 of 2 landed", and expects the empty pillar and "nothing yet" to be absent. The old wording would fail it.
  • Where landedWords lives: it moved from src/story/wave.ts to src/web/roadmap.ts, beside paceSentence and finishWords. The web page and the terminal screen both import it from there, and wave.ts is back to how it was.
  • One empty-pillar filter: a new shownPillars(road) in src/web/roadmap.ts replaces the two copies of the total > 0 filter. The page and the terminal both call it, so they can't drift.

I did not rebase. On "single-purpose and rebased", the branch carries only this change. I don't know why the pull isn't on the PIPELINE FIRST list, so that part I left for you.

commented

<!-- look-pages 109cac8e02a1 --> Look pages for 109cac8, from the gate:

  • look pages (inferred): this pull changes src/web/pages/roadmap.ts, src/web/roadmap.ts; the forge pictures / (src/web/pages/roadmap.ts), /docs (src/web/pages/roadmap.ts), /explore (src/web/pages/roadmap.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

The feedback is the gate's automatic list of look pages for 109cac8. It asks for no code change, so I changed nothing and pushed nothing. The branch is clean and matches origin.

The list covers /, /docs, /explore and 28 more pages that import src/web/pages/roadmap.ts or src/web/roadmap.ts. I did not take screenshots or check any of them here. If any of those pages should be skipped or replaced, a Looks: <path> or No look: <why> line in a commit message overrides the list.

What the pull does

  • The map's first screen shows one row per wave. Each row gives the issue count and reads "3 of 8 landed". A wave with no issues is hidden.
  • The terminal's map uses the same wording and the same empty-wave filter.
  • The wording lives in src/web/roadmap.ts, and the page and the terminal share the empty-wave filter. The terminal screen has a test.
  • The roadmap how-to now says a pillar reads "3 of 8 landed".

What I left out: nothing beyond what the issue asked for.

How to try it: open a repository's /map on the preview at https://lab--16150--forge-trevato-apps.open-platform.sh. Each row should read "N of M landed".

[{"go":"/map","look":"each wave row","expect":"reads 'N of M landed'; a wave with no issues is not listed"}]
Approved

Earlier asks are met. The terminal screen now has a test. landedWords sits beside paceSentence in src/web/roadmap.ts. One shownPillars filter serves the page and the terminal. The how-to is in docs/features/roadmap.md, not the README. map-waves tests pass (3), design-lint is clean, and the preview answers 200. Non-blocking: a done pillar now reads "N of N landed" instead of "done", which fits the issue.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs