{% extends "ewoooc_base.html" %} {% block title %}PPT 視覺 QA 產線{% endblock %} {% block extra_css %} {% endblock %} {% block ewooo_content %} {% import "admin/_observability_labels.html" as obs_label %}
PPT 視覺 QA 產線 · {{ report_month }} · {{ selected_report_type.label }}

{{ operator_summary.headline }}

先確認簡報可預覽、可審核,再把問題交給修復流程。

{% if operator_summary.blocker_text %}

{{ operator_summary.blocker_text }}

{% endif %}
{{ operator_summary.primary_action }} 定期產出矩陣 {% if operator_summary.latest_deck.name %} 預覽最新 {% endif %}
{% for signal in operator_summary.signals %}
{{ signal.label }}
{{ signal.value }} {{ signal.meta }}
{% endfor %}
{% if not vision_status.ready %}
視覺 QA 尚未就緒
先補齊視覺 QA 執行條件,再判斷簡報品質。 {{ vision_status.summary }}
{% for check in vision_status.readiness_checks %}
{{ check.label }} {{ check.value }} {{ check.detail }}
{% endfor %}
{{ vision_status.ready_count }}/{{ vision_status.check_count }} 通過 {% for action in vision_status.next_actions %} {{ action }} {% endfor %} {% if vision_status.blockers %} 阻擋:{{ vision_status.blockers|join(';') }} {% endif %}
{% endif %} {% if error %}
{{ error }}
{% endif %}
修復流程
{% if aider_heal_active_count %}修復流程執行中 · {{ aider_heal_active_count }}{% else %}修復流程待命{% endif %} {% if aider_heal_active_count %}修復完成後回報處理結果。{% else %}有問題的審核紀錄可直接派工。{% endif %}
{% for job in aider_heal_active_jobs[:3] %}
{{ job.pptx_filename or 'manual' }} {{ job.queued_at }} {{ job.diagnosis }}
{% endfor %}
視覺檢查
{{ vision_audit_status.status_label }} {{ vision_audit_status.message }}
執行環境 {{ vision_status.status_label }} 預覽與審核服務可用狀態
{% if vision_audit_status.last_run %}
{{ vision_audit_status.last_run.finished_at or vision_audit_status.last_run.started_at or vision_audit_status.last_run.queued_at }} {{ vision_audit_status.last_run.summary.audited_count }} 份 / {{ vision_audit_status.last_run.summary.total_issues }} 問題 {% if vision_audit_status.last_run.summary.error_count %}執行錯誤 {{ vision_audit_status.last_run.summary.error_count }}{% else %}無執行錯誤{% endif %}
{% else %}
尚無紀錄 待命 啟動後會顯示待處理簡報與問題數。
{% endif %}
上個月 {{ report_month }} {% if show_next_month %} 下個月 {% else %} {% endif %}
{% for opt in report_type_options %} {{ opt.label }} {% endfor %}
Preview Workbench

最近可預覽簡報

最新 {{ files[:4]|length }} 份,可線上預覽或下載簡報檔 {% if pipeline_view.uncached_preview_count > 0 %} {% endif %}
{% if files %}
{% for f in files[:4] %}
{{ selected_report_type.label }} {{ f.mtime }}

{{ f.name }}

{{ f.size_kb if f.size_kb is not none else '—' }} KB {{ f.source }} {% if f.file_exists and f.is_valid_ppt %}可預覽{% else %}需回補{% endif %} {% if f.file_exists and f.is_valid_ppt %} {% if f.preview_cache_ready %}PDF 快取{% else %}首次轉檔{% endif %} {% endif %}
{% if f.file_exists and f.is_valid_ppt %} 線上預覽 {% if not f.preview_cache_ready %} {% endif %} {% endif %} {% if f.file_exists %} 下載 {% endif %}
{% endfor %}
{% else %}
目前沒有符合 {{ report_month }} / {{ selected_report_type.label }} 的簡報檔案;可先切換報表類型,或在下方補齊定義簡報。
{% endif %}
產線健康度

{{ pipeline_view.title }}

{{ pipeline_view.message }}

{{ pipeline_view.ready_count }}/{{ pipeline_view.total_count }} 定義覆蓋 {{ pipeline_view.valid_preview_count }} 份可預覽 {{ pipeline_view.cached_preview_count }} 份 PDF 快取 {{ pipeline_view.audit_total }} 筆視覺 QA
{% for stage in pipeline_view.stages %}
{{ stage.label }}
{{ stage.value }} {{ stage.meta }}

{{ stage.detail }}

{% endfor %}
工作隊列

接下來要處理的事

把缺漏、預覽、視覺 QA 與產出紀錄集中成工作隊列
{% for lane in pipeline_view.action_lanes %}
{{ lane.label }} {{ lane.count }}
{% for item in lane.entries %}
{{ item.title }} {{ item.meta }}

{{ item.detail }}

{{ item.status_label }} {% if item.filename and lane.key in ['preview', 'records', 'triage', 'audit'] %} 預覽 {% endif %} {% if item.can_regenerate %} {% endif %}
{% else %}
{{ lane.empty_text }}
{% endfor %}
{% endfor %}
{% if issue_items %}
視覺問題

視覺問題追蹤

{{ issue_digest.total }} 問題 {{ issue_digest.files }} 檔案 {{ issue_digest.error_count }} 高優先 {{ issue_digest.latest_audit or '—' }} 最近審核
{% for issue in issue_items[:8] %}
{{ issue.slide_label }} {{ issue.category }}
{{ issue.pptx_filename }}

{{ issue.text }}

{{ issue.audited_at }} 回放
{% if issue.report_type %}
{% endif %}
{% endfor %}
{% endif %}
產線控制台

簡報產線控制台

{% for cadence in auto_generation.cadences %}
{{ cadence.label }} {{ cadence.schedule_text }}
{{ cadence.status_label }} {{ cadence.coverage_text }}

{{ cadence.description }}

{% if cadence.missing_count > 0 %} 待補:{{ cadence.missing_report_labels[:3]|join('、') }}{% if cadence.missing_report_labels|length > 3 %} 等 {{ cadence.missing_report_labels|length }} 類{% endif %} {% else %} {{ cadence.status_hint }} {% endif %}
{% endfor %}
定義簡報 {{ auto_generation.ready_count }}/{{ auto_generation.total }} 目前缺漏 {{ auto_generation.missing_count }} 類
產出紀錄 {{ generation_runs|length }} 本月最近寫入
線上預覽 PDF PPTX 轉檔快取
報表覆蓋矩陣 紀錄 / 預覽 / 視覺 QA / 交付
{% for item in auto_generation_items %}
{{ item.label }} {{ item.target_label or '最新資料' }}{% if item.latest_file_mtime %} · {{ item.latest_file_mtime }}{% endif %} {% if item.latest_file_name %} {{ item.latest_file_name }} {% else %} {{ item.status_hint }} {% endif %} {% if item.audit_summary %} {{ item.audit_summary[:90] }} {% endif %}
{{ item.db_label }} {{ item.preview_label }} {{ item.qa_label }} {{ item.delivery_label }}
{% if item.can_preview %} 預覽 {% endif %} {% if item.can_prewarm %} {% endif %} {% if item.can_regenerate and item.delivery_status in ['missing', 'error', 'partial'] %} {% endif %}
{% endfor %}
{% if auto_generation.enabled %} {{ auto_generation.cadence_summary }} 會定期產出並保存紀錄;目前缺漏 {{ auto_generation.missing_count }} 類。視覺 QA 可立即補跑,或等待每日 22:00 排程。 {% else %} PPT_AUTO_GENERATION_ENABLED=false,已停用自動補齊。 {% endif %}
產出紀錄

最近產出

產出檔案、參數、狀態會同步保留供追蹤
{% if generation_runs %}
{% for run in generation_runs %}
{{ run.schedule_label }} {{ run.report_label }} {{ run.target_label or '最新資料' }} {{ run.status_label }} {{ run.started_at }}{% if run.finished_at %} → {{ run.finished_at }}{% endif %} {% if run.file_name %} 預覽 {% endif %}
{% endfor %}
{% else %}
本月尚無產出紀錄;先補排程或手動產出,再進行視覺 QA。
{% endif %}
審核歷史

視覺審核歷史({{ report_month }})

{% for r in audit_records %} {% else %} {% endfor %}
時間檔名結果問題信心耗時診斷摘要動作
{{ r.audited_at }} {{ r.pptx_filename }} {% if r.audit_status == 'passed' %}通過 {% elif r.audit_status == 'failed' %}有問題 {% elif r.audit_status == 'error' %}錯誤 {% elif r.audit_status == 'skipped' %}跳過 {% else %}{{ r.audit_status }}{% endif %} {{ r.issues_count }} {{ "%.2f"|format(r.confidence) }} {{ r.duration_ms }} {{ (r.issue_summary or r.error_msg or '')[:180] }} {% if r.pptx_filename %} 回放 {% endif %} {% if r.audit_status in ('failed','error') %} {% if r.report_type %} {% endif %} {% endif %}
目前無 {{ selected_report_type.label }} 審核歷史;可按「立即視覺 QA」補跑,或等待每日 22:00 排程。
已產檔案

{{ report_month }} {{ selected_report_type.label }}

{% for f in files %} {% else %} {% endfor %}
檔名KB修改時間狀態操作
{{ f.name }} {{ f.size_kb if f.size_kb is not none else '—' }} {{ f.mtime }} {% if f.source == 'database' %} {% if f.file_exists %} {% if f.is_valid_ppt %} 產出紀錄 + 檔案可預覽 {% else %} 產出紀錄 + 檔案損毀,建議重跑 {% endif %} {% else %} 產出紀錄(檔案未落盤) {% endif %} {% elif f.source == 'both' %} {% if f.is_valid_ppt %} 檔案 + 產出紀錄 {% else %} 檔案 + 產出紀錄,檔案損毀 {% endif %} {% else %} {% if f.is_valid_ppt %} 22:00 掃描落盤,可預覽 {% else %} 22:00 掃描落盤,檔案損毀 {% endif %} {% endif %} {% if f.file_error %}
{{ f.file_error }}
{% endif %} {% if f.file_exists and f.is_valid_ppt %}
{% if f.preview_cache_ready %} PDF 預覽快取已建立{% if f.preview_cache_mtime %} · {{ f.preview_cache_mtime }}{% endif %} {% else %} PDF 預覽尚未快取,首次開啟會自動轉檔 {% endif %}
{% endif %}
{% if f.file_exists %} {% if f.is_valid_ppt %} 線上預覽 {% if not f.preview_cache_ready %} {% endif %} {% else %} 檔案不可預覽 {% endif %} 下載 {% else %} 本機暫無檔案,請先至來源回補 {% endif %}
本月無 {{ selected_report_type.label }} 簡報
{% if rag_fixes %}
修復建議

相似修法建議

{% for fix in rag_fixes %}
{{ fix.pptx_filename }}{{ fix.audited_at }}
{{ fix.error_msg }}
    {% for h in fix.hits %}
  • {{ obs_label.insight(h.insight_type) }} 相似度 {{ "%.2f"|format(h.similarity) }}{{ h.content }}{% if h.content|length >= 200 %}…{% endif %}
  • {% endfor %}
{% endfor %}
{% endif %} {% if not vision_enabled %}
先補視覺 QA 條件
{% elif files|length == 0 %}
本月無資料
{% endif %}

AI 視覺 QA 產線

{% endblock %}