{% extends "base.html" %} {% block content %} {% set scheduler = status.get("scheduler") %} {% set ls = status.get("last_scan") %} {% set overview_breakdown = status.get("overview_breakdown", []) %} {% set n_ok = status.get("by_status", {}).get("ok", 0) | int %} {% set n_corrupt = status.get("by_status", {}).get("corrupt", 0) | int %} {% set n_unreadable = status.get("by_status", {}).get("unreadable", 0) | int %} {% set n_issues = n_corrupt + n_unreadable %} {% set hero_class = "is-ready" %} {% if banner.state == "Healthy" %} {% set hero_class = "is-healthy" %} {% elif banner.state == "Scan running" %} {% set hero_class = "is-running" %} {% elif banner.state == "Issues found" %} {% set hero_class = "is-warning" %} {% elif banner.state in ["Configuration needed", "Access problem suspected"] %} {% set hero_class = "is-degraded" %} {% endif %} {% set hero_title = "SemanticDog is ready to scan your library." %} {% set hero_detail = banner.detail %} {% if banner.state == "Healthy" %} {% set hero_title = "All clear. Your library is healthy." %} {% if ls and ls.get("scope") %} {% set hero_detail = "Last scan completed without issues for " ~ ls.get("scope") ~ "." %} {% else %} {% set hero_detail = "No current corruption or access issues are recorded in the indexed library." %} {% endif %} {% elif banner.state == "Issues found" %} {% set hero_title = "Library Health Warning: Data Compromised." %} {% set hero_detail = n_corrupt ~ " files are corrupted. " ~ n_unreadable ~ " files are unreadable. View details below." %} {% elif banner.state == "Scan running" %} {% set hero_title = "Scan in progress. SemanticDog is checking your library." %} {% set hero_detail = "Live progress appears below while files are being validated." %} {% elif banner.state == "Configuration needed" %} {% set hero_title = "Configuration attention needed before trusting results." %} {% elif banner.state == "Access problem suspected" %} {% set hero_title = "Library access warning. Scan roots may be unavailable." %} {% endif %}