Compare commits
18 Commits
v5.0.12
...
v2026.5.33
| Author | SHA1 | Date | |
|---|---|---|---|
| a5993c54c9 | |||
| b0a8102c29 | |||
| ecb490c55a | |||
| 7e497de40e | |||
| bbdcb8c7de | |||
| 5a9e465116 | |||
| 0511c18b07 | |||
| df623da8f4 | |||
| 1441b0a7a1 | |||
| 5eae40d38b | |||
| e69482add4 | |||
| a382d8f35f | |||
| 7824990fba | |||
| e7c5e281d9 | |||
| c74d52c40c | |||
| 8c76085f03 | |||
| f54ccd28d2 | |||
| 72fb565afa |
+148
-58
@@ -157,19 +157,44 @@ async function fetchXhr2(origin, phpsessid, actionId) {
|
|||||||
async function fetchFicheHtml(origin, phpsessid, formLink) {
|
async function fetchFicheHtml(origin, phpsessid, formLink) {
|
||||||
const url = `${origin}/index.php?${formLink}&PHPSESSID=${encodeURIComponent(phpsessid)}`;
|
const url = `${origin}/index.php?${formLink}&PHPSESSID=${encodeURIComponent(phpsessid)}`;
|
||||||
console.log("[bg] fetchFicheHtml →", url.substring(0, 120));
|
console.log("[bg] fetchFicheHtml →", url.substring(0, 120));
|
||||||
const r = await evFetch(url, origin);
|
|
||||||
if (!r.ok) {
|
// v2026.5.16 : juste après une reconnexion SSO, EasyVista retourne parfois
|
||||||
const err = new Error("HTTP " + r.status);
|
// une page intermédiaire tronquée (~8 Ko au lieu de ~250 Ko), le temps que
|
||||||
err.kind = classifyHttpStatus(r.status);
|
// les cookies SSO/Kerberos se propagent. On fait jusqu'à 3 tentatives avec
|
||||||
err.status = r.status;
|
// 1.5s entre chaque si on détecte une taille suspecte.
|
||||||
throw err;
|
const MAX_RETRIES = 3;
|
||||||
|
const RETRY_DELAY_MS = 1500;
|
||||||
|
const MIN_VALID_SIZE = 20000; // < 20 Ko = probablement page intermédiaire
|
||||||
|
|
||||||
|
for (let attempt = 1; attempt <= MAX_RETRIES; attempt++) {
|
||||||
|
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] fiche status = ${r.status} | taille = ${html.length}${attempt > 1 ? ` (tentative ${attempt}/${MAX_RETRIES})` : ""}`);
|
||||||
|
|
||||||
|
// Si réponse clairement une redirection courte → login expiré, inutile de retry
|
||||||
|
if (html.length < 500) {
|
||||||
|
console.warn("[bg] ⚠ fiche très courte, contenu =", JSON.stringify(html));
|
||||||
|
return html;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Si taille suspecte (< 20 Ko), probable page intermédiaire SSO : retry
|
||||||
|
if (html.length < MIN_VALID_SIZE && attempt < MAX_RETRIES) {
|
||||||
|
console.warn(`[bg] ⚠ fiche anormalement petite (${html.length} octets), retry dans ${RETRY_DELAY_MS} ms...`);
|
||||||
|
await new Promise(res => setTimeout(res, RETRY_DELAY_MS));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Sinon : on retourne ce qu'on a
|
||||||
|
return html;
|
||||||
}
|
}
|
||||||
const html = await r.text();
|
// Ne devrait pas arriver (la boucle fait return avant)
|
||||||
console.log("[bg] fiche status =", r.status, "| taille =", html.length);
|
throw new Error("fetchFicheHtml: max retries reached");
|
||||||
if (html.length < 500) {
|
|
||||||
console.warn("[bg] ⚠ fiche très courte, contenu =", JSON.stringify(html));
|
|
||||||
}
|
|
||||||
return html;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// v4.1.7 : API timeline EasyVista. Renvoie le JSON des actions d'une fiche,
|
// v4.1.7 : API timeline EasyVista. Renvoie le JSON des actions d'une fiche,
|
||||||
@@ -375,6 +400,67 @@ function originForContext(context) {
|
|||||||
: "https://itsma.vd.ch";
|
: "https://itsma.vd.ch";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* v2026.5.16 : surveille un onglet ouvert pour détecter si le Windows SSO
|
||||||
|
* a échoué et rediriger vers la bonne page.
|
||||||
|
*
|
||||||
|
* Quand la session portail Canton est expirée, EasyVista redirige vers
|
||||||
|
* https://portail.etat-de-vaud.ch/iamlogin/?spEntityID=...
|
||||||
|
* (page de login manuel moche). On préfère rediriger vers
|
||||||
|
* https://portail.etat-de-vaud.ch/iam/accueil/
|
||||||
|
* qui déclenche le Windows Kerberos SSO automatique.
|
||||||
|
*
|
||||||
|
* @param {number} tabId - ID de l'onglet à surveiller
|
||||||
|
*/
|
||||||
|
function watchReconnectTabForIamLogin(tabId) {
|
||||||
|
let redirected = false;
|
||||||
|
const timeoutMs = 60000; // surveille max 60s
|
||||||
|
|
||||||
|
const listener = (updatedTabId, changeInfo, tab) => {
|
||||||
|
if (updatedTabId !== tabId) return;
|
||||||
|
if (redirected) return;
|
||||||
|
const url = changeInfo.url || (tab && tab.url) || "";
|
||||||
|
if (!url) return;
|
||||||
|
|
||||||
|
// Détecter la page de login manuel
|
||||||
|
// Patterns : portail.etat-de-vaud.ch/iamlogin/ ou www.portail.vd.ch/iamlogin/
|
||||||
|
if (/\/iamlogin\//i.test(url) && /portail\./i.test(url)) {
|
||||||
|
redirected = true;
|
||||||
|
// Choisir le domaine de redirection :
|
||||||
|
// - si on voit portail.etat-de-vaud.ch → rester sur interne
|
||||||
|
// - si on voit www.portail.vd.ch → rester sur externe
|
||||||
|
let targetUrl;
|
||||||
|
if (/portail\.etat-de-vaud\.ch/i.test(url)) {
|
||||||
|
targetUrl = "https://portail.etat-de-vaud.ch/iam/accueil/";
|
||||||
|
} else {
|
||||||
|
targetUrl = "https://www.portail.vd.ch/iam/accueil/";
|
||||||
|
}
|
||||||
|
console.log(`[bg] watchReconnectTab : iamlogin détecté, redirection vers ${targetUrl}`);
|
||||||
|
chrome.tabs.update(tabId, { url: targetUrl }).catch(e => {
|
||||||
|
console.warn("[bg] watchReconnectTab : update failed", e);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
chrome.tabs.onUpdated.addListener(listener);
|
||||||
|
|
||||||
|
// Stop la surveillance après 60s pour ne pas accumuler des listeners morts
|
||||||
|
setTimeout(() => {
|
||||||
|
try {
|
||||||
|
chrome.tabs.onUpdated.removeListener(listener);
|
||||||
|
} catch (e) {}
|
||||||
|
}, timeoutMs);
|
||||||
|
|
||||||
|
// Si l'onglet est fermé, stop aussi
|
||||||
|
const closeListener = (closedTabId) => {
|
||||||
|
if (closedTabId === tabId) {
|
||||||
|
try { chrome.tabs.onUpdated.removeListener(listener); } catch (e) {}
|
||||||
|
try { chrome.tabs.onRemoved.removeListener(closeListener); } catch (e) {}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
chrome.tabs.onRemoved.addListener(closeListener);
|
||||||
|
}
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// v4.2 : récupération de l'utilisateur connecté
|
// v4.2 : récupération de l'utilisateur connecté
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@@ -644,34 +730,19 @@ async function submitDouchette(origin, phpsessid, opts) {
|
|||||||
async function deletePlanningItem(origin, phpsessid, actionId, kind) {
|
async function deletePlanningItem(origin, phpsessid, actionId, kind) {
|
||||||
if (!actionId) throw new Error("actionId manquant");
|
if (!actionId) throw new Error("actionId manquant");
|
||||||
|
|
||||||
// v5.0.1 : plusieurs function_name à tester dans l'ordre (du plus probable
|
// v5.0.14 : confirmé par capture Network réelle — EasyVista utilise
|
||||||
// au moins probable). Le premier qui renvoie 200 ET non-login est considéré OK.
|
// "Planning_delete_absence" pour TOUS les types d'entrée planning (absences,
|
||||||
const fnNames = kind === "reservation"
|
// réservations, événements, etc.). Réponse XML : <Planning_delete_absence>true</...>
|
||||||
? [
|
// On met donc ce nom en PREMIER pour tout, et on garde les autres en fallback.
|
||||||
"Planning_delete_reservation",
|
const fnNames = [
|
||||||
"delete_reservation",
|
"Planning_delete_absence", // ← le seul qui marche vraiment côté EV
|
||||||
"fc_delete_reservation",
|
// Fallbacks historiques (au cas où EV change un jour) :
|
||||||
"delete_act_reservation",
|
"Planning_delete_reservation",
|
||||||
"delete_planning_reservation",
|
"delete_absence",
|
||||||
"remove_reservation",
|
"delete_reservation",
|
||||||
// v5.0.2 : réservations sont parfois traitées comme absences côté API
|
"fc_delete_absence",
|
||||||
"Planning_delete_absence",
|
"fc_delete_reservation"
|
||||||
"delete_absence",
|
];
|
||||||
"fc_delete_absence"
|
|
||||||
]
|
|
||||||
: [
|
|
||||||
// v5.0.2 : élargir la liste, on a essayé 3 sans succès. Les variantes
|
|
||||||
// plausibles vues dans les API EasyVista :
|
|
||||||
"Planning_delete_absence", // le plus "officiel"
|
|
||||||
"delete_absence", // le nom JS dans le onclick
|
|
||||||
"fc_delete_absence", // pattern fc_*
|
|
||||||
"delete_act_absence", // parfois "act_" dans les noms
|
|
||||||
"Planning_delete_holiday", // en anglais
|
|
||||||
"delete_holiday",
|
|
||||||
"fc_delete_holiday",
|
|
||||||
"delete_planning_absence", // variation complète
|
|
||||||
"remove_absence"
|
|
||||||
];
|
|
||||||
|
|
||||||
let lastErr = null;
|
let lastErr = null;
|
||||||
let lastBody = null;
|
let lastBody = null;
|
||||||
@@ -684,7 +755,11 @@ async function deletePlanningItem(origin, phpsessid, actionId, kind) {
|
|||||||
console.log(`[bg] deletePlanningItem → tente function_name=${fn}`, url.substring(0, 180));
|
console.log(`[bg] deletePlanningItem → tente function_name=${fn}`, url.substring(0, 180));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const r = await fetch(url, { method: "GET", credentials: "include" });
|
// v5.0.13 : utiliser evFetch() au lieu de fetch() brut pour que les
|
||||||
|
// headers Referer + X-Requested-With soient envoyés — sinon EV renvoie
|
||||||
|
// un <script> de redirection CSRF qui ne ressemble pas à une erreur et
|
||||||
|
// notre heuristique le prenait à tort pour un succès.
|
||||||
|
const r = await evFetch(url, origin, { method: "GET" });
|
||||||
const body = await r.text();
|
const body = await r.text();
|
||||||
console.log(`[bg] status=${r.status} | body (200 premiers chars) : ${(body || "").substring(0, 200)}`);
|
console.log(`[bg] status=${r.status} | body (200 premiers chars) : ${(body || "").substring(0, 200)}`);
|
||||||
|
|
||||||
@@ -699,24 +774,34 @@ async function deletePlanningItem(origin, phpsessid, actionId, kind) {
|
|||||||
throw new Error("session_expired");
|
throw new Error("session_expired");
|
||||||
}
|
}
|
||||||
|
|
||||||
// v5.0.1 : heuristique pour détecter si la suppression a marché.
|
// v5.0.14 : détection explicite du succès XML observé dans les captures
|
||||||
// EasyVista renvoie typiquement :
|
// réseau : <Planning_delete_absence>true</Planning_delete_absence>
|
||||||
// - une chaine vide ou "ok" ou "1" si succès
|
const trimmed = (body || "").trim();
|
||||||
// - un message d'erreur / html d'erreur si function_name inconnu
|
const lower = trimmed.toLowerCase();
|
||||||
// On considère que tout ce qui n'est pas un message d'erreur évident
|
|
||||||
// est un succès. Si plusieurs fn renvoient 200, on prend le premier.
|
// Succès explicite : réponse XML du type <X>true</X>
|
||||||
const trimmed = (body || "").trim().toLowerCase();
|
if (/^<\w+>true<\/\w+>\s*$/i.test(trimmed)) {
|
||||||
const looksLikeError = trimmed.includes("error")
|
console.log(`[bg] → SUCCÈS confirmé par XML <...>true</...> avec function_name=${fn}`);
|
||||||
|| trimmed.includes("erreur")
|
return { status: r.status, functionName: fn, body: trimmed };
|
||||||
|| trimmed.includes("unknown function")
|
|
||||||
|| trimmed.includes("fonction inconnue")
|
|
||||||
|| trimmed.includes("<html");
|
|
||||||
if (!looksLikeError) {
|
|
||||||
console.log(`[bg] → suppression OK avec function_name=${fn}`);
|
|
||||||
return { status: r.status, functionName: fn, body: body.substring(0, 200) };
|
|
||||||
}
|
}
|
||||||
console.log(`[bg] → réponse ressemble à une erreur, on tente le prochain nom`);
|
|
||||||
lastBody = body;
|
// Détection d'échec : <X>false</X>, erreurs, html, redirect, etc.
|
||||||
|
const looksLikeError = /^<\w+>false<\/\w+>\s*$/i.test(trimmed)
|
||||||
|
|| lower.includes("error")
|
||||||
|
|| lower.includes("erreur")
|
||||||
|
|| lower.includes("unknown function")
|
||||||
|
|| lower.includes("fonction inconnue")
|
||||||
|
|| lower.includes("<html")
|
||||||
|
|| lower.includes("window.location.href");
|
||||||
|
if (looksLikeError) {
|
||||||
|
console.log(`[bg] → réponse ressemble à une erreur, on tente le prochain nom`);
|
||||||
|
lastBody = body;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
// Pas d'erreur évidente mais pas de succès explicite non plus
|
||||||
|
// (ex: réponse vide ou "1" ou "ok"). On considère comme succès.
|
||||||
|
console.log(`[bg] → suppression probablement OK (body neutre) avec function_name=${fn}`);
|
||||||
|
return { status: r.status, functionName: fn, body: trimmed.substring(0, 200) };
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.message === "session_expired") throw err;
|
if (err.message === "session_expired") throw err;
|
||||||
console.warn(`[bg] erreur avec ${fn}:`, err);
|
console.warn(`[bg] erreur avec ${fn}:`, err);
|
||||||
@@ -1099,6 +1184,11 @@ chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => {
|
|||||||
url: `${origin}/`, // racine → EV redirige vers SSO si besoin
|
url: `${origin}/`, // racine → EV redirige vers SSO si besoin
|
||||||
active: true
|
active: true
|
||||||
});
|
});
|
||||||
|
// v2026.5.16 : surveiller cet onglet — si on tombe sur la page de
|
||||||
|
// login manuel portail.etat-de-vaud.ch/iamlogin/, rediriger vers
|
||||||
|
// portail.etat-de-vaud.ch/iam/accueil/ qui déclenche le Windows
|
||||||
|
// SSO Kerberos automatiquement.
|
||||||
|
watchReconnectTabForIamLogin(tab.id);
|
||||||
sendResponse({ ok: true, tabId: tab.id, origin });
|
sendResponse({ ok: true, tabId: tab.id, origin });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
sendResponse({ ok: false, error: err.message || String(err) });
|
sendResponse({ ok: false, error: err.message || String(err) });
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Planification",
|
"name": "Planification",
|
||||||
"version": "5.0.12",
|
"version": "2026.5.33",
|
||||||
"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.",
|
"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": {
|
"browser_specific_settings": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
|
|||||||
+625
-23
@@ -9,8 +9,8 @@
|
|||||||
--border: #e2e4e8;
|
--border: #e2e4e8;
|
||||||
--border-strong: #cfd3da;
|
--border-strong: #cfd3da;
|
||||||
--text: #1a1f2b;
|
--text: #1a1f2b;
|
||||||
--text-muted: #5b6573;
|
--text-muted: #2e3642; /* v2026.5.29 : +contraste (était #4a5260) */
|
||||||
--text-faint: #8892a0;
|
--text-faint: #50596a; /* v2026.5.29 : +contraste (était #6c7583) */
|
||||||
--accent: #0f4f8b;
|
--accent: #0f4f8b;
|
||||||
--accent-soft: #e1ecf7;
|
--accent-soft: #e1ecf7;
|
||||||
--danger: #b03030;
|
--danger: #b03030;
|
||||||
@@ -59,8 +59,8 @@
|
|||||||
--border: #2e333c;
|
--border: #2e333c;
|
||||||
--border-strong: #414754;
|
--border-strong: #414754;
|
||||||
--text: #e6e8ec;
|
--text: #e6e8ec;
|
||||||
--text-muted: #9ba2ad;
|
--text-muted: #d0d5de; /* v2026.5.29 : +contraste (était #b8c0cc) — quasi blanc */
|
||||||
--text-faint: #6a727e;
|
--text-faint: #a8b0bc; /* v2026.5.29 : +contraste (était #8b93a0) */
|
||||||
--accent: #5ea8e8;
|
--accent: #5ea8e8;
|
||||||
--accent-soft: #223348;
|
--accent-soft: #223348;
|
||||||
--danger: #e87878;
|
--danger: #e87878;
|
||||||
@@ -320,8 +320,57 @@ html, body {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
|
flex-wrap: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* v2026.5.17 : faux input date custom avec nom du jour */
|
||||||
|
.date-custom-wrapper {
|
||||||
|
position: relative;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.date-custom {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 5px 10px 5px 12px;
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 6px;
|
||||||
|
background: var(--bg-muted);
|
||||||
|
color: var(--text);
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 500;
|
||||||
|
cursor: pointer;
|
||||||
|
white-space: nowrap;
|
||||||
|
user-select: none;
|
||||||
|
transition: border-color 0.15s, background 0.15s;
|
||||||
|
}
|
||||||
|
.date-custom:hover {
|
||||||
|
border-color: var(--border-strong);
|
||||||
|
background: var(--bg-hover);
|
||||||
|
}
|
||||||
|
.date-custom:focus {
|
||||||
|
outline: 2px solid var(--accent);
|
||||||
|
outline-offset: -1px;
|
||||||
|
}
|
||||||
|
.date-custom-icon {
|
||||||
|
font-size: 13px;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
.date-input-hidden {
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 0;
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* v2026.5.17 : masquer l'ancien date-picker-day s'il traîne (compat) */
|
||||||
|
.date-picker-day { display: none; }
|
||||||
|
|
||||||
.btn-nav {
|
.btn-nav {
|
||||||
padding: 6px 10px;
|
padding: 6px 10px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
@@ -689,12 +738,9 @@ html, body {
|
|||||||
.timeline-slot.status-resolved { background: var(--c-resolved); }
|
.timeline-slot.status-resolved { background: var(--c-resolved); }
|
||||||
|
|
||||||
.timeline-slot.kind-absence {
|
.timeline-slot.kind-absence {
|
||||||
background: repeating-linear-gradient(
|
/* v5.0.15 : uni gris-noir au lieu de rayé, plus lisible */
|
||||||
45deg,
|
background: #2a2f36;
|
||||||
var(--text-faint) 0 6px,
|
border-right: 1px solid var(--bg-elevated);
|
||||||
var(--bg-muted) 6px 12px
|
|
||||||
);
|
|
||||||
opacity: 0.6;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeline-slot:hover,
|
.timeline-slot:hover,
|
||||||
@@ -796,6 +842,17 @@ html, body {
|
|||||||
background: var(--bg-hover);
|
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 {
|
||||||
|
background: var(--accent-soft);
|
||||||
|
outline: 2px solid var(--accent);
|
||||||
|
outline-offset: -2px;
|
||||||
|
box-shadow: 0 0 0 3px var(--accent-soft);
|
||||||
|
z-index: 2;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
/* ==========================================================================
|
/* ==========================================================================
|
||||||
Interventions — layout v2 (heures verticales)
|
Interventions — layout v2 (heures verticales)
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
@@ -969,6 +1026,12 @@ html, body {
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 0.1s, background 0.1s, color 0.1s;
|
transition: opacity 0.1s, background 0.1s, color 0.1s;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
|
/* v2026.5.17 : figer largeur/hauteur pour que le changement 📋 → ✓ pendant
|
||||||
|
la copie ne fasse pas bouger le titre centré dans la grid */
|
||||||
|
min-width: 28px;
|
||||||
|
min-height: 22px;
|
||||||
|
text-align: center;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
.intervention-v2:hover .intervention-copy { opacity: 1; }
|
.intervention-v2:hover .intervention-copy { opacity: 1; }
|
||||||
.intervention-copy:hover {
|
.intervention-copy:hover {
|
||||||
@@ -1117,6 +1180,26 @@ html, body {
|
|||||||
color: var(--c-reservation);
|
color: var(--c-reservation);
|
||||||
font-family: var(--font);
|
font-family: var(--font);
|
||||||
letter-spacing: 0.02em;
|
letter-spacing: 0.02em;
|
||||||
|
/* v5.0.15 : étendre le titre sur toute la largeur de la carte pour le
|
||||||
|
vrai centrage (sinon il n'est centré que dans sa colonne grid) */
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
text-align: center;
|
||||||
|
padding-left: 62px; /* compense la colonne time (58px + gap) */
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* v5.0.15 : absence partielle (demi-journée) affichée comme une row */
|
||||||
|
.iv-ref-header.is-absence-title {
|
||||||
|
color: var(--c-absence, #a0a8b2);
|
||||||
|
font-family: var(--font);
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
text-align: center;
|
||||||
|
padding-left: 62px;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
.intervention-v2.color-absence .intervention-dot {
|
||||||
|
background: var(--c-absence, #2a2f36);
|
||||||
}
|
}
|
||||||
.iv-reservation-par {
|
.iv-reservation-par {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
@@ -1760,22 +1843,28 @@ body.modal-open {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* v4.2.9 : pied de page discret en bas à droite — affiche auteur + date + version */
|
/* v4.2.9 : pied de page discret en bas à droite — affiche auteur + date + version
|
||||||
|
v2026.5.29 : agrandi + plus contrasté */
|
||||||
.app-footer {
|
.app-footer {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 8px;
|
right: 10px;
|
||||||
bottom: 4px;
|
bottom: 6px;
|
||||||
font-size: 10px;
|
font-size: 13px;
|
||||||
color: var(--text-faint, #8892a0);
|
font-weight: 500;
|
||||||
opacity: 0.55;
|
color: var(--text-muted);
|
||||||
pointer-events: none; /* ne capture pas les clics */
|
opacity: 0.85;
|
||||||
|
pointer-events: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
letter-spacing: 0.2px;
|
letter-spacing: 0.3px;
|
||||||
z-index: 1; /* sous les modals (qui sont à 10000) */
|
z-index: 1;
|
||||||
|
padding: 3px 8px;
|
||||||
|
background: var(--bg-muted);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
.app-footer:hover {
|
.app-footer:hover {
|
||||||
opacity: 0.85;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ─────────────────────────────────────────────────────────────────────────
|
/* ─────────────────────────────────────────────────────────────────────────
|
||||||
@@ -1920,18 +2009,44 @@ body.modal-open {
|
|||||||
/* ─────────────────────────────────────────────────────────────────────────
|
/* ─────────────────────────────────────────────────────────────────────────
|
||||||
v5.0.0 : horloge au milieu de la topbar (HH:MM, pas de secondes)
|
v5.0.0 : horloge au milieu de la topbar (HH:MM, pas de secondes)
|
||||||
───────────────────────────────────────────────────────────────────────── */
|
───────────────────────────────────────────────────────────────────────── */
|
||||||
|
/* v2026.5.27 : app-clock sur UNE seule ligne : "Jeudi 23.04.26 • 21:55"
|
||||||
|
Même taille pour la date et l'heure, gros point au milieu. */
|
||||||
.app-clock {
|
.app-clock {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 12px;
|
||||||
|
line-height: 1.1;
|
||||||
|
color: var(--text);
|
||||||
|
pointer-events: none;
|
||||||
|
user-select: none;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.app-clock-date {
|
||||||
|
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);
|
||||||
|
font-size: 26px;
|
||||||
|
line-height: 0.8;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
.app-clock-time {
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-variant-numeric: tabular-nums;
|
font-variant-numeric: tabular-nums;
|
||||||
color: var(--text);
|
|
||||||
letter-spacing: 1px;
|
letter-spacing: 1px;
|
||||||
pointer-events: none;
|
|
||||||
user-select: none;
|
|
||||||
}
|
}
|
||||||
.topbar { position: sticky; /* déja défini plus haut */ }
|
.topbar { position: sticky; /* déja défini plus haut */ }
|
||||||
/* topbar doit être en position: relative parent pour que .app-clock absolute
|
/* topbar doit être en position: relative parent pour que .app-clock absolute
|
||||||
@@ -2390,3 +2505,490 @@ header.topbar::before {
|
|||||||
.banner-reconnect-failed .banner-btn-primary:hover {
|
.banner-reconnect-failed .banner-btn-primary:hover {
|
||||||
background: #f8d7da;
|
background: #f8d7da;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
v2026.5.16 : responsive topbar
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/* Breakpoint medium : entre 1000 et 1300px, on compacte un peu */
|
||||||
|
@media (max-width: 1300px) {
|
||||||
|
.app-clock-date { font-size: 18px; }
|
||||||
|
.app-clock-time { font-size: 18px; }
|
||||||
|
.app-clock-date::after { font-size: 20px; }
|
||||||
|
.topbar-right .btn-action .btn-action-label,
|
||||||
|
.topbar-right .btn-refresh .btn-refresh-label {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Breakpoint small : moins de 1000px, on masque les labels de boutons action
|
||||||
|
et on réduit encore l'horloge. Les icônes restent, titres restent. */
|
||||||
|
@media (max-width: 1000px) {
|
||||||
|
.topbar { padding: 8px 14px; gap: 8px; }
|
||||||
|
.topbar h1 { font-size: 18px; }
|
||||||
|
.app-clock-date { font-size: 16px; }
|
||||||
|
.app-clock-time { font-size: 16px; }
|
||||||
|
.app-clock-date::after { font-size: 18px; }
|
||||||
|
.btn-action .btn-action-label,
|
||||||
|
.btn-refresh .btn-refresh-label {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.btn-action, .btn-refresh {
|
||||||
|
padding: 6px 10px;
|
||||||
|
}
|
||||||
|
.capture-info { display: none; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Breakpoint très petit : moins de 720px, on cache la date complète (garde
|
||||||
|
juste l'heure) et on autorise le wrap total */
|
||||||
|
@media (max-width: 720px) {
|
||||||
|
.topbar {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
padding: 6px 10px;
|
||||||
|
}
|
||||||
|
.app-clock {
|
||||||
|
position: static;
|
||||||
|
transform: none;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
.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; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Breakpoint minuscule : masque aussi les labels de refresh, boutons deviennent
|
||||||
|
vraiment iconifiés */
|
||||||
|
@media (max-width: 520px) {
|
||||||
|
.app-clock-time { font-size: 16px; }
|
||||||
|
.topbar h1 { font-size: 14px; }
|
||||||
|
.btn-today { padding: 4px 6px; font-size: 11px; }
|
||||||
|
.btn-nav { min-width: 26px; padding: 4px 6px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
v2026.5.17 : topbar des popups épinglés (3 boutons : _ ▭ 📍)
|
||||||
|
========================================================================== */
|
||||||
|
.pinned-popup {
|
||||||
|
/* Laisser un peu de place en haut pour la topbar */
|
||||||
|
padding-top: 30px !important;
|
||||||
|
}
|
||||||
|
/* v2026.5.18 : masquer le conteneur d'actions d'origine (↻ reload + 📌 pin)
|
||||||
|
dans les popups épinglés — leur place est reprise par notre .pinned-popup-topbar */
|
||||||
|
.pinned-popup .tooltip-actions {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
.pinned-popup-topbar {
|
||||||
|
position: absolute;
|
||||||
|
top: 4px;
|
||||||
|
right: 4px;
|
||||||
|
display: flex;
|
||||||
|
gap: 2px;
|
||||||
|
align-items: center;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
.pinned-popup-btn {
|
||||||
|
width: 26px;
|
||||||
|
height: 22px;
|
||||||
|
padding: 0;
|
||||||
|
font-size: 13px;
|
||||||
|
line-height: 1;
|
||||||
|
background: transparent;
|
||||||
|
color: var(--text-muted);
|
||||||
|
border: 1px solid transparent;
|
||||||
|
border-radius: 4px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.1s, color 0.1s, border-color 0.1s;
|
||||||
|
font-family: inherit;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.pinned-popup-btn:hover {
|
||||||
|
background: var(--bg-muted);
|
||||||
|
color: var(--text);
|
||||||
|
border-color: var(--border);
|
||||||
|
}
|
||||||
|
.pinned-popup-unpin {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
v2026.5.17 : mode Minimisé (popup flottant compact, juste la ref)
|
||||||
|
v2026.5.19 : refonte — élément .pinned-popup-minref créé à la volée
|
||||||
|
v2026.5.21 : agrandi pour que la ref tienne sans déborder
|
||||||
|
v2026.5.22 : encore agrandi + plus d'espace entre dragbar et topbar
|
||||||
|
v2026.5.23 : refonte complète en style "onglet" single-line, compact
|
||||||
|
========================================================================== */
|
||||||
|
.pinned-popup.pinned-popup-minimized {
|
||||||
|
display: flex !important;
|
||||||
|
flex-direction: row !important;
|
||||||
|
align-items: center !important;
|
||||||
|
min-width: 300px !important;
|
||||||
|
max-width: 400px !important;
|
||||||
|
width: auto !important;
|
||||||
|
height: 36px !important;
|
||||||
|
min-height: 36px !important;
|
||||||
|
padding: 0 6px 0 4px !important;
|
||||||
|
overflow: visible;
|
||||||
|
background: var(--bg-elevated) !important;
|
||||||
|
border: 1px solid var(--border) !important;
|
||||||
|
border-radius: 6px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Dans le mode minimisé, la topbar n'est plus en absolute : elle se pose en fin
|
||||||
|
de ligne à droite, après la ref */
|
||||||
|
.pinned-popup.pinned-popup-minimized .pinned-popup-topbar {
|
||||||
|
position: static !important;
|
||||||
|
top: auto !important;
|
||||||
|
right: auto !important;
|
||||||
|
margin-left: auto !important;
|
||||||
|
order: 3;
|
||||||
|
flex-shrink: 0;
|
||||||
|
padding: 0 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* La dragbar devient un simple "handle" à gauche (≡) */
|
||||||
|
.pinned-popup.pinned-popup-minimized .pinned-popup-dragbar {
|
||||||
|
position: static !important;
|
||||||
|
top: auto !important;
|
||||||
|
left: auto !important;
|
||||||
|
right: auto !important;
|
||||||
|
order: 1;
|
||||||
|
flex-shrink: 0;
|
||||||
|
width: 18px !important;
|
||||||
|
height: 22px !important;
|
||||||
|
background: transparent !important;
|
||||||
|
border: none !important;
|
||||||
|
cursor: grab;
|
||||||
|
display: flex !important;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
color: var(--text-faint);
|
||||||
|
opacity: 0.6;
|
||||||
|
transition: opacity 0.12s, color 0.12s;
|
||||||
|
}
|
||||||
|
.pinned-popup.pinned-popup-minimized .pinned-popup-dragbar::before {
|
||||||
|
content: "≡" !important;
|
||||||
|
font-size: 15px;
|
||||||
|
line-height: 1;
|
||||||
|
/* v2026.5.24 : annuler les propriétés du ::before normal (barre grise) */
|
||||||
|
width: auto !important;
|
||||||
|
height: auto !important;
|
||||||
|
background: transparent !important;
|
||||||
|
border-radius: 0 !important;
|
||||||
|
}
|
||||||
|
.pinned-popup.pinned-popup-minimized .pinned-popup-dragbar:hover {
|
||||||
|
opacity: 1;
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
.pinned-popup.pinned-popup-minimized.dragging .pinned-popup-dragbar {
|
||||||
|
cursor: grabbing;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Masquer tous les enfants directs SAUF topbar, dragbar et minref */
|
||||||
|
.pinned-popup.pinned-popup-minimized > *:not(.pinned-popup-topbar):not(.pinned-popup-dragbar):not(.pinned-popup-minref) {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* La ref au centre, cliquable pour agrandir */
|
||||||
|
.pinned-popup-minref {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center; /* v2026.5.24 : centrer horizontalement la ref */
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
padding: 0 10px;
|
||||||
|
font-family: var(--mono, monospace);
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--text);
|
||||||
|
cursor: pointer;
|
||||||
|
user-select: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
transition: background 0.12s;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.pinned-popup-minref:hover {
|
||||||
|
background: var(--bg-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
v2026.5.17 : mode Réduit (docké en bas de l'écran) + taskbar
|
||||||
|
========================================================================== */
|
||||||
|
.pinned-popup.pinned-popup-reduced {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
.pinned-popups-dock {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
z-index: 50;
|
||||||
|
display: none;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 6px;
|
||||||
|
padding: 6px 10px;
|
||||||
|
background: var(--bg-elevated);
|
||||||
|
border-top: 1px solid var(--border);
|
||||||
|
box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.pinned-popups-dock.visible {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.pinned-popup-dock-pill {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 6px 14px;
|
||||||
|
background: var(--bg-muted);
|
||||||
|
color: var(--text);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 16px;
|
||||||
|
font-family: var(--mono, monospace);
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 700;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: background 0.15s, transform 0.15s, filter 0.15s;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.pinned-popup-dock-pill:hover {
|
||||||
|
transform: translateY(-1px);
|
||||||
|
filter: brightness(1.1);
|
||||||
|
}
|
||||||
|
/* v2026.5.18 : couleurs par catégorie (fond = couleur, texte blanc) */
|
||||||
|
.pinned-popup-dock-pill.color-livraison { background: var(--c-livraison); color: white; border-color: transparent; }
|
||||||
|
.pinned-popup-dock-pill.color-installation { background: var(--c-installation); color: white; border-color: transparent; }
|
||||||
|
.pinned-popup-dock-pill.color-recup { background: var(--c-recup); color: white; border-color: transparent; }
|
||||||
|
.pinned-popup-dock-pill.color-remplacement { background: var(--c-remplacement); color: white; border-color: transparent; }
|
||||||
|
.pinned-popup-dock-pill.color-incident { background: var(--c-incident); color: white; border-color: transparent; }
|
||||||
|
.pinned-popup-dock-pill.color-rollout { background: var(--c-rollout); color: white; border-color: transparent; }
|
||||||
|
.pinned-popup-dock-pill.color-reservation { background: var(--c-reservation); color: white; border-color: transparent; }
|
||||||
|
.pinned-popup-dock-pill.color-absence { background: #2a2f36; color: white; border-color: transparent; }
|
||||||
|
.pinned-popup-dock-pill.color-autre { background: var(--c-autre); color: white; border-color: transparent; }
|
||||||
|
|
||||||
|
/* v2026.5.18 : bouton "Fermer tous" à droite du dock */
|
||||||
|
.pinned-popups-close-all {
|
||||||
|
margin-left: auto;
|
||||||
|
padding: 6px 12px;
|
||||||
|
background: transparent;
|
||||||
|
color: var(--text-muted);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 6px;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 600;
|
||||||
|
cursor: pointer;
|
||||||
|
font-family: inherit;
|
||||||
|
transition: background 0.15s, color 0.15s, border-color 0.15s;
|
||||||
|
}
|
||||||
|
.pinned-popups-close-all:hover {
|
||||||
|
background: rgba(239, 68, 68, 0.1);
|
||||||
|
color: #ef4444;
|
||||||
|
border-color: #ef4444;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
v2026.5.17 : popup user-badge avec ligne session
|
||||||
|
========================================================================== */
|
||||||
|
.user-name-popup-name {
|
||||||
|
font-weight: 600;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
.user-name-popup-session {
|
||||||
|
font-size: 12px;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
padding-top: 4px;
|
||||||
|
border-top: 1px solid var(--border);
|
||||||
|
}
|
||||||
|
.user-name-popup-session.session-ok { color: var(--text-muted); }
|
||||||
|
.user-name-popup-session.session-warn { color: #f59e0b; font-weight: 600; }
|
||||||
|
.user-name-popup-session.session-critical { color: #ef4444; font-weight: 700; }
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
v2026.5.17 : popup alerte session qui glisse depuis haut-gauche
|
||||||
|
========================================================================== */
|
||||||
|
.session-slide-alert {
|
||||||
|
position: fixed;
|
||||||
|
top: 60px;
|
||||||
|
left: -420px; /* hors écran au départ */
|
||||||
|
width: 380px;
|
||||||
|
max-width: calc(100vw - 40px);
|
||||||
|
padding: 14px 18px;
|
||||||
|
background: var(--bg-elevated);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-left: 4px solid #f59e0b;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 8px 24px rgba(0,0,0,0.25);
|
||||||
|
z-index: 1000;
|
||||||
|
transition: left 0.28s ease-out, opacity 0.28s;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
.session-slide-alert.visible {
|
||||||
|
left: 20px;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
.session-slide-alert.urgent {
|
||||||
|
border-left-color: #ef4444;
|
||||||
|
animation: session-pulse 1.4s ease-in-out infinite;
|
||||||
|
}
|
||||||
|
@keyframes session-pulse {
|
||||||
|
0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
|
||||||
|
50% { box-shadow: 0 8px 24px rgba(239,68,68,0.5); }
|
||||||
|
}
|
||||||
|
.session-slide-alert-title {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text);
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
.session-slide-alert-actions {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
.session-slide-alert-extend,
|
||||||
|
.session-slide-alert-later {
|
||||||
|
padding: 6px 14px;
|
||||||
|
font-size: 13px;
|
||||||
|
border-radius: 6px;
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
cursor: pointer;
|
||||||
|
font-family: inherit;
|
||||||
|
}
|
||||||
|
.session-slide-alert-extend {
|
||||||
|
background: #10b981;
|
||||||
|
color: white;
|
||||||
|
border-color: #10b981;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
.session-slide-alert-extend:hover { background: #059669; }
|
||||||
|
.session-slide-alert-extend:disabled { opacity: 0.6; cursor: wait; }
|
||||||
|
.session-slide-alert-later {
|
||||||
|
background: transparent;
|
||||||
|
color: var(--text-muted);
|
||||||
|
}
|
||||||
|
.session-slide-alert-later:hover {
|
||||||
|
background: var(--bg-muted);
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
v2026.5.19 : nouveaux éléments
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/* Bouton Actualiser (↻) dans la topbar du popup épinglé — animation spin */
|
||||||
|
.pinned-popup-refresh {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
.pinned-popup-refresh svg {
|
||||||
|
width: 14px;
|
||||||
|
height: 14px;
|
||||||
|
}
|
||||||
|
.pinned-popup-refresh.spinning svg {
|
||||||
|
animation: pinned-popup-refresh-spin 0.6s linear infinite;
|
||||||
|
transform-origin: 50% 50%;
|
||||||
|
}
|
||||||
|
.pinned-popup-refresh.spinning {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
@keyframes pinned-popup-refresh-spin {
|
||||||
|
from { transform: rotate(0deg); }
|
||||||
|
to { transform: rotate(360deg); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Pendant le drag d'un popup, ignorer les hover sur les cartes pour ne pas
|
||||||
|
ouvrir des tooltips parasites */
|
||||||
|
body.popup-dragging .intervention-v2,
|
||||||
|
body.popup-dragging .card {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
/* Mais garder les popups épinglés cliquables */
|
||||||
|
body.popup-dragging .pinned-popup {
|
||||||
|
pointer-events: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Pastille dock à 2 lignes : ref (gras) + date (petit) */
|
||||||
|
.pinned-popup-dock-pill {
|
||||||
|
flex-direction: column !important;
|
||||||
|
align-items: center !important;
|
||||||
|
padding: 4px 14px !important;
|
||||||
|
line-height: 1.1;
|
||||||
|
gap: 1px !important;
|
||||||
|
}
|
||||||
|
.pinned-popup-dock-pill-ref {
|
||||||
|
display: block;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 700;
|
||||||
|
font-family: var(--mono, monospace);
|
||||||
|
}
|
||||||
|
.pinned-popup-dock-pill-date {
|
||||||
|
display: block;
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: 500;
|
||||||
|
opacity: 0.85;
|
||||||
|
font-family: var(--mono, monospace);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
v2026.5.20 : mini-menu au survol d'une pastille dock
|
||||||
|
========================================================================== */
|
||||||
|
.pill-hover-menu {
|
||||||
|
position: fixed;
|
||||||
|
z-index: 60;
|
||||||
|
background: var(--bg-elevated);
|
||||||
|
border: 1px solid var(--border);
|
||||||
|
border-radius: 6px;
|
||||||
|
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
|
||||||
|
padding: 4px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 2px;
|
||||||
|
min-width: 130px;
|
||||||
|
animation: pill-hover-menu-appear 0.12s ease-out;
|
||||||
|
}
|
||||||
|
@keyframes pill-hover-menu-appear {
|
||||||
|
from { opacity: 0; transform: translateY(4px); }
|
||||||
|
to { opacity: 1; transform: translateY(0); }
|
||||||
|
}
|
||||||
|
.pill-hover-menu-btn {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
|
padding: 6px 10px;
|
||||||
|
background: transparent;
|
||||||
|
color: var(--text);
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-family: inherit;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 500;
|
||||||
|
cursor: pointer;
|
||||||
|
text-align: left;
|
||||||
|
transition: background 0.12s;
|
||||||
|
}
|
||||||
|
.pill-hover-menu-btn:hover {
|
||||||
|
background: var(--bg-muted);
|
||||||
|
}
|
||||||
|
.pill-hover-menu-btn.pill-hover-menu-close:hover {
|
||||||
|
background: rgba(239, 68, 68, 0.15);
|
||||||
|
color: #ef4444;
|
||||||
|
}
|
||||||
|
.pill-menu-ico {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 16px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ==========================================================================
|
||||||
|
v2026.5.21 : icône 📍 "active" dans le tooltip hover = déjà épinglée
|
||||||
|
========================================================================== */
|
||||||
|
.tooltip-pinbtn.tooltip-pinbtn-active {
|
||||||
|
opacity: 1 !important;
|
||||||
|
filter: none !important;
|
||||||
|
background: rgba(239, 68, 68, 0.15);
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|||||||
+21
-6
@@ -9,22 +9,37 @@
|
|||||||
<header class="topbar">
|
<header class="topbar">
|
||||||
<div class="topbar-left">
|
<div class="topbar-left">
|
||||||
<!-- v4.2.3 : pastille avec initiales de l'utilisateur connecté, avant
|
<!-- v4.2.3 : pastille avec initiales de l'utilisateur connecté, avant
|
||||||
le titre. Clic → popup fixe avec nom complet juste en dessous. -->
|
le titre. Clic → popup fixe avec nom complet juste en dessous.
|
||||||
<button id="user-badge" class="user-badge hidden"
|
v2026.5.34 : TOUJOURS visible d'office avec "?" (état user inconnu)
|
||||||
|
pour garantir l'accès au menu (⊞ Vue / ⚙ Paramètres) même si
|
||||||
|
la détection user échoue ou est en retard.
|
||||||
|
Le script JS mettra à jour le textContent + classes quand le
|
||||||
|
fetch aboutit. En cas d'échec persistant, reste sur "?". -->
|
||||||
|
<button id="user-badge" class="user-badge user-badge-unknown"
|
||||||
type="button" aria-label="Utilisateur connecté"
|
type="button" aria-label="Utilisateur connecté"
|
||||||
title="Utilisateur connecté"></button>
|
title="Utilisateur — cliquer pour accéder aux paramètres">?</button>
|
||||||
<h1 id="app-title">Planification</h1>
|
<h1 id="app-title">Planification</h1>
|
||||||
<div class="date-nav">
|
<div class="date-nav">
|
||||||
<button id="nav-prev" class="btn btn-nav" title="Jour précédent" aria-label="Jour précédent">◀</button>
|
<button id="nav-prev" class="btn btn-nav" title="Jour précédent" aria-label="Jour précédent">◀</button>
|
||||||
<input type="date" id="date-picker" class="date-input">
|
<!-- v2026.5.17 : input date custom qui affiche "Vendredi 24.04.2026" -->
|
||||||
|
<div class="date-custom-wrapper">
|
||||||
|
<div id="date-custom" class="date-custom" role="button" tabindex="0" title="Choisir une date">
|
||||||
|
<span id="date-custom-label"></span>
|
||||||
|
<span class="date-custom-icon">📅</span>
|
||||||
|
</div>
|
||||||
|
<input type="date" id="date-picker" class="date-input-hidden">
|
||||||
|
</div>
|
||||||
<button id="nav-next" class="btn btn-nav" title="Jour suivant" aria-label="Jour suivant">▶</button>
|
<button id="nav-next" class="btn btn-nav" title="Jour suivant" aria-label="Jour suivant">▶</button>
|
||||||
<button id="nav-today" class="btn btn-today" title="Aujourd'hui">Auj.</button>
|
<button id="nav-today" class="btn btn-today" title="Aujourd'hui">Auj.</button>
|
||||||
</div>
|
</div>
|
||||||
<span id="capture-info" class="capture-info"></span>
|
<span id="capture-info" class="capture-info"></span>
|
||||||
<span id="refresh-check" class="refresh-check hidden" title="Mise à jour terminée">✓</span>
|
<span id="refresh-check" class="refresh-check hidden" title="Mise à jour terminée">✓</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- v5.0.0 : horloge au milieu, format HH:MM, mise à jour toutes les min -->
|
<!-- v2026.5.16 : date complète du jour au-dessus de l'heure dans la topbar -->
|
||||||
<div id="app-clock" class="app-clock" title="Heure actuelle"></div>
|
<div id="app-clock" class="app-clock" title="Date et heure actuelles">
|
||||||
|
<div id="app-clock-date" class="app-clock-date"></div>
|
||||||
|
<div id="app-clock-time" class="app-clock-time"></div>
|
||||||
|
</div>
|
||||||
<!-- v5.0.9 : compteur de session EasyVista (visible < 5 min restantes) -->
|
<!-- v5.0.9 : compteur de session EasyVista (visible < 5 min restantes) -->
|
||||||
<div id="app-session" class="app-session hidden"></div>
|
<div id="app-session" class="app-session hidden"></div>
|
||||||
<div class="topbar-right">
|
<div class="topbar-right">
|
||||||
|
|||||||
Reference in New Issue
Block a user