From 9ae961f50ff0b9b24a517953c4f315389b8fc47f Mon Sep 17 00:00:00 2001 From: Spark Date: Sun, 11 Oct 2026 09:31:48 -0400 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20filtres,=20cr=C3=A9ation=20d'?= =?UTF-8?q?issues,=20vue=20Focus,=20CDN=20vendor=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- app/templates/board.html | 45 ++++++++++-- app/templates/dashboard.html | 50 ++++++------- app/templates/error.html | 24 +++++++ app/templates/focus.html | 62 +++++++++++++++++ static/css/style.css | 55 ++++++++++++++- static/js/board.js | 127 ++++++++++++++++++++++++++-------- static/vendor/alpine.min.js | 5 ++ static/vendor/htmx.min.js | 1 + static/vendor/sortable.min.js | 2 + 9 files changed, 310 insertions(+), 61 deletions(-) create mode 100644 app/templates/error.html create mode 100644 app/templates/focus.html create mode 100644 static/vendor/alpine.min.js create mode 100644 static/vendor/htmx.min.js create mode 100644 static/vendor/sortable.min.js diff --git a/app/templates/board.html b/app/templates/board.html index ce232a8..661a829 100644 --- a/app/templates/board.html +++ b/app/templates/board.html @@ -3,10 +3,11 @@ + {{ repo }} — Kanbante - - + + @@ -17,12 +18,29 @@ {{ owner }}/{{ repo }} + +
+ + +
+ + +
+
+
{% for col in ['backlog','todo','in_progress','review','done'] %} @@ -37,8 +55,14 @@
-
#{{ issue.number }}
+ data-title="{{ issue.title|lower }}" + data-labels="{{ issue.labels|map(attribute='name')|join(',')|lower }}"> +
+ #{{ issue.number }} + {% if issue.html_url %} + ↗ + {% endif %} +
{{ issue.title }}
{% if issue.labels %}
@@ -65,8 +89,10 @@