Compare commits

...
13 Commits
Author SHA1 Message Date
bruno d2d9c10f6c Merge pull request 'Kanbante 0.45.4 : logo officiel, board clair, badge d'âge lisible' (#76) from correctifs-theme-logo-0-45-4 into main
CI / test (push) Successful in 3m55s
2026-10-30 11:27:15 -04:00
Spark 2fd974c7e4 Kanbante 0.45.4 : logo officiel, board clair, badge lisible (CHANGELOG.md)
CI / test (push) Failing after 0s
CI / test (pull_request) Successful in 4m10s
2026-10-30 11:28:31 -04:00
Spark e556cc7bc9 Kanbante 0.45.4 : version (app/config.py) 2026-10-30 11:28:31 -04:00
Spark 77f48d8c93 Kanbante 0.45.4 : tests des retours de Bruno — logo officiel, surfaces du board en clair, contrastes (tests/test_logo_et_contrastes.py) 2026-10-30 11:28:31 -04:00
Spark 8449c8ba0c Kanbante 0.45.4 : l'assertion du logo suit le logo officiel (tests/test_identite_verte.py) 2026-10-30 11:28:31 -04:00
Spark 6d9dc4b8ca Kanbante 0.45.4 : thème clair — colonnes du board et panneau Notes éclaircis, badge d'âge et compteur WIP lisibles (static/css/style.css) 2026-10-30 11:28:31 -04:00
Spark 2921d61b9d Kanbante 0.45.4 : logo officiel dans la barre latérale (app/templates/_header.html) 2026-10-30 11:28:31 -04:00
bruno 9ef1049464 Merge pull request 'Kanbante 0.45.3 : barre v0.1.11 — marque monochrome, anneau rouge de l'avatar' (#75) from barre-v0111-0-45-3 into main
CI / test (push) Failing after 0s
2026-10-29 23:09:54 -04:00
bruno 9667bf1436 Kanbante 0.45.3 : étoile Spark monochrome pour la marque
CI / test (push) Failing after 0s
CI / test (pull_request) Failing after 1s
2026-10-29 23:09:33 -04:00
bruno ba772163cc Kanbante 0.45.3 : barre v0.1.11, marque monochrome, anneau avatar (CHANGELOG.md)
CI / test (push) Failing after 1s
2026-10-29 23:09:31 -04:00
bruno 2b85fdffee Kanbante 0.45.3 : barre v0.1.11, marque monochrome, anneau avatar (app/config.py)
CI / test (push) Failing after 0s
2026-10-29 23:09:29 -04:00
bruno 5b5d32d97a Kanbante 0.45.3 : barre v0.1.11, marque monochrome, anneau avatar (static/css/draco-barre.css)
CI / test (push) Failing after 1s
2026-10-29 23:09:27 -04:00
bruno b0ef76cb76 Kanbante 0.45.3 : barre v0.1.11, marque monochrome, anneau avatar (app/templates/_draco_bar.html)
CI / test (push) Failing after 0s
2026-10-29 23:09:25 -04:00
9 changed files with 110 additions and 10 deletions
+17
View File
@@ -1,3 +1,20 @@
## 0.45.4 — 2026-10-30 — Logo officiel en barre latérale, board clair, badge d'âge lisible
Retours de Bruno (captures du 2026-10-30), trois correctifs :
- **Logo de la barre latérale** : le pictogramme « 3 barres » est remplacé par le logo officiel de Kanbante — `static/img/logos/kanbante.png`, le même que l'onglet Kanbante de la barre d'apps commune. Le conteneur `.logo-mark` devient neutre (le PNG porte son propre fond vert) ; l'assertion du test d'identité suit.
- **Board en thème clair** : les colonnes et le panneau « Notes du projet » gardaient le fond sombre codé en dur (`rgba(20, 24, 34, .72)`) — surcharges `html[data-theme="light"]` en blanc translucide (0.85), comme la barre latérale et l'en-tête. Le thème sombre est inchangé.
- **Badge d'âge illisible en clair** (page En vol, Focus) : le texte jaune pâle `#fcd34d` sur fond jaune translucide passe en ambre foncé `#b45309` en thème clair ; même famille de contraste pour l'état « très vieux » et le compteur de colonne au-delà de sa limite WIP (`#dc2626`).
- **Vérifié en navigateur réel** (styles calculés + captures relues) : colonnes blanches et badge ambre lisible en clair, aucune régression en sombre. 367 tests verts (4 nouveaux, `tests/test_logo_et_contrastes.py`).
## 0.45.3 — 2026-10-29 — Barre commune v0.1.11 : marque monochrome, anneau rouge de l'avatar
- **Barre d'apps v0.1.11 vendangée (dracodev-commons)** : `draco-barre.css` remplacé verbatim (le JS Kanbante est déjà identique à celui de commons, inchangé en v0.1.11) ; fragment `_draco_bar.html` porté à la v0.1.11, le reste de l'intégration Kanbante (URL Jinja `draco_urls` / `agent_url`, `onAction` complet y compris profil/déconnexion, compteurs) est inchangé. Les surcharges Kanbante dans `style.css` ne sont pas touchées.
- **Marque monochrome** : la marque n'est plus le logo rouge — c'est l'étoile Spark monochrome (`static/img/brand-spark.png`, étoile blanche extraite du logo rouge, fond transparent, 26 px) : blanche sur barre foncée, noire sur barre claire via le filtre du CSS vendangé (`brightness(0)` par défaut, annulé en thème sombre). L'onglet agent et son entrée de menu gardent le logo rouge.
- **Anneau rouge de l'avatar** : le bouton avatar flottant bas-centre gagne une bordure rouge `#c00000` de 3 px (règle du CSS vendangé, `var(--agent)`).
- **Thème** : aucun correctif nécessaire — la barre Kanbante suit `html[data-theme]` (sombre par défaut, bascule mémorisée `kanbante-theme`) et `prefers-color-scheme`, tous deux couverts par le CSS vendangé ; vérifié, aucune surcharge `style.css` ajoutée.
- **Cache** : le bump 0.45.2 → 0.45.3 change aussi le `?v=` des CSS/JS.
## 0.45.2 — 2026-10-29 — Barre commune v0.1.10 : rouge Spark, marque logo, avatar flottant, Alertes icône seule ## 0.45.2 — 2026-10-29 — Barre commune v0.1.10 : rouge Spark, marque logo, avatar flottant, Alertes icône seule
- **Barre d'apps v0.1.10 vendangée (dracodev-commons)** : `draco-barre.css` remplacé verbatim (le JS Kanbante est déjà identique à celui de commons v0.1.10, inchangé) ; fragment `_draco_bar.html` porté à la v0.1.10, le reste de l'intégration Kanbante (URL Jinja `draco_urls` / `agent_url`, `onAction` complet y compris profil/déconnexion, compteurs) est inchangé. Les surcharges Kanbante dans `style.css` ne sont pas touchées. - **Barre d'apps v0.1.10 vendangée (dracodev-commons)** : `draco-barre.css` remplacé verbatim (le JS Kanbante est déjà identique à celui de commons v0.1.10, inchangé) ; fragment `_draco_bar.html` porté à la v0.1.10, le reste de l'intégration Kanbante (URL Jinja `draco_urls` / `agent_url`, `onAction` complet y compris profil/déconnexion, compteurs) est inchangé. Les surcharges Kanbante dans `style.css` ne sont pas touchées.
+1 -1
View File
@@ -177,7 +177,7 @@ from urllib.parse import urlparse
BASE_DIR = Path(__file__).resolve().parent.parent BASE_DIR = Path(__file__).resolve().parent.parent
APP_VERSION = "0.45.2" APP_VERSION = "0.45.4"
def _env_bool(name: str, default: bool) -> bool: def _env_bool(name: str, default: bool) -> bool:
+11 -2
View File
@@ -19,7 +19,16 @@
Portage v0.1.10 (2026-10-29) : marque = logo Spark 26 px ; Portage v0.1.10 (2026-10-29) : marque = logo Spark 26 px ;
--agent rouge Spark #c00000 ; bouton Spark rose supprimé, --agent rouge Spark #c00000 ; bouton Spark rose supprimé,
remplacé par l'avatar flottant bas-centre (data-act="spark" remplacé par l'avatar flottant bas-centre (data-act="spark"
→ panneau Spark de l'hôte) ; Alertes = cloche seule. #} → panneau Spark de l'hôte) ; Alertes = cloche seule.
Portage v0.1.11 (2026-10-29) : marque = étoile Spark monochrome
(static/img/brand-spark.png, blanche sur barre foncée, noire
sur barre claire via le filtre du CSS vendangé) ; l'onglet
agent et son entrée de menu gardent le logo rouge ; anneau
rouge #c00000 autour de l'avatar flottant (CSS vendangé).
Thème : la barre suit html[data-theme] (sombre par défaut,
bascule mémorisée kanbante-theme) et prefers-color-scheme —
tous deux couverts par le CSS vendangé, aucune surcharge
style.css nécessaire. #}
<link rel="stylesheet" href="/static/css/draco-barre.css?v={{ version }}"> <link rel="stylesheet" href="/static/css/draco-barre.css?v={{ version }}">
<link rel="stylesheet" href="/static/css/draco-panneau.css?v={{ version }}"> <link rel="stylesheet" href="/static/css/draco-panneau.css?v={{ version }}">
<link rel="stylesheet" href="/static/css/draco-alertes.css?v={{ version }}"> <link rel="stylesheet" href="/static/css/draco-alertes.css?v={{ version }}">
@@ -28,7 +37,7 @@
<div class="draco-bar-zone draco-bar-gauche"> <div class="draco-bar-zone draco-bar-gauche">
<button type="button" class="draco-icon-btn" data-act="rail" aria-label="Barre latérale">☰</button> <button type="button" class="draco-icon-btn" data-act="rail" aria-label="Barre latérale">☰</button>
<a class="draco-brand" href="/" data-act="apps" aria-haspopup="true" aria-expanded="false" aria-label="dracodev — changer d&#39;application" title="Changer d&#39;application"> <a class="draco-brand" href="/" data-act="apps" aria-haspopup="true" aria-expanded="false" aria-label="dracodev — changer d&#39;application" title="Changer d&#39;application">
<span class="draco-brand-mark"><img src="/static/img/logos/spark.png" alt="dracodev" width="26" height="26"></span><span class="draco-brand-name">dracodev</span> <span class="draco-brand-mark"><img src="/static/img/brand-spark.png" alt="dracodev" width="26" height="26"></span><span class="draco-brand-name">dracodev</span>
</a> </a>
<nav class="draco-apptabs" aria-label="Applications"> <nav class="draco-apptabs" aria-label="Applications">
<a class="draco-apptab" data-app="obsigate" href="{{ draco_urls.obsigate }}/"> <a class="draco-apptab" data-app="obsigate" href="{{ draco_urls.obsigate }}/">
+1 -1
View File
@@ -90,7 +90,7 @@
<aside class="sidebar" id="sidebar" aria-label="Navigation principale"> <aside class="sidebar" id="sidebar" aria-label="Navigation principale">
<div class="side-head"> <div class="side-head">
<a href="/" class="side-logo" aria-label="Kanbante — accueil"> <a href="/" class="side-logo" aria-label="Kanbante — accueil">
<span class="logo-mark"><svg viewBox="0 0 24 24" fill="#fff" aria-hidden="true"><rect x="3" y="4" width="5" height="16" rx="1"/><rect x="9.5" y="4" width="5" height="10" rx="1"/><rect x="16" y="4" width="5" height="13" rx="1"/></svg></span> <span class="logo-mark"><img src="/static/img/logos/kanbante.png" alt="Kanbante" width="34" height="34"></span>
<span class="side-label gradient-text">Kanbante</span> <span class="side-label gradient-text">Kanbante</span>
</a> </a>
<button type="button" class="side-search palette-trigger" title="Recherche & commandes (Ctrl+K)" aria-label="Recherche et commandes (Ctrl+K)"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="M20 20l-4-4"/></svg></button> <button type="button" class="side-search palette-trigger" title="Recherche & commandes (Ctrl+K)" aria-label="Recherche et commandes (Ctrl+K)"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="M20 20l-4-4"/></svg></button>
+11 -2
View File
@@ -10,6 +10,8 @@
v0.1.10 : rose --agent → rouge Spark #c00000 ; marque = logo Spark ; v0.1.10 : rose --agent → rouge Spark #c00000 ; marque = logo Spark ;
bouton Spark supprimé (remplacé par l'avatar flottant bas-centre) ; bouton Spark supprimé (remplacé par l'avatar flottant bas-centre) ;
Alertes icône seule. Alertes icône seule.
v0.1.11 : marque = étoile Spark monochrome (blanche barre foncée,
noire barre claire) ; anneau rouge #c00000 autour de l'avatar flottant.
Jetons repris du prototype validé Console v7.2. Jetons repris du prototype validé Console v7.2.
Thème : clair par défaut, sombre via [data-theme="dark"] sur <html> Thème : clair par défaut, sombre via [data-theme="dark"] sur <html>
ou prefers-color-scheme si l'app intégratrice ne force rien. */ ou prefers-color-scheme si l'app intégratrice ne force rien. */
@@ -41,7 +43,14 @@
.draco-brand:hover { background: var(--surface-2); } .draco-brand:hover { background: var(--surface-2); }
.draco-brand:focus-visible { outline: 2px solid var(--agent); outline-offset: 2px; } .draco-brand:focus-visible { outline: 2px solid var(--agent); outline-offset: 2px; }
.draco-brand-mark { line-height: 0; } .draco-brand-mark { line-height: 0; }
.draco-brand-mark img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; display: block; } /* Marque monochrome v0.1.11 : étoile blanche extraite du logo rouge,
fond transparent — noire sur barre claire (filtre), blanche sur
barre foncée (filtre annulé par les règles thème ci-dessous). */
.draco-brand-mark img { width: 26px; height: 26px; object-fit: cover; display: block; filter: brightness(0); }
@media (prefers-color-scheme: dark) {
.draco-bar .draco-brand-mark img { filter: none; }
}
[data-theme="dark"] .draco-bar .draco-brand-mark img { filter: none; }
/* Menu des applications — construit par le JS depuis les onglets */ /* Menu des applications — construit par le JS depuis les onglets */
.draco-apps-menu { .draco-apps-menu {
@@ -156,7 +165,7 @@
border-radius: 50%; background: transparent; cursor: pointer; border-radius: 50%; background: transparent; cursor: pointer;
box-shadow: 0 8px 28px rgb(0 0 0 / .45); box-shadow: 0 8px 28px rgb(0 0 0 / .45);
} }
.draco-spark-flottant img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; } .draco-spark-flottant img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; box-sizing: border-box; border: 3px solid var(--agent); }
.draco-spark-flottant:hover { transform: translateX(-50%) scale(1.05); } .draco-spark-flottant:hover { transform: translateX(-50%) scale(1.05); }
.draco-spark-flottant:focus-visible { outline: 2px solid var(--agent); outline-offset: 3px; } .draco-spark-flottant:focus-visible { outline: 2px solid var(--agent); outline-offset: 3px; }
+18 -2
View File
@@ -136,7 +136,9 @@ button, input, select, textarea { font: inherit; }
width: 34px; width: 34px;
height: 34px; height: 34px;
border-radius: 10px; border-radius: 10px;
background: linear-gradient(135deg, var(--accent), var(--accent-2)); /* Le logo officiel (kanbante.png, le même que la barre
d'apps commune) porte son propre fond : conteneur neutre. */
background: transparent;
box-shadow: var(--shadow-sm); box-shadow: var(--shadow-sm);
font-size: 1rem; font-size: 1rem;
} }
@@ -1394,7 +1396,7 @@ body.nav-closed-admin [data-group="admin"] .side-chevron { transform: rotate(-90
} }
.side-ico { font-size: 1.05rem; width: 22px; text-align: center; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; } .side-ico { font-size: 1.05rem; width: 22px; text-align: center; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.side-ico svg { width: 20px; height: 20px; display: block; } .side-ico svg { width: 20px; height: 20px; display: block; }
.logo-mark svg { width: 20px; height: 20px; display: block; } .logo-mark img { width: 34px; height: 34px; display: block; border-radius: 10px; }
.side-search svg { width: 19px; height: 19px; display: block; } .side-search svg { width: 19px; height: 19px; display: block; }
/* Bouton thème dans la section Administration (#55) : même /* Bouton thème dans la section Administration (#55) : même
gabarit qu'un lien de navigation, mais c'est un <button>. */ gabarit qu'un lien de navigation, mais c'est un <button>. */
@@ -1980,3 +1982,17 @@ html[data-theme="light"] .draco-bar {
sombres par défaut — ils suivent html[data-theme]. */ sombres par défaut — ils suivent html[data-theme]. */
html[data-theme="light"] .wall-body { background: #f2f2f0; color: #1b1d1a; } html[data-theme="light"] .wall-body { background: #f2f2f0; color: #1b1d1a; }
html[data-theme="light"] .login-body { background: #f2f2f0; } html[data-theme="light"] .login-body { background: #f2f2f0; }
/* Thème clair (retour de Bruno, 2026-10-30) : le board gardait
ses colonnes et son panneau Notes sur le fond sombre codé en
dur (rgba(20,24,34,.72)) — surfaces claires, comme la barre
latérale et l'en-tête. */
html[data-theme="light"] .kanban-column { background: rgba(255, 255, 255, 0.85); }
html[data-theme="light"] .notes-panel { background: rgba(255, 255, 255, 0.85); }
/* Badge d'âge des cartes (En vol, Focus) : le jaune pâle
#fcd34d sur fond jaune translucide était illisible en clair —
ambre et rouge foncés, contraste vérifié. Même famille :
le compteur de colonne au-delà de sa limite WIP. */
html[data-theme="light"] .age-badge { color: #b45309; }
html[data-theme="light"] .age-badge.stale { color: #dc2626; }
html[data-theme="light"] .column-count.over { color: #dc2626; }
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

+4 -2
View File
@@ -16,8 +16,10 @@ def test_sidebar_charbon_et_accent_vert(client, fake_gitea):
def test_nav_icons_sont_des_svg(client, fake_gitea): def test_nav_icons_sont_des_svg(client, fake_gitea):
page = client.get("/") page = client.get("/")
assert 'class="side-ico"><svg' in page.text assert 'class="side-ico"><svg' in page.text
# Le logo Kanbante est aussi un SVG (colonnes blanches). # Le logo de la barre latérale est le logo officiel
assert 'class="logo-mark"><svg' in page.text # (kanbante.png, celui de la barre d'apps commune) —
# remplacement demandé par Bruno le 2026-10-30.
assert 'class="logo-mark"><img src="/static/img/logos/kanbante.png"' in page.text
def test_theme_toggle_dans_admin_pas_dans_en_tete(client, fake_gitea): def test_theme_toggle_dans_admin_pas_dans_en_tete(client, fake_gitea):
+47
View File
@@ -0,0 +1,47 @@
"""Retours de Bruno (2026-10-30) : logo de la barre latérale,
board en thème clair, badge d'âge illisible en clair.
1. La barre latérale montrait un pictogramme « 3 barres » ;
le logo doit être celui de la barre d'apps commune
(static/img/logos/kanbante.png).
2. En thème clair, les colonnes du board et le panneau Notes
gardaient le fond sombre codé en dur rgba(20,24,34,.72).
3. Le badge d'âge (En vol, Focus) : texte jaune pâle sur
fond jaune translucide — illisible en thème clair.
"""
def test_sidebar_logo_officiel(client, fake_gitea):
page = client.get("/")
assert 'src="/static/img/logos/kanbante.png"' in page.text
# L'ancien pictogramme à barres blanches a disparu.
assert '<rect x="3" y="4" width="5" height="16"' not in page.text
def test_logo_officiel_servi(client, fake_gitea):
r = client.get("/static/img/logos/kanbante.png")
assert r.status_code == 200
assert r.content[:4] == b"\x89PNG"
def test_board_clair_surfaces_eclaircies(client, fake_gitea):
css = client.get("/static/css/style.css").text
assert (
'html[data-theme="light"] .kanban-column '
'{ background: rgba(255, 255, 255, 0.85); }'
) in css
assert (
'html[data-theme="light"] .notes-panel '
'{ background: rgba(255, 255, 255, 0.85); }'
) in css
def test_badge_age_lisible_en_clair(client, fake_gitea):
css = client.get("/static/css/style.css").text
assert 'html[data-theme="light"] .age-badge { color: #b45309; }' in css
assert (
'html[data-theme="light"] .age-badge.stale { color: #dc2626; }'
) in css
assert (
'html[data-theme="light"] .column-count.over { color: #dc2626; }'
) in css