diff --git a/manifest.json b/manifest.json index d4cc9d2..7adf2d5 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Planification", - "version": "2026.5.26", + "version": "2026.5.27", "description": "Vue claire et rapide du planning des techniciens EasyVista. Regroupe interventions et réservations par tech, affiche horaires, contact, lieu, catégorie et statut en un coup d'œil.", "browser_specific_settings": { "gecko": { diff --git a/viewer.css b/viewer.css index cc3ae42..de2d800 100644 --- a/viewer.css +++ b/viewer.css @@ -2020,6 +2020,7 @@ body.modal-open { flex-direction: row; align-items: center; justify-content: center; + gap: 12px; line-height: 1.1; color: var(--text); pointer-events: none; @@ -2027,11 +2028,19 @@ body.modal-open { white-space: nowrap; } .app-clock-date { - font-size: 12px; - font-weight: 500; + font-size: 22px; + font-weight: 600; + color: var(--text); + letter-spacing: 0.5px; + font-variant-numeric: tabular-nums; +} +.app-clock-date::after { + content: "•"; + margin-left: 12px; color: var(--text-muted); - letter-spacing: 0.3px; - text-transform: capitalize; + font-size: 26px; + line-height: 0.8; + vertical-align: middle; } .app-clock-time { font-size: 22px; diff --git a/viewer.js b/viewer.js index 4180de9..1dbeb6a 100644 --- a/viewer.js +++ b/viewer.js @@ -4821,24 +4821,37 @@ function buildCard(tech, isoDate) { note.classList.add("absent-" + absenceCategory); } const ab = absenceBlocks[0]; - if (ab.startDate && ab.endDate && ab.startDate !== ab.endDate) { - note.textContent = `Absent du ${ab.startDate.substring(0, 5)} au ${ab.endDate.substring(0, 5)}`; + // v2026.5.27 : libellé enrichi "Absent du XX au YY — Maladie" ou "Absent — Congé" + const multiDay = ab.startDate && ab.endDate && ab.startDate !== ab.endDate; + const catLabel = absenceCategory === "maladie" ? "Maladie/Accident" + : absenceCategory === "conge" ? (multiDay ? "Congés" : "Congé") + : null; + let txt; + if (multiDay) { + txt = `Absent du ${ab.startDate.substring(0, 5)} au ${ab.endDate.substring(0, 5)}`; } else { - note.textContent = "Absent toute la journée"; + txt = "Absent toute la journée"; } + if (catLabel) txt += ` — ${catLabel}`; + note.textContent = txt; body.appendChild(note); // v5.0.4 : tooltip au hover sur toute la carte absent (pas juste un // bouton visible). Contient : détail période + bouton supprimer si // c'est une absence supprimable (actionId réel, pas pompier récurrent). + // v2026.5.33 : en vue horizontale, attacher le hover SEULEMENT au badge + // (Congé / Maladie/Accident / Absent) pour éviter que la popup s'affiche + // dès qu'on approche de la ligne du tech. En vue classique, on garde la + // carte entière comme zone de hover (comportement d'origine). if (ab.actionId && !ab.isPompier && !ab._recurring) { - // On attache le tooltip sur la CARD ENTIÈRE (card) — comme ça - // survoler n'importe où sur la zone grisée "absent" le déclenche. const ivCopy = { ...ab, - type: "AL-Absence" // force pour buildTooltipHTML + type: "AL-Absence" }; + const _isHorizontalView = () => document.documentElement.classList.contains("view-horizontal"); + // Hover sur la carte entière : actif SEULEMENT en vue classique card.addEventListener("mouseenter", (e) => { + if (_isHorizontalView()) return; // bloqué en horizontal showTooltip(e, ivCopy, card); }); card.addEventListener("mouseleave", () => {