forked from FroSteel/Planification
v2026.5.40 — Sélection groupe EV + édition domaines + tri équipe + vue horizontale enrichie
Onglet Équipe : - Sélecteur de groupe EasyVista (SI-CSS, SI-EXT, …) en tête de section, détecté automatiquement à l'ouverture du panel via le <select id="plan_group_id"> de la page Planning EV. Robuste aux ajouts/renommages côté EV. - ID groupe affiché en italique (ex: ID groupe : 191). - Refresh auto de la liste d'équipe au changement de groupe. - Plus de bouton 'Détecter' : tout est auto à l'ouverture. - Tri double : inclus d'abord, puis exclus, alphabétique dans chaque sous-groupe. Onglet EasyVista : - Édition manuelle des deux domaines (interne DGNSI / externe Internet). - Bouton Réinitialiser, normalisation auto des URLs. - Les défauts restent codés en dur en fallback. Onglet Statuts retiré (placeholder lecture seule). Vue horizontale enrichie : - Barre couleur catégorie + référence + ville sur chaque segment. - Hauteur 22→32px. Coulisses : - Nouveau message 'detectGroups' + fonction detectGroupsFromEV() côté background.js. - detectTeamFromEV() accepte un groupId en argument. - Le fetch du planning continue d'utiliser group_id=191 codé en dur, branchement effectif dans une prochaine version.
This commit is contained in:
@@ -9,6 +9,65 @@
|
||||
|
||||
---
|
||||
|
||||
## v2026.5.40 — Sélection groupe EV + édition domaines + tri équipe + vue horizontale enrichie
|
||||
**Branche** : main
|
||||
|
||||
### Onglet Équipe (panel admin)
|
||||
- Nouveau **sélecteur de groupe EasyVista** (SI-CSS, SI-EXT, …) en
|
||||
tête de section, détecté automatiquement à l'ouverture du panel
|
||||
via le `<select id="plan_group_id">` de la page Planning EV →
|
||||
source autoritative, robuste aux ajouts/renommages côté EV (un
|
||||
nouveau groupe apparaît tout seul).
|
||||
- ID groupe affiché en italique à côté du sélecteur (ex:
|
||||
`ID groupe : 191`).
|
||||
- Quand on change de groupe, la **liste d'équipe se rafraîchit
|
||||
automatiquement** avec les membres du nouveau groupe (fetch live).
|
||||
- **Plus de bouton "Détecter"** : tout est auto à l'ouverture de
|
||||
l'onglet — détection groupes + détection membres.
|
||||
- **Tri double** des techniciens : d'abord les inclus (cases cochées),
|
||||
puis les exclus, et alphabétique dans chaque sous-groupe (insensible
|
||||
casse/accents). Le tri se rafraîchit uniquement aux render() pour
|
||||
éviter que les lignes sautent quand on coche/décoche.
|
||||
|
||||
### Onglet EasyVista (panel admin)
|
||||
- Refonte complète : **édition manuelle des deux domaines** EV
|
||||
(interne DGNSI = `https://itsma.etat-de-vaud.ch`, externe Internet =
|
||||
`https://itsma.vd.ch`).
|
||||
- Bouton **💾 Enregistrer** (normalise : ajoute `https://`, retire le
|
||||
trailing slash) + bouton **↺ Réinitialiser** pour revenir aux
|
||||
valeurs par défaut.
|
||||
- Les domaines par défaut restent codés en dur en fallback ; le
|
||||
branchement effectif côté `background.js` (utiliser `cfg.evOrigins`)
|
||||
sera fait dans une prochaine version après validation.
|
||||
|
||||
### Onglet Statuts retiré
|
||||
- Section "Statuts" supprimée du panel admin (placeholder lecture
|
||||
seule, jamais utile).
|
||||
|
||||
### Vue horizontale enrichie
|
||||
- Chaque segment timeline d'intervention contient désormais :
|
||||
- Une **barre verticale couleur catégorie** à gauche (mêmes teintes
|
||||
que les `intervention-dot` de la vue classique : livraison/recup/
|
||||
remplacement/incident/rollout/réservation/autre).
|
||||
- La **référence** (ex: `SYYMMDD_NNNNN`) en gras.
|
||||
- La **ville** en gris muted.
|
||||
- Hauteur de la timeline horizontale passée de 22px à 32px pour
|
||||
laisser la place au texte.
|
||||
- Fond des segments d'intervention : `--bg-elevated` neutre + bordure
|
||||
1px pour que le texte reste lisible (la couleur catégorie n'est
|
||||
plus en fond plein, juste en barre gauche).
|
||||
- Vue classique inchangée.
|
||||
|
||||
### Coulisses (`background.js`)
|
||||
- Nouveau message `detectGroups` + fonction `detectGroupsFromEV()`
|
||||
qui fetche `/index.php?eventName=HelpDesk_PlanningItem` et extrait
|
||||
les paires `(id, nom)` via le `<select>`.
|
||||
- `detectTeamFromEV()` accepte désormais un `groupId` en argument →
|
||||
permet de basculer entre SI-CSS / SI-EXT depuis l'admin.
|
||||
- ⚠ Le fetch du planning continue d'utiliser `group_id=191` codé en
|
||||
dur — sera retiré quand on validera que `cfg.groupId` est bien
|
||||
alimenté par le sélecteur en terrain réel.
|
||||
|
||||
## v2026.5.39 — Séparation Matin / Après-midi + Apparence (thème, zoom, cache)
|
||||
**Branche** : current
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ Extension Chrome / Firefox pour visualiser de manière claire et rapide le plann
|
||||
- **Auteur** : Quentin Rouiller (QRO)
|
||||
- **Cible** : techniciens DGNSI (Canton de Vaud), EasyVista (`itsma.etat-de-vaud.ch` / `itsma.vd.ch`)
|
||||
- **Démarrage projet** : jeudi 16 avril 2026
|
||||
- **Version actuelle** : `v2026.5.37`
|
||||
- **Version actuelle** : `v2026.5.40`
|
||||
- **Manifest** : V3 (Chrome/Edge/Firefox)
|
||||
- **Format** : `.zip` (Chromium) + `.xpi` signé (Firefox)
|
||||
|
||||
@@ -83,7 +83,27 @@ Le numéro de **majeure** n'est **pas** un mois et **pas** un chiffre lié au ca
|
||||
|
||||
## Versions notables
|
||||
|
||||
### `v2026.5.37` (latest, 25 avril 2026) — Refonte vue horizontale
|
||||
### `v2026.5.40` (latest, 27 avril 2026) — Sélection groupe EV + édition domaines + tri équipe + vue horizontale enrichie
|
||||
- **Onglet Équipe** : sélecteur de groupe EasyVista (SI-CSS, SI-EXT, …) en tête de section, détecté automatiquement via le `<select id="plan_group_id">` de la page Planning EV. Robuste aux ajouts/renommages côté EV.
|
||||
- ID groupe affiché en italique (ex: `ID groupe : 191`).
|
||||
- Refresh auto de la liste d'équipe au changement de groupe.
|
||||
- Plus de bouton "Détecter" (tout est auto à l'ouverture).
|
||||
- Tri double : inclus d'abord, puis exclus, alphabétique dans chaque sous-groupe.
|
||||
- **Onglet EasyVista** : édition manuelle des deux domaines (interne / externe), bouton Réinitialiser, normalisation auto des URLs.
|
||||
- **Onglet Statuts retiré** (placeholder lecture seule).
|
||||
- **Vue horizontale enrichie** : barre verticale couleur catégorie, référence en gras, ville en gris muted, hauteur 22→32px.
|
||||
- Coulisses : nouveau message `detectGroups`, fonction `detectGroupsFromEV()` côté `background.js`. `detectTeamFromEV()` accepte un groupId en argument.
|
||||
|
||||
### `v2026.5.39` — Séparation Matin / Après-midi + Apparence
|
||||
- Pills "MATIN" / "APRÈS-MIDI" entre les interventions
|
||||
- Section Apparence (thème, taille du texte, cache, heures de la journée)
|
||||
- Section À propos (version, auteur, licence)
|
||||
|
||||
### `v2026.5.38` — Attribution auteur + nettoyage + observabilité
|
||||
- Module `LOG` unifié + handlers globaux d'erreur
|
||||
- Toggle "Logs verbeux (debug)" dans le panel admin
|
||||
|
||||
### `v2026.5.37` — Refonte vue horizontale
|
||||
- Topbar supprimée en vue horizontale, tout passe en sidebar
|
||||
- User-badge + titre + bouton "Aujourd'hui" + date/heure + sélecteur + flèches + stats dans sidebar
|
||||
- Banderole pompier masquée (badge + barre rouge gauche conservés)
|
||||
|
||||
+133
-14
@@ -587,17 +587,26 @@ function watchReconnectTabForIamLogin(tabId) {
|
||||
*/
|
||||
async function fetchCurrentUser(origin, phpsessid) {
|
||||
const url = `${origin}/index.php?PHPSESSID=${encodeURIComponent(phpsessid)}`;
|
||||
const resp = await fetch(url, {
|
||||
// v2026.5.40 : on passe par evFetch() qui ajoute les headers Referer +
|
||||
// X-Requested-With attendus par EV. Sans ça, /index.php renvoyait une
|
||||
// page intermédiaire SSO sans le bloc .profile-info → user_null perpétuel.
|
||||
const resp = await evFetch(url, origin, {
|
||||
method: "GET",
|
||||
credentials: "include",
|
||||
headers: { "Accept": "text/html,*/*" }
|
||||
});
|
||||
// v4.2 : cette fonction est lancée en tâche de fond au démarrage. Si la
|
||||
// session est expirée ou EV inaccessible, on retourne juste null — le
|
||||
// planning lui-même déclenchera l'écran d'erreur approprié.
|
||||
if (!resp.ok) return null;
|
||||
if (!resp.ok) {
|
||||
LOG.warn("currentUser", "fetch /index.php non-OK", { status: resp.status });
|
||||
return null;
|
||||
}
|
||||
const html = await resp.text();
|
||||
if (looksLikeLoginPage(html)) return null;
|
||||
if (looksLikeLoginPage(html)) {
|
||||
LOG.warn("currentUser", "page de login detectee — session probablement intermediaire SSO");
|
||||
return null;
|
||||
}
|
||||
LOG.info("currentUser", "HTML index.php recu", { taille: html.length, hasProfileInfo: /class=["']profile-info["']/.test(html) });
|
||||
|
||||
// v4.2.2 : patterns spécifiques à la structure EasyVista réelle du Canton
|
||||
// de Vaud (identifiés à partir du HTML de la page d'accueil). L'user est
|
||||
@@ -669,7 +678,18 @@ async function fetchCurrentUser(origin, phpsessid) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!name && !login && !service) return null;
|
||||
if (!name && !login && !service) {
|
||||
// v2026.5.40 : log diagnostic pour comprendre pourquoi l'extraction echoue
|
||||
LOG.warn("currentUser", "aucun nom/service/login extrait du HTML",
|
||||
{
|
||||
taille: html.length,
|
||||
hasH5: /class=["']h5["']/.test(html),
|
||||
hasProfileInfo: /class=["']profile-info["']/.test(html),
|
||||
hasEvDropdown: /class=["'][^"']*ev-employee-dropdown/.test(html),
|
||||
snippet: html.substring(0, 200).replace(/\s+/g, " ")
|
||||
});
|
||||
return null;
|
||||
}
|
||||
return { name, login, service };
|
||||
}
|
||||
|
||||
@@ -925,9 +945,80 @@ async function deletePlanningItem(origin, phpsessid, actionId, kind) {
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// v5.0.0 : Détection de la liste des techniciens depuis la page planning EV
|
||||
// v2026.5.41 : Détection des GROUPES EasyVista (SI-CSS, SI-EXT, …)
|
||||
// ============================================================================
|
||||
|
||||
/**
|
||||
* Fetch le HTML de la page planning et extrait la liste des groupes depuis
|
||||
* `<select id="plan_group_id">`. C'est la source autoritative : ce sont les
|
||||
* `group_id` exacts qu'EasyVista lui-même utilise pour le widget de
|
||||
* changement de groupe sur la page planning. Robuste aux ajouts/renommages :
|
||||
* si le DGNSI ajoute un 3e groupe ou renomme SI-CSS, ça apparaît tout seul.
|
||||
*
|
||||
* Retourne { groups: [{id, name}, ...] }. Liste vide si le fetch échoue ou
|
||||
* si EV renvoie une page de login / redirection JS.
|
||||
*
|
||||
* @author Quentin Rouiller
|
||||
*/
|
||||
async function detectGroupsFromEV(origin, phpsessid) {
|
||||
const url = `${origin}/index.php?eventName=HelpDesk_PlanningItem&PHPSESSID=${encodeURIComponent(phpsessid)}`;
|
||||
console.log("[bg] detectGroupsFromEV → fetch page planning");
|
||||
console.log("[bg] URL =", url);
|
||||
|
||||
const r = await evFetch(url, origin);
|
||||
if (!r.ok) {
|
||||
const err = new Error("HTTP " + r.status);
|
||||
err.kind = classifyHttpStatus(r.status);
|
||||
err.status = r.status;
|
||||
throw err;
|
||||
}
|
||||
const html = await r.text();
|
||||
console.log("[bg] page planning taille =", html.length);
|
||||
|
||||
if (looksLikeLoginPage(html)) {
|
||||
const err = new Error("session_expired");
|
||||
err.kind = "session_expired";
|
||||
throw err;
|
||||
}
|
||||
|
||||
// Parser le <select id="plan_group_id">…</select> et ses <option>.
|
||||
// On accepte plan_group_id avant ou après le name=, et on tolère les
|
||||
// attributs supplémentaires (onchange, class, etc.).
|
||||
const groups = [];
|
||||
const selectMatch = html.match(/<select[^>]*\bid=["']plan_group_id["'][^>]*>([\s\S]*?)<\/select>/i);
|
||||
if (selectMatch) {
|
||||
const inner = selectMatch[1];
|
||||
const rxOpt = /<option[^>]*\bvalue=["'](\d+)["'][^>]*>([^<]+)<\/option>/gi;
|
||||
let m;
|
||||
while ((m = rxOpt.exec(inner)) !== null) {
|
||||
const id = m[1];
|
||||
const name = (m[2] || "").trim();
|
||||
if (id && name && !groups.some(g => g.id === id)) {
|
||||
groups.push({ id, name });
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log("[bg] " + groups.length + " groupes détectés :", groups);
|
||||
|
||||
// Fallback : si le <select> est absent (rendu côté client tardif), on
|
||||
// tente de lire les favoris menuGlobals.tech4 où les noms sont en base64.
|
||||
// Ces favoris listent les filtres "SI-CSS"/"SI-EXT" — utile si le HTML
|
||||
// initial ne contient pas encore le <select>.
|
||||
if (groups.length === 0) {
|
||||
const rxFav = /"TITLE"\s*:\s*"([^"]+)"[\s\S]{0,400}?"q2_value_selected"\s*:\s*"([A-Za-z0-9+/=]+)"/g;
|
||||
let mF;
|
||||
while ((mF = rxFav.exec(html)) !== null) {
|
||||
const title = mF[1];
|
||||
// On n'a pas l'ID dans les favoris : on garde au moins le nom pour
|
||||
// affichage info, mais sans ID ce groupe n'est pas sélectionnable
|
||||
// pour fetcher le planning. On ignore donc côté retour.
|
||||
console.log("[bg] fallback favoris : " + title + " (sans ID, ignoré)");
|
||||
}
|
||||
}
|
||||
|
||||
return { groups };
|
||||
}
|
||||
|
||||
/**
|
||||
* v5.0.1 : Détection de la liste complète des membres du groupe EasyVista.
|
||||
*
|
||||
@@ -942,14 +1033,19 @@ async function deletePlanningItem(origin, phpsessid, actionId, kind) {
|
||||
*
|
||||
* Retourne { ids: [{id, name, alreadyInTeam}], groupId }.
|
||||
*/
|
||||
async function detectTeamFromEV(origin, phpsessid) {
|
||||
async function detectTeamFromEV(origin, phpsessid, groupIdArg, supportIdsArg) {
|
||||
// v5.0.1 : valeurs par défaut (correspondent au groupe actuel).
|
||||
// À terme elles devraient venir de la config admin.
|
||||
// v2026.5.41 : on accepte un groupId en argument (ex: switch SI-CSS → SI-EXT).
|
||||
// Quand on change de groupe, on n'a pas la liste support_ids du nouveau
|
||||
// groupe → on passe une chaîne vide, le serveur retourne quand même tous
|
||||
// les membres, juste sans pré-cochage "alreadyInTeam".
|
||||
const DEFAULT_GROUP_ID = "191";
|
||||
const DEFAULT_SUPPORT_IDS = "76272,83725,66635,92235,90070,40944,72485,86874";
|
||||
|
||||
const groupId = DEFAULT_GROUP_ID;
|
||||
const supportIds = DEFAULT_SUPPORT_IDS;
|
||||
const groupId = groupIdArg || DEFAULT_GROUP_ID;
|
||||
const supportIds = (typeof supportIdsArg === "string")
|
||||
? supportIdsArg
|
||||
: (groupId === DEFAULT_GROUP_ID ? DEFAULT_SUPPORT_IDS : "");
|
||||
console.log("[bg] detectTeamFromEV : group_id =", groupId, "| support_ids =", supportIds);
|
||||
|
||||
// Fetch la popup de sélection des intervenants du groupe
|
||||
@@ -1228,16 +1324,39 @@ chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (msg.type === "detectTeam") {
|
||||
// v5.0.0 : détecte la liste des IDs de techniciens depuis le HTML
|
||||
// v5.0.1 : retourne aussi les noms via la popup group_supports
|
||||
if (msg.type === "detectGroups") {
|
||||
// v2026.5.41 : détecte la liste des groupes EV (SI-CSS, SI-EXT, …)
|
||||
// depuis le <select id="plan_group_id"> de la page planning.
|
||||
const session = await findEasyVistaSession();
|
||||
if (!session) {
|
||||
sendResponse({ ok: false, error: "no_session" });
|
||||
return;
|
||||
}
|
||||
try {
|
||||
const result = await detectTeamFromEV(session.origin, session.phpsessid);
|
||||
const result = await detectGroupsFromEV(session.origin, session.phpsessid);
|
||||
sendResponse({ ok: true, groups: result.groups });
|
||||
} catch (err) {
|
||||
sendResponse({
|
||||
ok: false,
|
||||
error: err.kind || err.message || String(err)
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (msg.type === "detectTeam") {
|
||||
// v5.0.0 : détecte la liste des IDs de techniciens depuis le HTML
|
||||
// v5.0.1 : retourne aussi les noms via la popup group_supports
|
||||
// v2026.5.41 : accepte msg.groupId pour basculer entre SI-CSS / SI-EXT
|
||||
const session = await findEasyVistaSession();
|
||||
if (!session) {
|
||||
sendResponse({ ok: false, error: "no_session" });
|
||||
return;
|
||||
}
|
||||
try {
|
||||
const result = await detectTeamFromEV(
|
||||
session.origin, session.phpsessid, msg.groupId, msg.supportIds
|
||||
);
|
||||
// result = { ids: [{id,name,alreadyInTeam}, ...], groupId }
|
||||
sendResponse({ ok: true, members: result.ids, groupId: result.groupId });
|
||||
} catch (err) {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Planification",
|
||||
"version": "2026.5.39",
|
||||
"version": "2026.5.40",
|
||||
"description": "Vue claire et rapide du planning des techniciens EasyVista. Développé par Quentin Rouiller — DGNSI, Canton de Vaud.",
|
||||
"permissions": [
|
||||
"activeTab",
|
||||
|
||||
+463
-24
@@ -1358,6 +1358,29 @@ html.view-horizontal .timeline-noon {
|
||||
.tt-ref-val {
|
||||
font-family: var(--mono, monospace);
|
||||
}
|
||||
/* v2026.5.40 r18 : référence cliquable → ouvre la fiche EV. Style "lien"
|
||||
immédiatement reconnaissable : couleur accent, soulignée, cursor pointer. */
|
||||
.tt-ref-link {
|
||||
font-family: var(--mono, monospace);
|
||||
color: var(--accent);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
cursor: pointer;
|
||||
font-weight: 600;
|
||||
transition: color 0.1s, text-shadow 0.1s;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.tt-ref-link:hover {
|
||||
color: var(--accent);
|
||||
text-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
|
||||
}
|
||||
.tt-ref-link::after {
|
||||
content: " ↗";
|
||||
font-family: inherit;
|
||||
font-size: 0.85em;
|
||||
opacity: 0.7;
|
||||
margin-left: 2px;
|
||||
}
|
||||
.tt-copy-btn {
|
||||
background: transparent;
|
||||
border: 1px solid var(--border);
|
||||
@@ -2835,7 +2858,10 @@ header.topbar::before {
|
||||
========================================================================== */
|
||||
.session-slide-alert {
|
||||
position: fixed;
|
||||
top: 60px;
|
||||
/* v2026.5.40 r12 : on positionne l'alerte SOUS les initiales (badge user)
|
||||
pour ne pas chevaucher l'horloge centrale. La topbar fait ~48px donc
|
||||
top: 56px laisse 8px de respiration sous le badge. */
|
||||
top: 56px;
|
||||
left: -420px; /* hors écran au départ */
|
||||
width: 380px;
|
||||
max-width: calc(100vw - 40px);
|
||||
@@ -2849,10 +2875,17 @@ header.topbar::before {
|
||||
transition: left 0.28s ease-out, opacity 0.28s;
|
||||
opacity: 0;
|
||||
}
|
||||
/* v2026.5.40 r12 : alignée avec le bord gauche de la topbar (à hauteur
|
||||
des initiales — left: 14px = padding gauche de la topbar). */
|
||||
.session-slide-alert.visible {
|
||||
left: 20px;
|
||||
left: 14px;
|
||||
opacity: 1;
|
||||
}
|
||||
/* En vue horizontale, l'alerte vient sous le badge user dans la sidebar
|
||||
gauche, donc on laisse left: 14px aussi (la sidebar a son propre padding). */
|
||||
html.view-horizontal .session-slide-alert.visible {
|
||||
left: 14px;
|
||||
}
|
||||
.session-slide-alert.urgent {
|
||||
border-left-color: #ef4444;
|
||||
animation: session-pulse 1.4s ease-in-out infinite;
|
||||
@@ -3329,10 +3362,14 @@ html.theme-dark .card.absence-cat-conge {
|
||||
réduisait la largeur depuis le côté droit — désormais ils restent à leur
|
||||
taille créée et sont simplement repositionnés dans la safe area.
|
||||
========================================================================== */
|
||||
/* v2026.5.40 r17 : on retire le `!important` sur width pour permettre à
|
||||
pinTooltip d'imposer la même largeur que le tooltip live au moment du
|
||||
clic (via style.width inline). 520px reste la valeur par défaut si le
|
||||
JS ne définit rien. */
|
||||
.pinned-popup:not(.pinned-popup-minimized):not(.pinned-popup-reduced) {
|
||||
max-width: none !important;
|
||||
width: 520px !important; /* largeur standard fixe */
|
||||
min-width: 380px;
|
||||
width: 520px; /* défaut, peut être override par pinTooltip */
|
||||
min-width: 320px;
|
||||
}
|
||||
/* Sur les très petits écrans (< 600px), on laisse le clamp naturel */
|
||||
@media (max-width: 600px) {
|
||||
@@ -3513,34 +3550,51 @@ html.view-horizontal .card {
|
||||
}
|
||||
|
||||
/* Header devient une barre latérale gauche fixe */
|
||||
/* v2026.5.35 : réduit à 140px (au lieu de 200px) pour donner plus de place à la timeline */
|
||||
/* v2026.5.40 r15 : 180px pour loger "Maladie/Accident" en entier sans
|
||||
tronquer (libellé le plus long parmi tous les badges). */
|
||||
html.view-horizontal .card-header {
|
||||
flex-direction: column !important;
|
||||
align-items: flex-start !important;
|
||||
justify-content: center !important;
|
||||
min-width: 140px !important;
|
||||
max-width: 140px !important;
|
||||
min-width: 180px !important;
|
||||
max-width: 180px !important;
|
||||
border-bottom: none !important;
|
||||
border-right: 1px solid var(--border) !important;
|
||||
padding: 6px 10px !important;
|
||||
gap: 3px !important;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
/* v2026.5.40 r8 : nom du tech complet (jusqu'à 3 lignes). Si vraiment
|
||||
trop long, .card-tech-name-tight est appliqué dynamiquement par le JS
|
||||
pour réduire légèrement la font-size (12px → 11.5px). */
|
||||
html.view-horizontal .card-tech-name {
|
||||
font-size: 13px !important;
|
||||
font-size: calc(13px * var(--text-scale)) !important;
|
||||
font-weight: 600;
|
||||
line-height: 1.2 !important;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
max-width: 100%;
|
||||
word-break: break-word;
|
||||
hyphens: auto;
|
||||
}
|
||||
html.view-horizontal .card-tech-name.card-tech-name-tight {
|
||||
font-size: calc(11.5px * var(--text-scale)) !important;
|
||||
letter-spacing: -0.1px;
|
||||
}
|
||||
/* v2026.5.40 r16 : badge tech compact, sidebar 180px. Le texte est décalé
|
||||
un peu vers la gauche via padding-right > padding-left (effet visuel
|
||||
demandé). */
|
||||
html.view-horizontal .card-tech-badge {
|
||||
font-size: 10px !important;
|
||||
padding: 2px 6px !important;
|
||||
font-size: calc(8.5px * var(--text-scale)) !important;
|
||||
padding: 2px 14px 2px 4px !important;
|
||||
line-height: 1.3 !important;
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
align-self: flex-start;
|
||||
max-width: 100%;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
/* Le body prend le reste de la ligne, scroll horizontal si trop d'interv */
|
||||
@@ -3559,7 +3613,18 @@ html.view-horizontal .timeline {
|
||||
border-bottom: none !important;
|
||||
}
|
||||
html.view-horizontal .timeline-bar {
|
||||
height: 22px !important;
|
||||
height: 10px !important; /* v2026.5.40 r4 : timeline très fine */
|
||||
}
|
||||
/* Timeline elle-même : padding réduit pour gagner de la hauteur */
|
||||
html.view-horizontal .timeline {
|
||||
padding: 4px 14px 2px 14px !important;
|
||||
}
|
||||
/* Échelle d'heures plus compacte */
|
||||
html.view-horizontal .timeline-scale {
|
||||
height: 11px !important;
|
||||
}
|
||||
html.view-horizontal .timeline-tick {
|
||||
font-size: calc(10px * var(--text-scale)) !important;
|
||||
}
|
||||
|
||||
/* Liste interventions en mode "chips" (défilement horizontal) */
|
||||
@@ -3584,17 +3649,22 @@ html.view-horizontal .card-header::after {
|
||||
}
|
||||
html.view-horizontal .tech-row-stats {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
font-size: 11px;
|
||||
flex-wrap: wrap; /* libellés complets → permet wrap */
|
||||
gap: 4px;
|
||||
font-size: calc(11px * var(--text-scale));
|
||||
color: var(--text-muted);
|
||||
margin-top: 2px;
|
||||
margin-top: 4px;
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
html.view-horizontal .tech-row-stats .stat-pill {
|
||||
padding: 1px 6px;
|
||||
padding: 2px 8px;
|
||||
background: var(--bg-muted);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 3px;
|
||||
border-radius: 10px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-size: calc(10.5px * var(--text-scale));
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* En vue classique, on cache les éléments spécifiques horizontal */
|
||||
@@ -3767,9 +3837,26 @@ html.view-horizontal .horizontal-sidebar #stats .global-stat b {
|
||||
html.view-horizontal .horizontal-sidebar #stats .global-stat-main b {
|
||||
font-size: 15px !important;
|
||||
}
|
||||
/* v2026.5.40 r19 : en sidebar horizontale, on cache tous les séparateurs
|
||||
sauf le `+` (classe .global-stat-sep-keep) qui s'affiche en bloc CENTRÉ
|
||||
entre "tech. dispo" et "pompier". */
|
||||
html.view-horizontal .horizontal-sidebar #stats .global-stat-sep {
|
||||
display: none !important;
|
||||
}
|
||||
html.view-horizontal .horizontal-sidebar #stats .global-stat-sep.global-stat-sep-keep {
|
||||
display: block !important;
|
||||
width: 100% !important;
|
||||
text-align: center !important;
|
||||
color: var(--text-faint);
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
padding: 0;
|
||||
/* Compenser le gap parent (#stats a gap: 4px) pour que le `+` soit serré
|
||||
entre "tech. dispo" et "pompier" — pas d'espace artificiel autour. */
|
||||
margin: -3px auto -3px auto;
|
||||
line-height: 1;
|
||||
align-self: center;
|
||||
}
|
||||
html.view-horizontal .horizontal-sidebar #stats .global-stat-sub {
|
||||
display: block !important;
|
||||
font-size: 10px;
|
||||
@@ -3827,8 +3914,8 @@ html.view-horizontal main .stats {
|
||||
font-size: 11px;
|
||||
}
|
||||
html.view-horizontal .card-header {
|
||||
min-width: 110px !important;
|
||||
max-width: 110px !important;
|
||||
min-width: 160px !important; /* v2026.5.40 r15 : un peu plus serré sur petit écran */
|
||||
max-width: 160px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4079,10 +4166,18 @@ html.view-horizontal #progress-bar {
|
||||
}
|
||||
}
|
||||
|
||||
/* 14. Banderole "En pompier du..." : masquée en vue horizontale uniquement
|
||||
(la barre rouge à gauche et le badge POMPIER restent visibles). */
|
||||
/* v2026.5.40 r17 : banderole "En pompier du..." en vue HORIZONTALE
|
||||
uniquement — pleine largeur, hauteur modérée (2 fois plus que r14d),
|
||||
texte centré. */
|
||||
html.view-horizontal .card-status-note.pompier {
|
||||
display: none !important;
|
||||
padding: 4px 14px !important;
|
||||
text-align: center !important;
|
||||
line-height: 1.3 !important;
|
||||
font-size: calc(11.5px * var(--text-scale)) !important;
|
||||
margin: 0 !important;
|
||||
border-radius: 0 !important;
|
||||
width: auto !important;
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
@@ -4375,3 +4470,347 @@ html.view-horizontal .day-period-sep {
|
||||
line-height: 1.55;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
v2026.5.40 : segments timeline enrichis (vue horizontale uniquement)
|
||||
- Barre verticale couleur catégorie à gauche (comme les cards classique)
|
||||
- Référence + ville lisibles dans le segment (si assez large)
|
||||
- Cachés en vue classique (pas la place dans une timeline 20px de haut)
|
||||
========================================================================== */
|
||||
|
||||
/* (retiré v2026.5.40 r3 : le contenu enrichi est maintenant dans
|
||||
.iv-mini-cards en-dessous de la timeline) */
|
||||
.timeline-slot-content { display: none; }
|
||||
|
||||
/* v2026.5.40 r3 : la timeline reste comme la vue classique (segments colorés
|
||||
compacts). Les infos détaillées sont dans .iv-mini-cards juste en-dessous. */
|
||||
|
||||
/* ==========================================================================
|
||||
v2026.5.40 r3 : mini-cartes d'intervention sous la timeline (vue horizontale
|
||||
uniquement). Chaque carte contient ref / heure / ville / adresse, alignée
|
||||
sur l'ordre temporel des interventions. Largeur proportionnelle à la durée
|
||||
(flex-grow), avec min-width pour rester lisible. Trous représentés par des
|
||||
espaces vides qui préservent l'alignement avec la timeline du dessus.
|
||||
========================================================================== */
|
||||
|
||||
/* Par défaut (vue classique) : caché */
|
||||
.iv-mini-cards { display: none; }
|
||||
|
||||
/* En vue horizontale : flex row qui prend toute la largeur — toutes les
|
||||
mini-cartes équidistantes. Si vraiment trop d'interv pour la largeur
|
||||
(rare), elles se compriment via flex-shrink. */
|
||||
html.view-horizontal .iv-mini-cards {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: stretch;
|
||||
width: 100%;
|
||||
gap: 3px;
|
||||
padding: 2px 14px 4px 14px;
|
||||
background: transparent;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Carte mini d'intervention : v2026.5.40 r5 — toutes les cartes ont la
|
||||
MÊME largeur (flex: 1 1 0) pour qu'on puisse les voir toutes d'un coup
|
||||
sans scroll. La position temporelle est donnée par la timeline au-dessus. */
|
||||
.iv-mini-card {
|
||||
flex: 1 1 0;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: stretch;
|
||||
min-width: 0; /* permet au flex de bien rétrécir */
|
||||
background: var(--bg-elevated);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
transition: background 0.1s, border-color 0.1s, box-shadow 0.1s;
|
||||
}
|
||||
.iv-mini-card:hover {
|
||||
background: var(--bg-hover);
|
||||
border-color: var(--border-strong);
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
.iv-mini-card.highlight {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: -1px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
/* Barre verticale couleur catégorie à gauche de chaque carte (4 px) */
|
||||
.iv-mini-card-bar {
|
||||
flex: 0 0 4px;
|
||||
background: var(--c-autre);
|
||||
}
|
||||
.iv-mini-card.color-livraison .iv-mini-card-bar { background: var(--c-livraison); }
|
||||
.iv-mini-card.color-installation .iv-mini-card-bar { background: var(--c-installation); }
|
||||
.iv-mini-card.color-recup .iv-mini-card-bar { background: var(--c-recup); }
|
||||
.iv-mini-card.color-remplacement .iv-mini-card-bar { background: var(--c-remplacement); }
|
||||
.iv-mini-card.color-incident .iv-mini-card-bar { background: var(--c-incident); }
|
||||
.iv-mini-card.color-rollout .iv-mini-card-bar { background: var(--c-rollout); }
|
||||
.iv-mini-card.color-reservation .iv-mini-card-bar { background: var(--c-reservation); }
|
||||
.iv-mini-card.color-autre .iv-mini-card-bar { background: var(--c-autre); }
|
||||
|
||||
/* v2026.5.40 r7 : bloc heure VERTICAL (09:00 / ↓ / 10:00) */
|
||||
.iv-mini-time-vertical {
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0;
|
||||
padding: 4px 6px;
|
||||
border-right: 1px solid var(--border);
|
||||
font-variant-numeric: tabular-nums;
|
||||
min-width: 44px;
|
||||
}
|
||||
.iv-mini-time-start,
|
||||
.iv-mini-time-end {
|
||||
font-size: calc(11px * var(--text-scale));
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
line-height: 1.1;
|
||||
}
|
||||
.iv-mini-time-arrow {
|
||||
font-size: calc(9px * var(--text-scale));
|
||||
color: var(--text-faint);
|
||||
line-height: 1;
|
||||
margin: 1px 0;
|
||||
}
|
||||
|
||||
/* Bloc texte (3 lignes) à droite — v2026.5.40 r7 : centré horizontalement */
|
||||
.iv-mini-card-text {
|
||||
flex: 1 1 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center; /* centre les lignes horizontalement */
|
||||
gap: 1px;
|
||||
padding: 4px 8px;
|
||||
min-width: 0;
|
||||
text-align: center;
|
||||
}
|
||||
.iv-mini-line {
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
line-height: 1.2;
|
||||
text-align: center;
|
||||
}
|
||||
.iv-mini-ref {
|
||||
font-weight: 700;
|
||||
font-size: calc(11px * var(--text-scale));
|
||||
color: var(--text);
|
||||
letter-spacing: 0.2px;
|
||||
}
|
||||
.iv-mini-ville {
|
||||
font-size: calc(10.5px * var(--text-scale));
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
.iv-mini-adresse {
|
||||
font-size: calc(10px * var(--text-scale));
|
||||
font-style: italic;
|
||||
color: var(--text-faint);
|
||||
}
|
||||
|
||||
/* ==========================================================================
|
||||
v2026.5.40 r4 : compactage vertical des lignes tech en vue horizontale
|
||||
- Card globale : pas de padding inutile en haut/bas
|
||||
- Body : padding nul, gap minimal
|
||||
- Card-stats (X interv. matin/apm) cachées (info redondante avec mini-cards)
|
||||
========================================================================== */
|
||||
html.view-horizontal .card {
|
||||
margin-bottom: 6px !important;
|
||||
border-radius: 6px;
|
||||
}
|
||||
html.view-horizontal .card-body {
|
||||
padding: 0 !important;
|
||||
gap: 0 !important;
|
||||
}
|
||||
/* v2026.5.40 r6 : la card-stats du bas est CACHÉE en horizontal — l'info est
|
||||
désormais dans les pills (.tech-row-stats) du header tech, libellés complets. */
|
||||
html.view-horizontal .card-body > .card-stats {
|
||||
display: none !important;
|
||||
}
|
||||
/* Header tech plus compact (centrage vertical, hauteur auto) */
|
||||
html.view-horizontal .card-header {
|
||||
padding: 4px 10px !important;
|
||||
}
|
||||
|
||||
/* v2026.5.40 r7 : chiffre du nombre d'interventions mis en évidence dans
|
||||
la pill du header tech (ex: "4 interventions" → le 4 plus gros). */
|
||||
html.view-horizontal .tech-row-stats .stat-pill .stat-pill-big-num {
|
||||
font-size: calc(15px * var(--text-scale));
|
||||
font-weight: 800;
|
||||
color: var(--text);
|
||||
margin-right: 2px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
html.view-horizontal .tech-row-stats .stat-pill {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
/* v2026.5.40 r8 : en vue horizontale, le dock des popups épinglés réduits
|
||||
commence APRÈS la sidebar (200px). Sinon les pills étaient cachées sous
|
||||
la sidebar fixe à gauche. */
|
||||
html.view-horizontal .pinned-popups-dock {
|
||||
left: 200px !important;
|
||||
}
|
||||
@media (max-width: 1400px) {
|
||||
html.view-horizontal .pinned-popups-dock {
|
||||
left: 170px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* v2026.5.40 r9 : 2 blocs MATIN / APRÈS-MIDI côte à côte. Chaque bloc a
|
||||
son label en haut + ses mini-cards en dessous. Séparation visuelle
|
||||
entre les 2 blocs via un gap plus large + bordure gauche sur l'après-midi. */
|
||||
.iv-mini-block {
|
||||
flex: 1 1 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
gap: 2px;
|
||||
}
|
||||
.iv-mini-block.period-afternoon {
|
||||
border-left: 2px solid var(--border-strong);
|
||||
padding-left: 8px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
.iv-mini-block-label {
|
||||
font-size: calc(10px * var(--text-scale));
|
||||
font-weight: 700;
|
||||
letter-spacing: 1px;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-muted);
|
||||
text-align: center;
|
||||
padding: 1px 0;
|
||||
}
|
||||
.iv-mini-block-cards {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 3px;
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
}
|
||||
.iv-mini-block-cards .iv-mini-card {
|
||||
flex: 1 1 0;
|
||||
}
|
||||
|
||||
/* v2026.5.40 r18 : ordre fixe des boutons en vue classique topbar-right.
|
||||
Absence → Douchette → Actualiser → Tout recharger → Vider cache → Thème */
|
||||
html.view-classic .topbar-right #absence-btn { order: 1; }
|
||||
html.view-classic .topbar-right #douchette-btn { order: 2; }
|
||||
html.view-classic .topbar-right #refresh-partial-btn { order: 3; }
|
||||
html.view-classic .topbar-right #refresh-btn { order: 4; }
|
||||
html.view-classic .topbar-right #abort-btn { order: 4; }
|
||||
html.view-classic .topbar-right #clear-cache-btn { order: 5; }
|
||||
html.view-classic .topbar-right #theme-toggle { order: 6; }
|
||||
|
||||
/* ==========================================================================
|
||||
v2026.5.40 r18 : refonte visuelle onglet Équipe — plus moderne, cohérent
|
||||
avec le reste du panel admin (Apparence, À propos).
|
||||
========================================================================== */
|
||||
.admin-team-table {
|
||||
background: var(--bg-elevated);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
margin-top: 14px;
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
.admin-team-table th {
|
||||
background: var(--bg-muted) !important;
|
||||
border-bottom: 1px solid var(--border-strong) !important;
|
||||
font-size: 11.5px !important;
|
||||
letter-spacing: 0.6px !important;
|
||||
padding: 10px 14px !important;
|
||||
}
|
||||
.admin-team-table td {
|
||||
padding: 10px 14px !important;
|
||||
border-bottom: 1px solid var(--border) !important;
|
||||
}
|
||||
.admin-team-table tr:last-child td {
|
||||
border-bottom: none !important;
|
||||
}
|
||||
.admin-team-table tr:hover td {
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
.admin-team-table .admin-input {
|
||||
background: var(--bg);
|
||||
transition: border-color 0.12s, box-shadow 0.12s;
|
||||
}
|
||||
.admin-team-table .admin-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px var(--accent-soft);
|
||||
}
|
||||
.admin-team-table .admin-input-id {
|
||||
font-weight: 600;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
/* Checkbox + label "Exclure" / jours d'absence : style pill */
|
||||
.admin-team-table label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 3px 8px;
|
||||
background: var(--bg-muted);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
margin-right: 4px;
|
||||
transition: background 0.12s, border-color 0.12s;
|
||||
user-select: none;
|
||||
}
|
||||
.admin-team-table label:hover {
|
||||
background: var(--bg-hover);
|
||||
border-color: var(--border-strong);
|
||||
}
|
||||
.admin-team-table label input[type="checkbox"] {
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
.admin-team-table label:has(input:checked) {
|
||||
background: var(--accent-soft);
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* v2026.5.40 r20 : onglet Équipe — colonne "Inclure" plus étroite, ID +
|
||||
nom en lecture seule (texte clair, pas d'input). */
|
||||
.admin-team-table th:first-child,
|
||||
.admin-team-table td:first-child {
|
||||
width: 60px !important;
|
||||
text-align: center !important;
|
||||
padding-left: 8px !important;
|
||||
padding-right: 8px !important;
|
||||
}
|
||||
.admin-team-table th:first-child {
|
||||
font-size: 10px !important;
|
||||
letter-spacing: 0.4px !important;
|
||||
}
|
||||
.admin-team-id-readonly {
|
||||
font-family: var(--mono);
|
||||
font-weight: 600;
|
||||
color: var(--text-muted);
|
||||
font-size: 12.5px;
|
||||
}
|
||||
.admin-team-name-readonly {
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* v2026.5.40 r21b : seul le `/` prend la couleur faint d'absent.
|
||||
Le `+` reste en couleur neutre (héritée du parent stats). */
|
||||
.global-stat-sep.sep-absent {
|
||||
color: var(--text-faint) !important;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
+663
-247
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user