Introduces a new Campaigns module for uploading campaign presentation PDFs that QC checks reference to validate assets against campaign-specific guidelines (typography, layout, copy, pricing format). Also adds a global pricing reference system that maps country codes to currency symbols and formats for deterministic price/currency validation. - New CampaignPresentation model + campaigns blueprint with CRUD routes - PDF parsing via LlamaParse (text + multimodal page images) - Global pricing PDF parsed into structured JSON lookup - Campaign context injected into both image and video QC executors - Quality checks enhanced with campaign guidelines in LLM prompts - Price/currency check uses global pricing lookup (saves an LLM call) - Campaign dropdown added to HM QC and Video QC configure pages Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
145 lines
5.4 KiB
HTML
145 lines
5.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}HM QC Platform{% endblock %}</title>
|
|
|
|
<!-- Bootstrap 5 -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<!-- Bootstrap Icons -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css">
|
|
|
|
<!-- Unified Theme CSS -->
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/unified_theme.css') }}">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/tabs.css') }}">
|
|
|
|
{% block extra_head %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
<!-- BASE_URL for JavaScript fetch/redirect calls -->
|
|
<script>window.BASE_URL = "{{ request.script_root }}";</script>
|
|
|
|
<!-- Top Navigation Bar -->
|
|
<nav class="navbar navbar-dark hm-navbar">
|
|
<div class="container-fluid">
|
|
<!-- Brand -->
|
|
<div class="navbar-brand-wrapper">
|
|
<span class="navbar-brand mb-0 h1">
|
|
<i class="bi bi-shield-check me-2"></i>
|
|
HM QC Platform
|
|
</span>
|
|
<span class="badge bg-secondary ms-2 version-badge">v1.0</span>
|
|
</div>
|
|
|
|
<!-- User Info -->
|
|
<div class="d-flex align-items-center">
|
|
<span class="text-white me-3">
|
|
<i class="bi bi-person-circle me-1"></i>
|
|
{{ session.get('user', {}).get('name', 'User') }}
|
|
</span>
|
|
<button id="logoutBtn" class="btn btn-sm btn-outline-light">
|
|
<i class="bi bi-box-arrow-right me-1"></i>
|
|
Logout
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<!-- Tab Navigation -->
|
|
<ul class="nav nav-tabs hm-tabs" role="tablist">
|
|
<li class="nav-item" role="presentation">
|
|
<a class="nav-link {% if active_tab == 'reporting' %}active{% endif %}"
|
|
href="{{ url_for('reporting.index') }}"
|
|
data-tab="reporting"
|
|
role="tab">
|
|
<i class="bi bi-file-bar-graph me-2"></i>
|
|
Reporting
|
|
</a>
|
|
</li>
|
|
<li class="nav-item" role="presentation">
|
|
<a class="nav-link {% if active_tab == 'hm-qc' %}active{% endif %}"
|
|
href="{{ url_for('hm_qc.index') }}"
|
|
data-tab="hm-qc"
|
|
role="tab">
|
|
<i class="bi bi-file-earmark-check me-2"></i>
|
|
HM QC
|
|
</a>
|
|
</li>
|
|
<li class="nav-item" role="presentation">
|
|
<a class="nav-link {% if active_tab == 'video-qc' %}active{% endif %}"
|
|
href="{{ url_for('video_qc.index') }}"
|
|
data-tab="video-qc"
|
|
role="tab">
|
|
<i class="bi bi-play-circle me-2"></i>
|
|
Video QC
|
|
<span class="badge bg-warning text-dark ms-2 beta-badge">BETA</span>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item" role="presentation">
|
|
<a class="nav-link {% if active_tab == 'video-master' %}active{% endif %}"
|
|
href="{{ url_for('video_master.index') }}"
|
|
data-tab="video-master"
|
|
role="tab">
|
|
<i class="bi bi-camera-video me-2"></i>
|
|
Video Master Adot
|
|
<span class="badge bg-warning text-dark ms-2 beta-badge">BETA</span>
|
|
</a>
|
|
</li>
|
|
<li class="nav-item" role="presentation">
|
|
<a class="nav-link {% if active_tab == 'campaigns' %}active{% endif %}"
|
|
href="{{ url_for('campaigns.index') }}"
|
|
data-tab="campaigns"
|
|
role="tab">
|
|
<i class="bi bi-collection me-2"></i>
|
|
Campaigns
|
|
</a>
|
|
</li>
|
|
<li class="nav-item" role="presentation">
|
|
<a class="nav-link {% if active_tab == 'usage' %}active{% endif %}"
|
|
href="{{ url_for('usage.index') }}"
|
|
data-tab="usage"
|
|
role="tab">
|
|
<i class="bi bi-speedometer2 me-2"></i>
|
|
Usage
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<!-- Main Content Area -->
|
|
<div class="content-wrapper">
|
|
{% block content %}
|
|
<!-- Page content goes here -->
|
|
{% endblock %}
|
|
</div>
|
|
|
|
<!-- Footer -->
|
|
<footer class="hm-footer">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<small class="text-muted">
|
|
© 2025 H&M QC Platform
|
|
</small>
|
|
</div>
|
|
<div class="col-md-6 text-end">
|
|
<small class="text-muted">
|
|
Powered by <a href="https://www.anthropic.com" target="_blank" class="text-muted">Claude AI</a>
|
|
</small>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- Bootstrap Bundle with Popper -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
|
|
<!-- Core JavaScript -->
|
|
<script src="{{ url_for('static', filename='js/auth.js') }}"></script>
|
|
<script src="{{ url_for('static', filename='js/tabs.js') }}"></script>
|
|
<script src="{{ url_for('static', filename='js/progress.js') }}"></script>
|
|
|
|
{% block extra_scripts %}{% endblock %}
|
|
</body>
|
|
</html>
|