From 9bf24da04e268feadfe4a1bb510936d269924f4b Mon Sep 17 00:00:00 2001 From: Spark Date: Sun, 11 Oct 2026 10:05:51 -0400 Subject: [PATCH] =?UTF-8?q?feat(frontend):=20panneau=20d=C3=A9tail=20de=20?= =?UTF-8?q?carte,=20badges=20d'=C3=A2ge,=20limites=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - drawer de détail: corps markdown rendu (marked + DOMPurify vendorés), commentaires, formulaire de commentaire vers Gitea; clic distingué du drag par la distance du pointeur - badges ⏳ N j au-delà du seuil d'âge (rouge au double) - en-têtes de colonnes: n/limite, classe .over en rouge, toast d'avertissement au dépôt dans une colonne saturée - page activity.html, liens Activité dans dashboard et board --- app/templates/activity.html | 52 +++++++++++++ app/templates/board.html | 34 ++++++++- app/templates/dashboard.html | 1 + static/css/style.css | 87 ++++++++++++++++++++++ static/js/board.js | 140 ++++++++++++++++++++++++++++++++++- static/vendor/marked.min.js | 6 ++ static/vendor/purify.min.js | 3 + 7 files changed, 321 insertions(+), 2 deletions(-) create mode 100644 app/templates/activity.html create mode 100644 static/vendor/marked.min.js create mode 100644 static/vendor/purify.min.js diff --git a/app/templates/activity.html b/app/templates/activity.html new file mode 100644 index 0000000..2c65af9 --- /dev/null +++ b/app/templates/activity.html @@ -0,0 +1,52 @@ + + + + + + Activité — Kanbante + + + + +
+

📋 Kanbante / 📰 Activité

+ +
+ +
+

Les {{ events|length }} derniers événements du journal — déplacements, créations, fermetures et commentaires, tous projets confondus.

+ {% if not events %} +

Aucun événement pour le moment. Le journal se remplit dès que des cartes bougent.

+ {% endif %} +
+ {% for e in events %} +
+ {{ event_icons.get(e.event_type, '•') }} +
+ {{ e.repo_full_name }} + #{{ e.issue_number }} + {% if e.event_type == 'created' %} + créée{% if e.to_column %} dans {{ column_labels.get(e.to_column, e.to_column) }}{% endif %} + {% elif e.event_type == 'moved' %} + déplacée{% if e.from_column %} de {{ column_labels.get(e.from_column, e.from_column) }}{% endif %} vers {{ column_labels.get(e.to_column, e.to_column) }} + {% elif e.event_type == 'closed' %} + fermée{% if e.source == 'gitea' %} (dans Gitea){% endif %} + {% elif e.event_type == 'reopened' %} + rouverte vers {{ column_labels.get(e.to_column, e.to_column) }} + {% elif e.event_type == 'commented' %} + commentée + {% endif %} + {{ e.created_at[:16].replace('T', ' ') }} +
+
+ {% endfor %} +
+
+ + + + diff --git a/app/templates/board.html b/app/templates/board.html index 661a829..0a552a9 100644 --- a/app/templates/board.html +++ b/app/templates/board.html @@ -8,6 +8,8 @@ + + @@ -19,6 +21,7 @@