{% extends "base.html" %} {# CUI // SP-CTI #} {% block title %}{{ app_name }} — AI Pattern Library{% endblock %} {% block content %}
{% if patterns %} {% for p in patterns %}
{% if p.category == 'document_qa' %}📄 {% elif p.category == 'procurement' %}🏛️ {% elif p.category == 'threat_triage' %}🛡️ {% elif p.category == 'compliance_evidence' %}✅ {% else %}⚙️{% endif %}
{{ p.complexity|title }} {% if p.is_builtin %} Built-in {% endif %}

{{ p.name }}

{{ p.description }}

{% if p.use_case_tags %}
{% set tags = p.use_case_tags if p.use_case_tags is iterable and p.use_case_tags is not string else [] %} {% for tag in tags[:4] %} {{ tag }} {% endfor %}
{% endif %}
{% endfor %} {% else %}
🧩

No patterns found

Built-in patterns will appear here after the migration runs.

{% endif %}
{% endblock %} {% block styles %} {% endblock %} {% block scripts %} {% endblock %}