feat: dashboard web FastAPI Sprint 4
Ajout d'un dashboard lecture seule par-dessus la DB SQLite existante.
Fichiers créés :
- tickettracker/web/queries.py : 7 fonctions SQL (stats, compare, historique...)
- tickettracker/web/api.py : router /api/* JSON (FastAPI)
- tickettracker/web/app.py : routes HTML + Jinja2 + point d'entrée uvicorn
- tickettracker/web/templates/ : base.html, index.html, compare.html, product.html, receipt.html
- tickettracker/web/static/style.css : personnalisations Pico CSS
- tests/test_web.py : 19 tests (96 passent, 1 xfail OCR)
Fichiers modifiés :
- requirements.txt : +fastapi, uvicorn[standard], jinja2, python-multipart, httpx
- config.py : +DB_PATH (lu depuis TICKETTRACKER_DB_PATH)
Lancement : python -m tickettracker.web.app
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-24 20:04:55 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="fr" data-theme="light">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
<title>{% block title %}TicketTracker{% endblock %}</title>
|
|
|
|
|
<!-- Pico CSS : framework CSS minimaliste sans JavaScript -->
|
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css">
|
|
|
|
|
<!-- Chart.js : graphiques -->
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js@4/dist/chart.umd.min.js"></script>
|
|
|
|
|
<!-- Style personnalisé -->
|
|
|
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<header class="container">
|
|
|
|
|
<nav>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><strong>🛒 TicketTracker</strong></li>
|
|
|
|
|
</ul>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><a href="/">Accueil</a></li>
|
|
|
|
|
<li><a href="/compare">Comparer</a></li>
|
2026-02-25 18:02:48 +01:00
|
|
|
<li><a href="/matches">Correspondances</a></li>
|
feat: dashboard web FastAPI Sprint 4
Ajout d'un dashboard lecture seule par-dessus la DB SQLite existante.
Fichiers créés :
- tickettracker/web/queries.py : 7 fonctions SQL (stats, compare, historique...)
- tickettracker/web/api.py : router /api/* JSON (FastAPI)
- tickettracker/web/app.py : routes HTML + Jinja2 + point d'entrée uvicorn
- tickettracker/web/templates/ : base.html, index.html, compare.html, product.html, receipt.html
- tickettracker/web/static/style.css : personnalisations Pico CSS
- tests/test_web.py : 19 tests (96 passent, 1 xfail OCR)
Fichiers modifiés :
- requirements.txt : +fastapi, uvicorn[standard], jinja2, python-multipart, httpx
- config.py : +DB_PATH (lu depuis TICKETTRACKER_DB_PATH)
Lancement : python -m tickettracker.web.app
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-24 20:04:55 +01:00
|
|
|
<li><a href="/api/docs" target="_blank">API docs</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</nav>
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<main class="container">
|
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
<footer class="container">
|
|
|
|
|
<small>TicketTracker — dashboard lecture seule</small>
|
|
|
|
|
</footer>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|