Settings: configuration export, and mirror controls on the repository page
- **Configuration export** next to the existing Import, under Advanced. `config.import` exists and has no counterpart, so `back it up before you delete it` is not one click, or any number of clicks. - **Mirror controls on the repository.** Upstream URL, last pull and its outcome, Pull now, accept local writes — the controls that live on /fleet today, surfaced where someone asks the question, with a link to /fleet for credentials. Overlaps a06c9ad33f (mirror health) and bf5fbed5d6 (mirror admin); whichever is done first should decide where the shared rendering lives.
Not proposed here: splitting settings into subpages. See 58470338a1 for that decision, which the section rail deferred rather than settled.
Measured on e53836294974: config.import exists and has no config.export counterpart — the op list has import only, and the settings page has Import and no Export. That half is untouched and is the one-click backup this ticket asked for. Mirror controls: mirror.list / mirror.set / mirror.run / mirror.detach / mirror.writes / mirror.chatbridge all exist, and the settings page mentions the mirror; whether the pull-now and last-outcome controls are on the repository page rather than /fleet I did not verify from an admin session. Leaving open; the export is the concrete remaining item.
Export is blocked upstream, not on quarry. zit 0.3.27's config verb has pull, import and merge and no export — there is nothing for a config.export op to shell out to, and quarry does not read the store's tables itself to fake one. Filed as danmestas/zit#210 with the expected shape (zit config export AREA [FILE], the inverse of import over the same card format). When it ships, the quarry op is a sibling of config.import and an Export button beside Import.
Leaving this open on that, with the mirror-controls half still unmeasured from an admin session.
Both halves measured on 0.1.0-beta+cdacb932f2ec. Export (landings c1aea6ed + fix 4326c4bd, zit 0.3.28 config export): GET /api/v1/r/quarry/config/export/user and /shun, and the settings Export links, download quarry-user.txt / quarry-shun.txt in fossil's format, private, no-cache; any other area 400; signed out 401 from the API, 303 to sign-in from the page. The user file holds password hashes, so only its headers and size were read. Mirror controls (landing 32d2b298): /r/sqlite/settings, looked at in a browser, has a Mirror rail entry and section: "Follows https://sqlite.org/src, every hour", "Last pull 9 minutes ago: succeeded", Pull now, an Accept local writes switch, and a line that address, interval and credentials are on the fleet page. Pressing Pull now came back to the section with "Pulled; nothing new" and "Last pull just now: succeeded". Not seen live: the fleet link a site admin gets there (the browser was authenticated with HTTP credentials, which web pages do not read as a signed-in session); covered by a template test.