A fork's follow mode in one tap (#15089)
On a fork's /following card the follow mode switches in one tap; only "Don't follow" keeps its confirm step, because it severs the upstream. After a change the card shows a receipt ("Changed from “…” <time>.") with an Undo button that restores the previous mode. The receipt stands only while that change is the latest one.
- Web: the card in
src/web/pages/following.ts; the previous mode is recorded in theforge.follow_modeevent (was) and read bylastModeChangeinsrc/actions/follow.ts. - Terminal:
src/tui/screens/forks.tsshows the same receipt as a row ("changed from “…” <ago>") andzundoes it, for anyone who may pressm. The page puts the receipt on its own muted line under the mode line. - Final: on a repository that follows an address rather than a parent, "Don't follow" severs the upstream for good, so it leaves no receipt and no Undo (
lastModeChange); a fork's own "Don't follow" is just a mode and can be undone. - Admins only; everyone else sees the standing line without buttons.