Fork offers, following and detaching: two doors
The same four actions are on a page and in the terminal. Each calls one function in src/actions, so the words match.
- See offers. On an upstream, the page (
src/web/pages/fork-offers.ts, "Offered by forks") and the terminal's Forks screen (src/tui/screens/forks.ts, rows "offered #N …") list the open pulls its forks sent, with the fork, how long ago and the size. A fork's own page and screen list what it sent, with where each stands;Withdrawis on the waiting ones. - Offer a change upstream. On a fork, the page (
src/web/pages/offer-upstream.ts) has "Offer N commits upstream" and the per-commit and per-pull buttons; the terminal hasoon a commit (src/tui/screens/commits.ts) and on a merged pull (src/tui/screens/pull.ts), anduon the Forks screen to propose the fork's branch. All go throughofferCommitandofferPull. - Follow or propose. On the page, Settings › Follow upstream (
src/web/pages/upstream-follow.ts) and the Following page; in the terminal,mon the Forks screen (setFollowMode) cycles "Follow and merge", "Follow and ask" and "Stay as is", andzundoes the last change. The About card (src/tui/screens/about.ts) sets an address to follow. - Detach. On the page, Settings › Danger zone › Sever from upstream (
src/web/pages/detach.ts); in the terminal,xon a fork's About card. Both go through/-/confirmor a confirm dialog first, which states the plan (detachPlanWords). Dismissed, nothing changes; there is no undo once it runs.
Tested in test/tui-fork-offers.test.ts.