mirror of
https://github.com/Dasemu/Grove.git
synced 2026-11-26 15:26:09 +00:00
feat(gui): stalled repos, runtime not-migrated rows, safer import cleanup
- daemon status reports stalled repos; GUI shows them with the backup hint - activity: repo_stalled is a warning; repo_added/removed shown - migrate rows keep their result only until the next status refresh - import removes a failed clone's directory only if it created it Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
01c4974c07
commit
b875a41b4d
8 files changed
+63
-6
No files matched your search
@@ -141,7 +141,7 @@ pub fn reconcile_outputs(outputs: &mut HashMap<String, OutRec>, states: &HashMap
|
||||
pub fn log_tone(kind: &str) -> &'static str {
|
||||
match kind {
|
||||
"error" | "watch_error" => "error",
|
||||
"state" | "snapshots_withheld" | "snapshots_purged" | "declined" => "warn",
|
||||
"state" | "snapshots_withheld" | "snapshots_purged" | "declined" | "repo_stalled" => "warn",
|
||||
_ => "ok",
|
||||
}
|
||||
}
|
||||
@@ -453,6 +453,9 @@ mod tests {
|
||||
assert_eq!(log_tone("snapshots_purged"), "warn");
|
||||
assert_eq!(log_tone("snapshots_enabled"), "ok");
|
||||
assert_eq!(log_tone("watch_error"), "error");
|
||||
assert_eq!(log_tone("repo_stalled"), "warn");
|
||||
assert_eq!(log_tone("repo_added"), "ok");
|
||||
assert_eq!(log_tone("repo_removed"), "ok");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user