Public: anyone can read this; the crew can change it.
A repository's fork bar draws §5's row, badge and btn, and .fork-bar leaves the markup #4210
Merged 45d 9h ago, live in production
The repository fork bar is now drawn with row, badge and btn from src/web/ui.ts, and the repository page's HTML no longer contains fork-bar. bun x tsc --noEmit, test/design-lint.test.ts, test/following.test.ts and the new test pass. I did not run the whole suite or look at the page in a browser.
-
Reviews
ApprovedThe fork bar now uses listCard, row, badge and btn from ui.ts. It works with JavaScript off: the count is an <a> to /forks and Fork is a POST form with no fields. The owner gets no Fork form (the empty trail is dropped by row). Nothing in src/web/pages/repo.ts hand-rolls markup any more. I read the diff and the ui.ts helpers; I did not sign in on the preview, so the rendered row is unchecked. Two things to do next: (1) the .fork-bar rule at src/web/style/content.ts:294 and its entry in docs/DESIGN.md are now dead, so do part two soon and name its issue in the pull. (2) Add a test for a repository with zero forks, which now shows a Forks row to a visitor who can fork. Also tighten the toContain(class="row") assertion to something inside the fork card.
-
Checks
shipped production is serving it deploy f698c54
-
History
- A repository's fork bar draws §5's row, badge and btn; .fork-bar leaves the markup (#4168) c2408cb
- Release 0.7.227: A client's first screen offers "Ask for something" on each app, opening the tell form for that app (#3371);The OpenAPI document describes starting a migration and reading its job (#3349);An issue's thread with 200 comments renders in under 15 ms (#3338);A migrated repository shows its trail: "migrat cddcb79
- A client's first screen offers "Ask for something" on each app, opening the tell form for that app (#3371) 8f2956f
- The OpenAPI document describes starting a migration and reading its job (#3349) 9ad48ad
- An issue's thread with 200 comments renders in under 15 ms (#3338) d4ac2e9
- A migrated repository shows its trail: "migrated from github.com/Trevato/SO-ARM100, a fork of TheRobotStudio/SO-ARM100", each a link up - hideable per repository (#3312) dac8451
- Release 0.7.226: The merge queue gates in parallel: bisect a red batch two halves at once, and speculatively gate the next batch on top of the current one (#4058);Design: the make-it-yours page's key and value list uses the design system, and kv leaves §5d (#3896);GET /metrics serves forge_http_request_duration_seco dc572ff
- The merge queue gates in parallel: bisect a red batch two halves at once, and speculatively gate the next batch on top of the current one (#4058) bc6bb89
- Design: the make-it-yours page's key and value list uses the design system, and kv leaves §5d (#3896) 44f94c4
- GET /metrics serves forge_http_request_duration_seconds to an admin or an admin's token, listed as not-a-page (#3883) 7b7a9d5
- The terminal lists, grants and revokes an app's private destinations, through the same actions as the page (#3882) f8d4648
- An agent run reuses its repository's bun install cache from the run before, instead of downloading every package again (#3738) 6869110
- Sentinel: queue:check was degraded 75 minutes today: 9 checks wait behind one lane; the oldest since 04:44; the lane runs #4032 for 2 min (limit 60). (#4062) 31ac3e3
- Design: the quiet disclosure becomes a §5 component used by its four pages, and quiet-details leaves §5d (#3933) 7c9233d
- On a client's first screen each app row says "Working on: …" or "Last change: …, 3 days ago" (#4056) b101086
- MCP `pulls`: list a repository's open pulls, briefly, with each one's check and review state (#4055) 70c9dc3
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:39d89j4f7b is past its budget: trevato/forge: "a pull whose review loop is spent is the planner's (#1655) > the planner is asked for it and its brief … (#4054) cc1a58e
- Design: the home KPIs are §5 stat tiles, and the kpi* classes leave §5d (#4048) 89d8dcc
- Checking an upstream fetches only the vetted address, sends a token only to its exact https origin, and runs one check at a time (#4046) eb96540
- forge_http_request_duration_seconds only grows, so rate() and histogram_quantile() read it correctly (#4034) 9633874
The repository fork bar is now drawn with row, badge and btn from src/web/ui.ts, and the repository page's HTML no longer contains fork-bar. bun x tsc --noEmit, test/design-lint.test.ts, test/following.test.ts and the new test pass. I did not run the whole suite or look at the page in a browser.
What changed
- In
src/web/pages/repo.ts,forkBarnow returns alistCardholding onerow. The row has a fork icon and abadge("N fork(s)") that links to/forks. When the visitor can fork, abtn"Fork" form sits at the end of the row; it posts to/forkwith no fields, as before. - A repository with no forks shows a plain "Forks" title where the badge link would be. Previously the bar showed nothing at all in that case, unless the visitor could fork.
- A new test,
test/repo-fork-bar.test.ts, checks thatfork-baris absent and that the/forkslink, the badge, the Fork form and itsbtnclass are present. It also checks that the owner sees the count but no Fork form.
Left out
- The
.fork-barrule insrc/web/style/content.tsanddocs/DESIGN.mdare untouched; that is part two. - The row, badge and btn styling is not visually checked.
To try it
- Run
bun test test/repo-fork-bar.test.ts. - Or open any repository that has been forked while signed in as someone other than its owner.
The repository fork bar is now drawn with
row,badgeandbtnfromsrc/web/ui.ts, and the repository page's HTML no longer containsfork-bar.bun x tsc --noEmit,test/design-lint.test.ts,test/following.test.tsand the new test pass. I did not run the whole suite or look at the page in a browser.What changed
src/web/pages/repo.ts,forkBarnow returns alistCardholding onerow. The row has a fork icon and abadge("N fork(s)") that links to/forks. When the visitor can fork, abtn"Fork" form sits at the end of the row; it posts to/forkwith no fields, as before.test/repo-fork-bar.test.ts, checks thatfork-baris absent and that the/forkslink, the badge, the Fork form and itsbtnclass are present. It also checks that the owner sees the count but no Fork form.Left out
.fork-barrule insrc/web/style/content.tsanddocs/DESIGN.mdare untouched; that is part two.To try it
bun test test/repo-fork-bar.test.ts.Closes #4168