{# Database panel — list of discovered genome (.db) databases on disk. Marks the currently active one, surfaces the top folders contributing to each genome, and (when helix is up) cross-checks against the live /admin/genome reply so a drift between "selected" and "running" is visible at a glance. Switch the active genome from the system-tray "Manage Database" submenu — the dashboard is read-only. #}

Database {% if state.database.count %} {{ state.database.count }} {% endif %}

{% if state.database.error %}
Could not read genome registry: {{ state.database.error }}
{% endif %} {% if state.database.live %}
Running
{{ state.database.live.path or "(unknown)" }} {% if state.database.live.total_genes is not none %} — {{ "{:,}".format(state.database.live.total_genes) }} genes {% endif %}
{% if state.database.live.env_override %}
Env override
HELIX_GENOME_PATH = {{ state.database.live.env_override }}
{% endif %} {% if state.database.live.error %}
Error
{{ state.database.live.error }}
{% endif %}
{% endif %}