Switch visualize metrics/figures to local-first with Hugging Face raw fallback, harden MetricsPanel hook usage/field handling, and refactor tests into feature-based folders with expanded API/router/data/model coverage. Add pytest config and dependency updates.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>