{% extends "base.html" %} {% block title %}Architecture Advisor - FaultRay{% endblock %} {% block page_title %}Architecture Advisor{% endblock %} {% block page_subtitle %}AI-powered infrastructure redesign recommendations{% endblock %} {% block head %} {% endblock %} {% set active_page = "advisor" %} {% block top_actions %}
{% endblock %} {% block content %} {% if report %}

Current Assessment

{% set score_class = 'score-good' if report.current_nines >= report.target_nines else ('score-warn' if report.current_nines >= report.target_nines - 1.0 else 'score-bad') %}
{{ report.current_score }} / 100
{{ report.current_nines }} nines
Target: {{ report.target_nines }} nines

{{ report.current_assessment }}

Gap Analysis

{{ report.gap_analysis }}

{% if report.architecture_patterns_recommended %}

Recommended Patterns

{% for pattern in report.architecture_patterns_recommended %} {{ pattern[0].replace('_', ' ').title() }} {% endfor %}
{% endif %}
{% if report.anti_patterns_detected %}

Anti-Patterns Detected

{% for name, desc in report.anti_patterns_detected %}
{{ name }}
{{ desc }}
{% endfor %}
{% endif %} {% if report.quick_wins %}

Quick Wins

{% for win in report.quick_wins %}
{{ win.description }} {{ win.effort }} {{ win.estimated_cost }} +{{ win.resilience_impact }}
{% endfor %}
{% endif %} {% if report.proposals %}

Architecture Proposals

{% for proposal in report.proposals %}
{{ proposal.name }}
{{ proposal.description }}
{{ proposal.current_score }} → {{ proposal.projected_score }}
+{{ (proposal.projected_score - proposal.current_score)|round(1) }} points
Effort: {{ proposal.total_effort }} Cost: {{ proposal.estimated_monthly_cost }} Changes: {{ proposal.changes|length }}
{% if proposal.patterns_applied %}
{% for p in proposal.patterns_applied %} {{ p.replace('_', ' ').title() }} {% endfor %}
{% endif %}
{% if proposal.changes %} {% for change in proposal.changes %} {% endfor %}
Type Component Description Impact Effort Cost
{{ change.change_type }} {{ change.component_id or '-' }} {{ change.description }} +{{ change.resilience_impact }} {{ change.effort }} {{ change.estimated_cost }}
{% endif %} {% if proposal.trade_offs %}

Trade-offs

{% endif %} {% if proposal.prerequisites %}

Prerequisites

{% endif %}
{% endfor %} {% endif %} {% if report.mermaid_diagram %}

Proposed Architecture Diagram

{{ report.mermaid_diagram }}
        
{% endif %} {% else %}

No Infrastructure Loaded

Load infrastructure data to get architecture recommendations.

Load Demo Infrastructure
{% endif %} {% endblock %} {% block scripts %} {% endblock %}