feat(frontend): filtres, création d'issues, vue Focus, CDN vendorés

- vendor: HTMX/Alpine/SortableJS servis depuis /static/vendor (M3)
- board.js: jeton CSRF, ordres source/destination envoyés, carte
  replacée + toast rouge en cas d'échec (M8), filtres texte/étiquette,
  formulaire de création d'issue
- dashboard: 3 onglets Actifs/Inactifs/Archivés, recherche via
  data-search échappé au lieu d'une interpolation JS (M9)
- board: cartes liées vers l'issue Gitea, méta CSRF, notes protégées
- nouvelles pages focus.html et error.html
- CSS: fond des badges en color-mix, l'ancien var(--accent)20 était
  invalide (M1); styles toolbar/focus/erreur/toast erreur
This commit is contained in:
Spark
2026-10-11 09:31:48 -04:00
parent d267df01fa
commit 9ae961f50f
9 changed files with 310 additions and 61 deletions
+54 -1
View File
@@ -56,7 +56,7 @@ nav { display: flex; gap: 10px; align-items: center; }
padding: 4px 12px;
border-radius: 20px;
font-size: 0.8rem;
background: var(--accent)20;
background: color-mix(in srgb, var(--accent) 15%, transparent);
color: var(--accent);
}
.badge.secondary { background: var(--surface2); color: var(--text2); }
@@ -329,6 +329,59 @@ footer {
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text2); }
/* Toast error variant */
.toast.error { background: var(--red); }
/* Board toolbar (filters + create) */
.board-toolbar {
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
padding: 12px 24px;
background: var(--surface);
border-bottom: 1px solid var(--border);
}
.board-toolbar input[type="text"],
.board-toolbar select {
padding: 9px 14px;
border-radius: 8px;
border: 1px solid var(--border);
background: var(--bg);
color: var(--text);
font-size: 0.9rem;
outline: none;
}
.board-toolbar input[type="text"]:focus,
.board-toolbar select:focus { border-color: var(--accent); }
.board-toolbar form { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.board-toolbar form input { flex: 1; }
.btn-inline { margin-top: 0; padding: 9px 18px; }
.card-id a { color: var(--text2); }
.card-id a:hover { color: var(--accent2); }
/* Focus view */
.focus-main { padding: 24px; max-width: 1100px; width: 100%; margin: 0 auto; }
.focus-intro { color: var(--text2); margin-bottom: 20px; }
.focus-empty { font-size: 1.05rem; padding: 32px 0; }
.focus-group { margin-bottom: 28px; }
.focus-group h2 { font-size: 1.05rem; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.focus-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.focus-card { margin-bottom: 0; cursor: default; }
/* Error page */
.error-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.error-box {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 32px;
max-width: 560px;
text-align: center;
}
.error-box h2 { margin-bottom: 12px; }
.error-box p { color: var(--text2); margin-bottom: 16px; line-height: 1.5; }
/* Responsive */
@media (max-width: 768px) {
.board-container { flex-direction: column; }