feat(gui): migrate clones from the GUI; diagnostics log and tray restart

- Migrate / Migrate all with confirmation, sequential runs, per-repo results
- bridge: allow 'add' only for dirs directly under a group
- log panics, exit reasons and daemon/tray events to <state>/grove-gui.log
- restart the tray service if its D-Bus connection ends

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5.5 committed 2026-11-16 18:15:36 +01:00
1 parent 28e07aab56
commit ec6a3a04f3
10 files changed
+528 -25

No files matched your search

+7 -2
View File
@@ -515,9 +515,14 @@ mirror_to = ["gitea"]
#[test]
fn provider_protocol_defaults_to_https_and_is_validated() {
let t = |p: &str| {
format!("[machine]\nname=\"a\"\n[root]\npath=\"/x\"\n[providers.p]\nkind=\"gitea\"\n{p}")
format!(
"[machine]\nname=\"a\"\n[root]\npath=\"/x\"\n[providers.p]\nkind=\"gitea\"\n{p}"
)
};
assert_eq!(Config::parse(&t("")).unwrap().providers["p"].protocol, Protocol::Https);
assert_eq!(
Config::parse(&t("")).unwrap().providers["p"].protocol,
Protocol::Https
);
let c = Config::parse(&t("protocol=\"ssh\"\n")).unwrap();
assert_eq!(c.providers["p"].protocol, Protocol::Ssh);
assert!(toml::to_string(&c).unwrap().contains("protocol = \"ssh\""));