v2026.5.38 — Attribution auteur + nettoyage + observabilité

ATTRIBUTION
- En-têtes copyright dans tous les fichiers source (viewer.js, viewer.html,
  viewer.css, background.js)
- @author Quentin Rouiller sur 22 fonctions clés
- Signature "Développé par Quentin Rouiller" en bas du popup user-badge
- description manifest mentionnant DGNSI

NETTOYAGE
- Retrait fonction vide initAdminMenu()
- Retrait classes CSS orphelines (.date-picker-day, .intervention v1)
- Retrait 14× console.log [viewMode] verbeux + 5× console.log [bg]
- extendBtn.onclick → addEventListener (cohérence + cleanup possible)

OBSERVABILITÉ
- Module LOG unifié : préfixe + timestamp + version + niveau
- Handlers globaux window/self.error + unhandledrejection (viewer + bg)
- Toggle "Logs verbeux (debug)" dans le panel admin (Diagnostics)
- Synchronisation viewer ↔ background via chrome.storage.onChanged
- LOG.info muet par défaut, visible quand debug ON

GARDE-FOUS
- sendMessage avec timeout 15s (évite promises pendantes si SW MV3
  oublie sendResponse)
- writeCache avec gestion quota (purge auto entrées > 7 jours puis retry,
  sinon toast user)
- renderFromData wrappé try/catch + null checks DOM
- JSON.parse [timeline] : log warn avec snippet du contenu fautif
- .catch(() => {}) swallowed remplacés par log warn (clipboard, session,
  cache)
- getManifest centralisé dans LOG.version()

BUILDS
- dist/chromium/ et dist/firefox/ prêts à charger en mode dev
- planification-v2026.5.38-chromium.zip (~152 Ko)
- planification-v2026.5.38-firefox.xpi (~152 Ko, à signer sur AMO)
This commit is contained in:
2026-04-26 01:00:00 +02:00
parent 08bf8cb5f5
commit c9363c64b6
7 changed files with 591 additions and 106 deletions
+31 -33
View File
@@ -1,3 +1,13 @@
/**
* Planification — Extension navigateur EasyVista (Canton de Vaud / DGNSI)
*
* Copyright (c) 2026 Quentin Rouiller
* Licensed under the MIT License — see LICENSE file in the project root.
*
* @author Quentin Rouiller
* @repository https://gitea.netaplaid.ch/FroSteel/Planification
*/
/* ==========================================================================
Thème clair (défaut)
========================================================================== */
@@ -368,8 +378,8 @@ html, body {
pointer-events: none;
}
/* v2026.5.17 : masquer l'ancien date-picker-day s'il traîne (compat) */
.date-picker-day { display: none; }
/* v2026.5.38 : ancienne classe .date-picker-day retirée (orpheline depuis le
nouveau picker .date-custom de la v2026.5.17). */
.btn-nav {
padding: 6px 10px;
@@ -838,10 +848,6 @@ html, body {
opacity: 0.7;
}
.intervention.highlight {
background: var(--bg-hover);
}
/* v2026.5.29 : highlight visible sur les rows .intervention-v2 quand on
survole le segment timeline correspondant (ou que l'user survole la row) */
.intervention-v2.highlight {
@@ -966,10 +972,6 @@ html, body {
to { transform: rotate(360deg); }
}
/* .intervention-v2.is-ghost : retirée en v4.3.3 — on ne barre plus les
cartes. La gestion des tickets disparus se fait via _disappearStatus
(vert ✓/✓✓) ou _disappearRemove (retrait total). */
/* Ligne 1 : REF en titre centré gros gras */
.iv-ref-header {
grid-area: ref;
@@ -1212,28 +1214,8 @@ html, body {
font-style: italic;
}
/* ──────────────────────────────────────────────────────────────────────────
Anciens styles .intervention (v1) — gardés pour ne pas casser le reste
────────────────────────────────────────────────────────────────────────── */
.intervention {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 14px 8px 10px;
border-top: 1px solid var(--border);
cursor: default;
transition: background 0.08s;
position: relative;
}
.intervention:first-child { border-top: none; }
.intervention:hover { background: var(--bg-hover); }
.intervention-dot {
flex-shrink: 0;
width: 4px;
align-self: stretch;
margin: 2px 4px 2px 0;
border-radius: 2px;
}
/* v2026.5.38 : anciens styles .intervention (layout v1) supprimés — le HTML
ne génère plus que .intervention-v2 depuis longtemps. */
/* ==========================================================================
Tooltip
@@ -2554,7 +2536,6 @@ header.topbar::before {
.app-clock-date { display: none; }
.topbar-left { flex-wrap: wrap; }
.date-nav { margin-top: 4px; }
.date-picker-day { min-width: 46px; font-size: 12px; }
.topbar-right { flex-wrap: wrap; justify-content: flex-end; }
}
@@ -4032,3 +4013,20 @@ html.view-horizontal #progress-bar {
html.view-horizontal .card-status-note.pompier {
display: none !important;
}
/* ==========================================================================
v2026.5.38 : Signature auteur en bas du popup user-badge
Style cohérent avec le footer "QRO/vX.Y.Z" en bas à droite : petit, gris
atténué, séparé par une fine ligne supérieure.
========================================================================== */
.user-name-popup-author {
margin-top: 8px;
padding-top: 8px;
border-top: 1px solid var(--border);
font-size: 11px;
color: var(--text-faint);
text-align: center;
font-style: italic;
letter-spacing: 0.2px;
user-select: none;
}