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

A row is one line: a run's summary never becomes a paragraph on the app page #525

Closed opened this
Closed without merging

A run's summary now shows as one clamped line in studio rows, with the whole text in the row's title. test/studio.test.ts passes, asks, studio-words, web-apps, feed-page and web pass, and the new test fails without the change.

Notes

stopped closed without shipping

opened this

A run's summary now shows as one clamped line in studio rows, with the whole text in the row's title. test/studio.test.ts passes, asks, studio-words, web-apps, feed-page and web pass, and the new test fails without the change. I couldn't run bun x tsc --noEmit here: it can't find the bun type definitions in this environment. I didn't run the rest of the forge.json check.

#395 is closed, so this lands on the merged page the steward asked for.

What changed

  • New src/web/studio/note.ts: noteLine(text) collapses newlines and runs of whitespace into single spaces. It escapes the text and emits <span class="row-note" title="…whole text…">. Backticks, asterisks and links stay literal, and raw HTML is escaped. The only server-side bound is NOTE_MAX = 2000 characters; stored summaries are already capped at 500 by src/core/runs.ts.
  • Row call sites: I used noteLine for the note in the issue, pull and run list rows (lists.ts), the Now rows (now.ts), and the run-history row (tell.ts). The word, who and time stay outside the note, so they are never displaced.
  • Row-title fallback: in now.ts, a row with no issue title falls back to the note as its title, now flattened to one line.
  • CSS: style.ts adds one class, .row-note. It sets max-width: min(46ch, 100%) with overflow: hidden, text-overflow: ellipsis and white-space: nowrap, so the clamp is CSS-only and the full text stays available to screen readers and hover.
  • Test: test/studio.test.ts has a new test with a multi-line report longer than 600 characters. It checks a single-line note, the full flattened text in the title, literal bold and backticks, escaped HTML, no <strong> and no link.

Left out

  • *Ask card's says* line:** it gets the same flattening and full-text title, but I clamped it to 3 lines rather than one (.ask-says). Most of that text is the crew's own sentence, and one line would cut real instructions.
  • Decision ledger: the studio shows it only as a count (app.ts), with no free text, so there was nothing to clamp.
  • Transcript: the whole summary still lives on the run page, one click from the row, and I didn't touch it.

To try it, finish a run with a long multi-line summary and open /<owner>/<repo>/runs or Now. The row's note shows as one line ending in an ellipsis, and hovering shows the whole text.

🤖 Generated with Claude Code

Closes #73

commented

Parked by the crew: the check failed and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs