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

Repo header: descriptions clamp to 2 lines with expand (apps API separates description from brief), and a clear crew status line: "paused at its ceiling" with a Raise button #16936

Merged opened this

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

Merged

Merged main into the branch and pushed; the description clamp now sits on top of the new main. The 9 tests in test/description-clamp.test.ts and test/repo-audience.test.ts pass, and design-lint is clean. I did not run the full suite; the forge's check does that on the push.

Notes

opened this

Merged main into the branch and pushed; the description clamp now sits on top of the new main. The 9 tests in test/description-clamp.test.ts and test/repo-audience.test.ts pass, and design-lint is clean. I did not run the full suite; the forge's check does that on the push.

bun x tsc --noEmit is not clean here. Its errors are the missing happy-dom module and latin1 encoding types, none in code this pull touches.

How the seven conflicts resolved:

  • src/actions/apps.ts: kept main's template and secrets flow. The 160-character description and the longer brief that opens issue #1 now go through splitDescription, including when a template is used.
  • src/http/api.ts and postApiV1Apps.ts: kept main's sentence and template fields. Added brief and the description_too_long refusal alongside them.
  • src/web/pages/browse.ts and src/web/pages/repo.ts: the About cards use clamp. In repo.ts the About description sits in a different place on main, so I re-applied the change there.
  • src/web/studio/home.ts: dropped our change. main removed the featured card it touched, and the home tiles don't render a clamped description.
  • src/web/style/content.ts: the .clamp rules are re-added next to main's new .repo-nav rules.

I also rewrapped a test comment the gate flagged, and added Try, No door and Looks lines to that commit. The clamp is CSS-only and the terminal prints descriptions whole, so there is no terminal screen or how-to.

The gate also reports that firstSentence in app_brief.ts is similar to cutTitle in core/client-apps.ts. It is an advisory note, and I left both as they are.

[{"go":"/trevato/forge","look":"A repository with a description over two lines","expect":"The header and About card show two lines and a quiet \"more\"; clicking opens the rest in place, \"less\" closes it"},{"go":"POST /api/v1/apps with a 200-character description and a brief","look":"The response","expect":"422 description_too_long"}]

Continues #16936

Show 28 earlier items

7 earlier comments
commented

I merged current main and pushed. Two of the four items needed no code change. I couldn't tell whether the look-pages note needed anything, and I haven't re-run the check.

  • Both doors: the clamp is CSS on the web header and About card, so I added a No door: commit saying so. The crew line and the description-limit message already have terminal counterparts in src/tui/screens/autonomy.ts and common.ts. I didn't check what the terminal prints for a long description beyond that.
  • Dead code: test/unused-exports.test.ts passes. It prints one note, streamLag in src/snapshot/stream.ts, which is main's code, not this branch's.
  • Issue number: every commit on the branch already names (#6008), and the new one does too.
  • as never in tests: none of the test changes in this pull use it.
  • Look pages note: I didn't act on this one. The gate still says the pull changes src/web/chrome.ts, src/web/clamp.ts and src/web/pages/browse.ts, and that a commit names /. An earlier commit, "Looks: / (the repository head's description clamps…)", already does.

tsc is clean.

commented

I merged main into the branch and pushed. The client-size, pages-budget, dup-imports and unused-exports tests pass, and tsc is clean. I did not run the rest of the suite.

Both conflicts came from main splitting its budget files into one file per page. I kept main's layout and re-applied this pull's budgets inside it:

  • Page budgets: docs/design/size-budget.json and the HEAVIER table in test/pages-budget.test.ts are gone on main. The page budgets now live in test/budgets/pages/, so I put the crew-line changes there:
    • /:owner/:name/next goes from 63 to 69 statements.
    • New files cover /:owner/:name/map at 61 and /:owner/:name/queue at 64.
    • Each file's why names #6008.
  • Size ceilings: I rewrote them in docs/design/size-budget/ with FORGE_SIZE_WRITE=1. The clamp CSS lands on every page, so the CSS ceiling rose by about 1 KB (from 51712 to 52736) on every page, and the JS ceilings rose by up to 512 B on most pages. Say if you want that trimmed instead.
commented

<!-- look-pages 7ff9113f5b58 --> Look pages for 7ff9113, from the gate:

  • look pages (named): this pull changes src/web/chrome.ts, src/web/clamp.ts, src/web/pages/browse.ts; a commit names /
commented

No new push: I found nothing at 7ff9113 to change, and the branch already matches origin. I ran the gate, bun x tsc --noEmit and the tests that cover this change, and they pass.

  • Look pages: this is a note, not a refusal. The branch's commit c12b45512 has Looks: /. src/web/chrome.ts, src/web/clamp.ts and src/web/pages/browse.ts are only reached through the pages the clamp changes, so I added no further look.
  • Both doors: the gate rule passes. src/tui/screens/autonomy.ts carries the crew status line and the Raise action. The terminal already wraps description text to its width, as the Direction commit db175dc94 says.
  • Dead code: test/unused-exports.test.ts passes. It prints a note that streamLag in src/snapshot/stream.ts is no longer dead. That file isn't part of this pull, so I left it.
  • Name the issue: the gate rule passes, and every Direction commit on the branch ends with (#6008).
  • as never: the diff's test files contain none.
  • Gate notes (nothing to fix, left as is):
    • Five files have comment lines over 100 columns; the nightly rewrap handles them on main, and bun scripts/gate.ts --fix would do it now.
    • cutWords and sentenceOf in src/core/client-apps.ts resemble clip in src/web/studio/cards.ts and firstSentence in src/core/asked.ts. I kept them separate because the description limit and the brief split have their own rules.

I couldn't run the tests that bind a port or a unix socket in this sandbox. The forge's check runs those.

commented

Still red on current main: the first-view budget in a process stamped as a release > every page stays inside its budget, /changelog included. Fix it and push.

commented

The check's two first-view budget failures are fixed and pushed; the third failure is not addressed.

First-view budgets. The crew line in the repository head, which only an admin sees, adds 11 words and one block on four pages: the issues list, the pulls list, runs and the milestone page. Those four pages went over their budgets in docs/design/attention-budget.json. I raised those four entries and left every other page as it was. Each raised entry carries a note naming #6008, since a budget may only rise with one.

  • issues list: 32 words / 7 blocks → 43 / 8
  • pulls list: 26 / 6 → 37 / 7
  • runs: 38 / 8 → 49 / 9
  • milestone: 90 / 20 → 101 / 21

test/attention.test.ts and test/attention-stamped.test.ts pass locally. I also ran bun scripts/gate.ts --fix, which rewrapped a comment in src/perf/page_budgets/app.ts; that is in the commit.

The ?sort= failure (test/csv-sort-page.test.ts) passes locally in 2.3 s, and the log shows only its first line. I changed nothing for it. It isn't a page-budget failure, so it looks like timing under shard load, but I couldn't confirm that. If the check fails it again, I'll need the full log lines.

attention.md. The budget table in docs/features/attention.md was already out of date and no test reads it, so I left it.

I did not re-run bun x tsc --noEmit this time; this change touches no TypeScript logic.

commented

<!-- look-pages dfd5ef3b1f1c --> Look pages for dfd5ef3, from the gate:

  • look pages (named): this pull changes src/web/chrome.ts, src/web/clamp.ts, src/web/pages/browse.ts; a commit names /
commented

I found nothing new to change, so I pushed nothing: the branch matches origin at dfd5ef3. The gate shows 0 failures and bun x tsc --noEmit is clean. This feedback is the same list as last round, and each item comes out as follows.

  • Look pages: this is a note, not a refusal. The branch has a commit naming / (c12b45512, Looks: /). The three files it lists change only the repository head, which / draws.
  • Both doors: the gate rule passes. The terminal's Autonomy screen (src/tui/screens/autonomy.ts) prints the same crew line, built by the shared stopWords, and has the same fix. The terminal already wraps description text to its width, which the Direction commit db175dc94 records.
  • Dead code: test/unused-exports.test.ts passes. Its only message names streamLag in src/snapshot/stream.ts, which this pull doesn't touch.
  • Name the issue: the gate rule passes, and every Direction commit ends with (#6008).
  • as never: none appears in the diff's tests.

The other notes are comment widths, which the nightly rewrap handles, and two functions in src/core/client-apps.ts that resemble ones elsewhere (cutWords/clip, sentenceOf/firstSentence). I kept those separate because the description limit and the brief split have their own rules.

The ?sort= test (test/csv-sort-page.test.ts) that failed in the last check is unchanged and still passes here. I think the failure was timing under load but couldn't confirm it, so it may fail again in the check.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs