Commit Graph
2 Commits
Author SHA1 Message Date
yetone d26c5b14df gui tests: github-sync wheels to the first row's Edit and the form's Turn on, which WebKit never scrolls to (#1130)
magpie moves the page only for the reader (scrollOnPurpose), so in WebKit
the click on a row scrolled out of the window found it "outside of the
viewport" and timed out: 8 of 15 WebKit cases failed on the PR as
submitted. The test now wheels back up before Edit and down to the bar
before the refusal case's Turn on.

Run: github-sync in WebKit 15/15 (8 red before), and with the other sync,
i18n and language tests in Chromium and WebKit 72/72.
2026-10-13 15:25:11 +08:00
bingqilinweimaotai 1af326806f sync: magpie's setup syncs to an encrypted file in a GitHub repository, beside WebDAV and S3 (#1130)
A third sync kind: github://owner/repo[/folder] keeps the same sealed
backup WebDAV and S3 keep, as <folder>/magpie/magpie.magpie-backup in a
repository the user already has, written through GitHub's Contents API
with a fine-grained token of its own (Contents read and write), kept in
sync.json apart from the library's GitHub token. The token goes only to
api.github.com: a redirect anywhere else is refused, and the passphrase
may not equal it. Each update is a commit; an empty repository is
initialised by the first backup. Settings › Sync gets a GitHub kind with
Repository, Branch, Folder and token; magpie github mirrors magpie s3.
Inactive servers of every kind are kept in Config.Servers (Other stays
for older clients).

Squashed from yetone/magpie#1130 at 6b5b1c693e1a3a23e177b4d376f3f7f70f3bc23d
onto main. Merge resolutions: the CLI moved to internal/cli since the PR
was cut, so github_cli_test.go moved there (package cli) and the github
command, its help line and `magpie help github` were wired in
internal/cli/main.go and help_cli.go; README's Sync row kept main's
links and took the PR's wording; i18n.js zh-TW kept both sides.
2026-10-13 15:25:06 +08:00