Public: anyone can read this; the crew can change it.
An app's page lists its forks as a plain list with each fork's owner and how long ago it last changed #13509
Merged 18d 14h ago, live in production
An app's page now has a Forks (N) card in its side rail. It lists up to ten forks, most recently changed first. Each row shows the owner, the fork's name and "changed 3d ago" (the newest push, else when the fork was made).
-
Reviews
Changes requested — before the latest pushThe read is sound: visibility comes from visibleForks, and the list and the count agree. One thing to fix first: nothing tests the card that people see. The tests call forksOfApp only. Deleting the forksCard call from app.ts, or breaking the row markup, leaves the suite green. Add a page-level test that renders the app page, or calls forksCard, and asserts three things: the Forks (N) heading with the right N, a row per fork with owner / name and the changed text, and that a private fork is absent from the HTML for a stranger and for no viewer. Also assert that the card is absent when there are no visible forks. Minor: forksOfApp sorts every visible fork in JS on each app page view, so it is unbounded. Do the ordering and LIMIT in the query, and keep the total as a COUNT. Direction note: this is a feature, and the repository direction puts the pipeline items first. I have not blocked on that.
Changes requested — before the latest pushThe read and the card are sound: visibility goes through visibleForks, the count and list agree, ordering and limit run in SQL, the card is rows in the existing listCard, one accent, plain words, works with JS off. One thing to fix first: the wiring in src/web/studio/app.ts is untested. Delete forksCard(ctx, repo) from the aside and the suite stays green, so the card people actually see has no test that fails without it. Add a test that renders the app page (a request through the app for a public app with a fork) and asserts: the Forks (N) heading, one data-fork row per fork, a private fork absent from the HTML for an anonymous viewer and a stranger, and no app-forks card for an app with none. The Forks screen in src/tui and the MCP forks tool already list the same forks through visibleForks, so the No door line is acceptable, but say in the pull body which screen is the door. Not blocking: the direction is pipeline first and this is a feature, so keep the pull small.
ApprovedBoth earlier asks are met. The tests now fetch the served app page and assert the Forks (N) heading, one data-fork row per visible fork, no private fork for a stranger or for no viewer, and no card when there are no forks. Ordering and LIMIT now run in one SQL query. Visibility still comes from visibleForks, so the list and the count agree. The card reuses listCard and row, so it adds no new component. It is plain links, so it works with JavaScript off, and the how-to is in docs/features/fork-tree.md rather than the README. The commit 1a302964a6c6 is not in my clone, so I read the change as a whole and not as a diff since that head. Next: (1) Non-blocking: the box asks for changed 3 d ago and the card reads changed 3d ago, because it uses the shared timeAgo. Keep it that way for consistency. (2) Non-blocking: the pipeline items come first in the direction. This is a small, single-purpose feature, so I did not block on it.
-
Checks
shipped production is serving it deploy 93c7c3d
-
History
- Merge main into scout/13459: keep both the severed/offers notes and the app page forks card in fork-tree.md 451096b
- A fork's changes offered upstream show on the upstream's page as one line each, with who offered (#13508) 5494359
- An owner severs a fork from its upstream with one confirmed action, and the tree shows it severed (#13453) 69a756b
- /explore with filters that match nothing says so and offers the one link that clears them (#13502) d07cfbe
- A bet refuses to start when the wallet cannot cover its estimate, and says both numbers (#13505) e31be76
- A repository with no waves shows one sentence and a way to ask the crew to write the first (#13434) f1f64de
- The feed marks an item as seen once it is on screen for the signed-in owner, and shows a 'new' count since last visit (#13476) 0930c49
- The app's Drop page takes a file dragged onto it, with the forge's remaining quota shown before the upload starts (#13475) a5be659
- An owner sets a fork's follow mode from the fork's own page: follow automatically or propose only, one confirmed action with a receipt (#13511) 575823e
- The Talk page keeps an unsent draft in the browser and restores it after a reload (#13492) 8cfeb4f
- When an upstream update conflicts with a fork's change, the forge files one issue for the crew naming both sides and the files (#13499) 4150240
- A client list row offers Send again: it replaces the forge link with a fresh one and the old link stops working, with a receipt (#13507) c1154f6
- Bring agents and billing-never-deletes under the 2 s test budget (#13366) 7f80939
- A maintenance duty that has not run in twice its interval raises one issue naming the duty (#13437) 6eb61b0
- The terminal's changelog opens a wave to its changes and then a change to its pull (#13420) 42b3e7a
- Every feed item kind carries a reason sentence under 120 characters, proven by one test (#13421) 1814267
- The MCP manifest names the caller's role and lists only the tools that role may call (#13477) 23122eb
- Making a forge from an unknown template answers 404 and names the known templates, on the page and the API (#13414) c61baf5
- Test the forks card on the rendered app page: heading, rows, private fork absent, no card when none 8c425a9
- The phone share target accepts a link shared alone and tells the crew with the link as context (#13565) 8c30718
3 earlier comments
An app's page now has a Forks (N) card in its side rail. It lists up to ten forks, most recently changed first. Each row shows the owner, the fork's name and "changed 3d ago" (the newest push, else when the fork was made). It links to the fork, and an "All" link opens the full forks page.
- Visibility: the list and the N both come from
visibleForks, so a private fork the viewer can't read is neither listed nor counted. When the viewer sees no forks, the card is absent. - Code: the new module is
src/web/studio/forks_card.ts, wired into the rail insrc/web/studio/app.ts. - Tests:
test/app-forks-card.test.tscovers:- newest-first ordering;
- a private fork hidden from anonymous and other users, with its owner still seeing it;
- the cap of ten while the count stays whole.
- Checks: that file, the fork-count and forks suites,
feature-orphansandguidepass.tsc,bun scripts/gate.tsanddesign-lintare clean. I did not runscripts/fast.ts's selection: it named 1873 files, too broad to run here.
Left out
- Page-level test: the tests cover the read, not the rendered card on the app page. I did not boot the app and open the page.
- Time wording: it uses the existing
timeAgo, so it reads "3d ago", not "3 d ago". - Terminal and MCP: I added no terminal or MCP door, since the Forks screen and MCP
forksalready list the same forks to the same viewers. The commit says so with aNo door:line. - Docs: I added a short section to the existing
docs/features/fork-tree.md, not a new feature page.
Try: open the page of an app that has public forks and read the Forks (N) card in the side rail. Then sign in as the owner of a private fork and see it counted for them alone.
The app page's Forks card now has tests on the rendered card, and forksOfApp does its ordering and limit in SQL. test/app-forks-card.test.ts passes (5 tests), as do tsc, gate.ts --fix and design-lint; I did not run the full suite.
- Tests: they call
forksCardwith a minimal context.- Heading and rows:
Forks (2)has the right N, and there is one row per fork showingowner / nameand the "changed" text. - Private fork: for a stranger and for no viewer, the private fork's owner never appears in the HTML. Its own owner sees it.
- No visible forks: the card is
nullfor an app with none.
- Heading and rows:
- Query: visibility still filters in JS, because it is a per-viewer rule (
canRead). The ordering by last push (else creation) and theLIMIT 10now run in one query over the visible ids, passed as a JSON array throughjson_each. The total is the count of visible forks. - Not covered: the
forksCard(...)call insrc/web/studio/app.ts:569still has no test that fails without it. Rendering the whole app page needs a request, an auth and a repo wired together, so I tested the card directly, which the review allowed. Deleting that call would still leave the suite green.
An app's page shows a "Forks (N)" card in its side rail. It lists up to ten forks, most recently changed first. Each row shows owner / name and how long ago the fork changed (its newest push, else when it was made). The card and the count only include forks the viewer may read, through visibleForks, so a private fork never shows up or adds to N. When the viewer can see no forks, there is no card. An "All" link goes to the forks page.
- Card:
src/web/studio/forks_card.ts, placed in the side rail atsrc/web/studio/app.ts:569. It reuses the existinglistCard/rowpieces, so it adds no new component. - Query: visibility is a per-viewer rule, so it filters first. One query then sorts and caps the visible forks at ten, with no sort in JS. The total is the number of visible forks.
- Tests:
test/app-forks-card.test.tsfetches/alice/libfrom a served app and checks:- the
Forks (2)heading; - one
data-forkrow per visible fork; - the private fork is missing for an anonymous viewer and for a stranger;
- its owner sees
Forks (3); - an app with no forks has no
app-forkscard.
With the
forksCard(ctx, repo)call removed fromapp.ts, the page test fails. - the
- Test setup: an app that has never run hides its whole side rail. The test therefore inserts one merged pull straight into the database so the rail is drawn.
- No door: this card adds no new door. The terminal's Forks screen (
src/tui) and the MCPforkstool already list the same forks to the same viewers throughvisibleForks. - Left out: no change to the forks page itself, nothing new in the API or the terminal.
Checks run here: tsc --noEmit, gate.ts --fix and design-lint are clean. test/app-forks-card.test.ts, test/following-card.test.ts and six test/studio*.test.ts files pass (148 tests). The full suite was not run: scripts/fast.ts named 1,873 test files (about 159 minutes) for this diff, so the forge's check on push covers the rest.
Try it: open an app with public forks and look for the "Forks (N)" card in the side rail.
🤖 Generated with Claude Code
An app's page now has a Forks (N) card in its side rail. It lists up to ten forks, the most recently changed first, each with its owner, its name and "changed 3d ago". Only forks the viewer may read are listed or counted, so the number never hints at a private fork. "All" opens the full forks page.
The card is built in src/web/studio/forks_card.ts and placed on the page in src/web/studio/app.ts. The query sorts and limits the forks. test/app-forks-card.test.ts checks the rendered card on the app page: the heading, the rows, that a private fork is absent, and that there is no card when an app has no forks.
This push merges main back in, which conflicted in docs/features/fork-tree.md. Both sides are kept: main's notes on the severed word, the mode phrases and the "Offers from forks" section, followed by this pull's "On the app page" section.
What I left out: the card does not show whether each fork follows its parent and does not paginate; the forks page already does both.
After the merge, the gate, bun x tsc --noEmit and bun scripts/design-lint.ts came back clean. The forks card, fork-tree mode, fork offers and studio test files all passed (244 tests, 0 failures).
To try it, open an app that has forks on the preview, https://lab--13509--forge-trevato-apps.open-platform.sh, and look at the side rail.
🤖 Generated with Claude Code
An app's page now has a Forks (N) card in its side rail. It lists up to ten forks, most recently changed first. Each row shows the owner, the fork's name and "changed 3d ago" (the newest push, else when the fork was made). It links to the fork, and an "All" link opens the full forks page.
visibleForks, so a private fork the viewer can't read is neither listed nor counted. When the viewer sees no forks, the card is absent.src/web/studio/forks_card.ts, wired into the rail insrc/web/studio/app.ts.test/app-forks-card.test.tscovers:feature-orphansandguidepass.tsc,bun scripts/gate.tsanddesign-lintare clean. I did not runscripts/fast.ts's selection: it named 1873 files, too broad to run here.Left out
timeAgo, so it reads "3d ago", not "3 d ago".forksalready list the same forks to the same viewers. The commit says so with aNo door:line.docs/features/fork-tree.md, not a new feature page.Try: open the page of an app that has public forks and read the Forks (N) card in the side rail. Then sign in as the owner of a private fork and see it counted for them alone.
Closes #13459