Mirror admin: edit in place, clear stale errors on URL change, name the failure cause
- No per-row edit; the only way to change a URL is knowing that "Add mirror" is an upsert. Add edit (url, every, enabled, accept_local_writes). - `SetMirror` with a new URL leaves `last_err` / `failures` from the old one, so the table reports a failure against a URL that no longer exists. Clear them when the URL changes. - "zit pull: cannot connect to the peer" hides the cause. Classify what we get (DNS does not resolve / connection refused / TLS / HTTP status) and say so; DNS failure should read "host does not resolve — the project may have moved", the commonest way a long-lived mirror dies. Passing the underlying error through is a zit change; classification on our side is not.
Partly on branch mirror-posture: per-row edit (?edit=repo prefills the form) and failures cleared on URL change. Remaining: classify the pull failure cause (DNS / refused / TLS / HTTP).
Edit-in-place and error clearing merged in e61bc36d. Still open here: classify the pull failure cause.
Measured on 0.1.0-beta+0cccfda9b217 (landing 7fe97160). zit still says "cannot connect" alike for DNS, refused and TLS, so quarry now probes the upstream when a pull fails that way and prefixes the first failing step. A throwaway mirror pointed at https://no-such-host-bf5fbed5.invalid/x, run once: mirror.run err, lastErr, the pull history entry and the fleet row all read "host no-such-host-bf5fbed5.invalid does not resolve — the project may have moved (… zit pull: cannot connect …)". Store deleted after. Refused ("… refused the connection — nothing is listening there") and TLS ("TLS with