Clarify completed repair handoff
Magent CI/CD / verify (push) Canceled after 9m53s
Magent CI/CD / deploy-prod (push) Canceled after 0s
Magent CI/CD / deploy-beta (push) Canceled after 0s

This commit is contained in:
2026-09-01 21:22:55 +12:00
parent 3fc52f70c7
commit b6c48a0be7
2 changed files with 10 additions and 5 deletions
+6 -5
View File
@@ -558,6 +558,7 @@ def _build_repair_activity(
)
state = "complete" if jellyfin_found else "indexing"
download_step_state = "complete"
download_step_detail = f"{collector} reports the replacement file as collected and imported."
available_step_state = "complete" if jellyfin_found else "active"
elif download_visible and download_state in {"downloading", "paused", "completed", "error", "missing"}:
state = {
@@ -584,6 +585,9 @@ def _build_repair_activity(
download_step_state = "active" if download_state == "downloading" else (
"complete" if download_state == "completed" else "attention"
)
download_step_detail = str(
download.get("summary") or "Magent found the replacement download in qBittorrent."
)
available_step_state = "waiting"
else:
state = "searching"
@@ -593,6 +597,7 @@ def _build_repair_activity(
"has been selected yet. Magent will keep checking."
)
download_step_state = "waiting"
download_step_detail = "Waiting for a suitable release to be selected."
available_step_state = "waiting"
return {
@@ -615,11 +620,7 @@ def _build_repair_activity(
"id": "download",
"label": "Replacement download",
"state": download_step_state,
"detail": (
str(download.get("summary") or "Waiting for a suitable replacement release.")
if download_step_state != "waiting"
else "Waiting for a suitable release to be selected."
),
"detail": download_step_detail,
},
{
"id": "available",