V7.10 — Tableau de bord, guide, semaine type et enveloppe de formation

Reprise dans le répertoire de production du travail mené dans le worktree
ux-service-enfance :

- tableau de bord Service Enfance (dashboard.php) et navigation regroupée ;
- guide d'utilisation (faq.php) accessible depuis toute la navigation ;
- éditeur de semaine type mis en avant sur l'écran de saisie ;
- droit à l'enveloppe de formation par agent, en remplacement de la case
  « formation déjà prévue dans la répartition annuelle » ;
- correctif de « [object Object] » sur les cartes de quota du PTA ;
- motif de travail par défaut à la saisie, heures travaillées complètes
  dans les PDF.

Le docker-compose.yml de production est conservé : celui du worktree décrit
une pile de test (conteneurs et volume suffixés « test », ports 9080/9081),
qui aurait fait redémarrer l'application sur un volume MariaDB vide.

Les migrations database/migration_v7_9*.sql sont obligatoires ; le service
db-migrate les applique au déploiement.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
PTA
2026-08-17 16:53:04 +02:00
parent 57bd8da5c8
commit 4201894e28
69 changed files with 5228 additions and 246 deletions

View File

@@ -2553,3 +2553,612 @@ textarea:disabled {
@media print {
.annual-validation-card { display: none !important; }
}
/* ============================================================
PTA V7.9 - Navigation regroupée et tableau de bord
============================================================ */
/* --- Barre de navigation par intention --------------------- */
.view-tabs-grouped {
align-items: stretch;
gap: 0;
padding: 0.45rem 0.35rem 0.4rem;
}
.view-tab-group {
display: flex;
flex-direction: column;
gap: 0.3rem;
padding: 0 0.6rem;
}
.view-tabs-grouped .view-tab-group + .view-tab-group {
border-left: 1px solid #e2e8f0;
}
.view-tab-group-label {
padding-left: 0.35rem;
color: #7b8794;
font-size: 0.64rem;
font-weight: 800;
letter-spacing: 0.12em;
text-transform: uppercase;
white-space: nowrap;
}
.view-tab-group-items {
display: flex;
gap: 0.35rem;
}
.view-tabs-grouped .view-tab {
padding: 0.55rem 0.8rem;
font-size: 0.94rem;
}
/* Sans titres de groupe, la barre retrouve son alignement d'origine. */
.view-tabs:not(.view-tabs-grouped) .view-tab-group,
.view-tabs:not(.view-tabs-grouped) .view-tab-group-items {
display: contents;
}
.page-header-identity { min-width: 0; }
.page-header-identity .subtitle { max-width: 68ch; }
/* --- Tuiles d'action --------------------------------------- */
.dashboard-context-card .section-heading { align-items: flex-end; }
.dashboard-context-actions {
display: flex;
align-items: flex-end;
gap: 12px;
}
.dashboard-week-field { min-width: 190px; }
.dashboard-context-note {
margin: 14px 0 0;
padding: 10px 13px;
border-radius: 10px;
border-left: 5px solid #2563eb;
background: #eff6ff;
color: #1e3a5f;
font-size: 0.9rem;
}
.dashboard-tiles {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
gap: 16px;
margin-bottom: 20px;
}
.dashboard-tile {
display: grid;
gap: 5px;
padding: 18px 20px;
border: 1px solid #e4e8eb;
border-left: 6px solid #cbd5e1;
border-radius: 16px;
background: #fff;
box-shadow: 0 6px 24px rgba(23, 32, 42, 0.05);
color: inherit;
text-decoration: none;
transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.dashboard-tile:hover,
.dashboard-tile:focus-visible {
transform: translateY(-2px);
box-shadow: 0 12px 28px rgba(23, 32, 42, 0.11);
}
.dashboard-tile-label {
color: #5f6b7a;
font-size: 0.78rem;
font-weight: 800;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.dashboard-tile-value { font-size: 2.1rem; line-height: 1.1; }
.dashboard-tile-detail { color: #66737d; font-size: 0.84rem; }
.dashboard-tile-cta {
margin-top: 6px;
color: #1f4c73;
font-size: 0.82rem;
font-weight: 800;
}
.dashboard-tile-cta::after { content: ' →'; }
.dashboard-tile.is-alert { border-left-color: #c72f3f; }
.dashboard-tile.is-alert .dashboard-tile-value { color: #a3212f; }
.dashboard-tile.is-clear { border-left-color: #2f855a; }
.dashboard-tile.is-clear .dashboard-tile-value { color: #256d3b; }
/* --- Listes « à traiter » ---------------------------------- */
.dashboard-columns {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
gap: 20px;
}
.dashboard-columns > .card { margin-bottom: 0; }
.dashboard-list-card { display: flex; flex-direction: column; }
.dashboard-list {
display: grid;
gap: 9px;
margin: 0;
padding: 0;
list-style: none;
}
.dashboard-list-item {
display: flex;
align-items: center;
gap: 14px;
padding: 11px 13px;
border: 1px solid #e6ebee;
border-radius: 11px;
background: #f9fbfc;
}
.dashboard-list-main { flex: 1 1 auto; min-width: 0; }
.dashboard-list-main strong { display: block; }
.dashboard-list-main small { color: #66737d; font-size: 0.82rem; }
.dashboard-list-meta {
display: grid;
gap: 2px;
text-align: right;
white-space: nowrap;
}
.dashboard-list-meta span { color: #66737d; font-size: 0.78rem; }
.dashboard-list-action {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
min-height: 38px;
padding: 8px 14px;
font-size: 0.86rem;
text-decoration: none;
}
.dashboard-gap-count { color: #a3212f; }
.dashboard-inline-note {
margin-top: 14px;
padding: 11px 13px;
border-radius: 10px;
border-left: 5px solid #d97706;
background: #fffbeb;
color: #7d5c00;
font-size: 0.86rem;
}
/* --- Suivi des quotas -------------------------------------- */
.dashboard-quota-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
gap: 12px;
margin-bottom: 18px;
}
.dashboard-quota-table-wrap { overflow-x: auto; }
.dashboard-quota-table {
width: 100%;
border-collapse: collapse;
font-size: 0.9rem;
}
.dashboard-quota-table th,
.dashboard-quota-table td {
padding: 10px 12px;
border-bottom: 1px solid #eceff1;
text-align: left;
vertical-align: middle;
}
.dashboard-quota-table th {
color: #5f6b7a;
font-size: 0.76rem;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.dashboard-quota-table td small { display: block; color: #66737d; font-size: 0.78rem; }
.dashboard-quota-table tr.is-over-quota { background: #fef4f4; }
.dashboard-quota-action-cell { text-align: right; }
.dashboard-quota-action-cell .button {
display: inline-flex;
align-items: center;
min-height: 36px;
padding: 7px 13px;
font-size: 0.84rem;
text-decoration: none;
}
.dashboard-quota-gauge-cell {
display: flex;
align-items: center;
gap: 10px;
white-space: nowrap;
}
/* Jauge native : la CSP interdit l'attribut style, la largeur ne peut donc pas
être calculée en JavaScript sur une simple div. */
.dashboard-quota-gauge {
width: 110px;
height: 9px;
border: 0;
border-radius: 999px;
background: #e4e9ec;
appearance: none;
}
.dashboard-quota-gauge::-webkit-progress-bar { background: #e4e9ec; border-radius: 999px; }
.dashboard-quota-gauge::-webkit-progress-value { background: #2f6f9f; border-radius: 999px; }
.dashboard-quota-gauge::-moz-progress-bar { background: #2f6f9f; border-radius: 999px; }
.dashboard-quota-gauge.is-over::-webkit-progress-value { background: #c72f3f; }
.dashboard-quota-gauge.is-over::-moz-progress-bar { background: #c72f3f; }
/* --- Raccourcis -------------------------------------------- */
.dashboard-shortcuts {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
gap: 12px;
}
.dashboard-shortcut {
display: grid;
gap: 3px;
padding: 14px 16px;
border: 1px solid #e4e8eb;
border-radius: 12px;
background: #f9fbfc;
color: inherit;
text-decoration: none;
}
.dashboard-shortcut:hover,
.dashboard-shortcut:focus-visible { border-color: #b9c6cf; background: #fff; }
.dashboard-shortcut small { color: #66737d; font-size: 0.82rem; }
@media (max-width: 900px) {
.view-tabs-grouped { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.view-tabs-grouped .view-tab-group + .view-tab-group { border-left: 0; }
.view-tab-group { width: 100%; padding: 0; }
.view-tab-group-items { flex-wrap: wrap; }
.dashboard-context-card .section-heading { align-items: stretch; }
.dashboard-context-actions { flex-wrap: wrap; }
}
@media (max-width: 620px) {
.dashboard-list-item { flex-wrap: wrap; }
.dashboard-list-meta { text-align: left; }
.dashboard-list-action { width: 100%; justify-content: center; }
}
/* ============================================================
PTA V7.10 - Guide d'utilisation (FAQ)
============================================================ */
/* --- Bouton d'accès ancré à droite de la navigation --------- */
/* La barre défile horizontalement quand les onglets débordent ;
`position: sticky` garde le guide visible quoi qu'il arrive. */
.view-tab-help {
display: flex;
position: sticky;
right: 0;
align-items: center;
margin-left: auto;
padding-left: 0.55rem;
background: #f8fafc;
box-shadow: -14px 0 12px -10px rgba(15, 23, 42, 0.16);
}
.view-tabs-grouped .view-tab-help { border-left: 1px solid #e2e8f0; }
.view-tab-faq {
display: inline-flex;
align-items: center;
gap: 0.4rem;
color: #263238;
text-decoration: none;
}
.view-tab-faq-mark {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.35rem;
height: 1.35rem;
border-radius: 50%;
background: #263238;
color: #fff;
font-size: 0.78rem;
line-height: 1;
}
.view-tab-faq:hover,
.view-tab-faq:focus-visible { background: #fff; }
/* --- Mise en page du guide --------------------------------- */
.faq-layout {
display: grid;
grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
align-items: start;
gap: 20px;
}
.faq-summary {
position: sticky;
top: 18px;
padding: 18px 20px;
}
.faq-summary-title {
margin: 0 0 10px;
color: #7b8794;
font-size: 0.7rem;
font-weight: 800;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.faq-summary-list {
margin: 0;
padding-left: 1.1rem;
color: #66737d;
font-size: 0.9rem;
}
.faq-summary-list li { margin-bottom: 7px; }
.faq-summary-list a { color: #263238; text-decoration: none; }
.faq-summary-list a:hover,
.faq-summary-list a:focus-visible { text-decoration: underline; }
.faq-summary-note {
margin: 14px 0 0;
padding-top: 12px;
border-top: 1px solid #eceff1;
color: #66737d;
font-size: 0.8rem;
}
.faq-section { scroll-margin-top: 18px; }
.faq-section h3 { margin: 22px 0 8px; font-size: 1rem; }
.faq-section p { line-height: 1.55; }
.faq-section code {
padding: 1px 5px;
border-radius: 5px;
background: #eef1f4;
font-size: 0.86rem;
}
.faq-section kbd {
padding: 1px 6px;
border: 1px solid #cfd8dc;
border-bottom-width: 2px;
border-radius: 5px;
background: #f8fafc;
font-size: 0.82rem;
}
/* --- Le parcours en huit étapes ---------------------------- */
.faq-flow {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 12px;
margin: 0;
padding: 0;
list-style: none;
}
.faq-flow li {
display: grid;
gap: 3px;
padding: 13px 15px;
border: 1px solid #e4e8eb;
border-radius: 12px;
background: #f9fbfc;
}
.faq-flow-step {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.6rem;
height: 1.6rem;
border-radius: 50%;
background: #263238;
color: #fff;
font-size: 0.8rem;
font-weight: 700;
}
.faq-flow li small { color: #66737d; font-size: 0.82rem; line-height: 1.4; }
/* --- Étapes numérotées et listes --------------------------- */
.faq-steps { margin: 0; padding-left: 1.3rem; }
.faq-steps li { margin-bottom: 9px; line-height: 1.55; }
.faq-list { margin: 0 0 4px; padding-left: 1.3rem; }
.faq-list li { margin-bottom: 7px; line-height: 1.55; }
.faq-callout { margin: 16px 0 0; }
.faq-table th,
.faq-table td { vertical-align: top; line-height: 1.5; }
.faq-table tr.faq-row-current { background: #f2f7f4; }
.faq-level {
display: inline-block;
padding: 2px 8px;
border-radius: 999px;
font-size: 0.74rem;
font-weight: 800;
letter-spacing: 0.03em;
text-transform: uppercase;
white-space: nowrap;
}
.faq-level-error { background: #fdecec; color: #a3212f; }
.faq-level-warning { background: #fffbeb; color: #7d5c00; }
.faq-level-info { background: #eef2f7; color: #37474f; }
/* --- Questions / réponses ---------------------------------- */
.faq-qa { margin: 0; }
.faq-qa dt {
margin-top: 16px;
font-weight: 700;
}
.faq-qa dt:first-child { margin-top: 0; }
.faq-qa dd {
margin: 5px 0 0;
padding-left: 13px;
border-left: 3px solid #e4e8eb;
color: #4b5563;
line-height: 1.55;
}
@media (max-width: 1000px) {
.faq-layout { grid-template-columns: minmax(0, 1fr); }
.faq-summary { position: static; }
}
@media (max-width: 900px) {
.view-tab-help {
position: static;
width: 100%;
margin-left: 0;
padding-left: 0;
box-shadow: none;
}
.view-tabs-grouped .view-tab-help { border-left: 0; }
}
/* ============================================================
PTA V7.15 - Méthode de saisie et éditeur de semaine type
============================================================ */
.editor-mode-choices {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 14px;
}
.editor-mode-choice {
display: grid;
gap: 4px;
padding: 16px 18px;
border: 1px solid #dbe3ee;
border-left: 6px solid #cbd5e1;
border-radius: 14px;
background: #fff;
color: inherit;
font: inherit;
text-align: left;
cursor: pointer;
transition: border-color 0.12s ease, box-shadow 0.15s ease;
}
.editor-mode-choice:hover { border-color: #b9c6cf; }
.editor-mode-choice strong { font-size: 1.05rem; }
.editor-mode-choice small { color: #66737d; }
.editor-mode-choice.is-active {
border-left-color: #256d3b;
box-shadow: 0 6px 22px rgba(23, 32, 42, 0.09);
}
.editor-mode-choice-badge {
justify-self: start;
margin-bottom: 2px;
padding: 3px 9px;
border-radius: 999px;
background: #dff3e5;
color: #256d3b;
font-size: 0.68rem;
font-weight: 900;
letter-spacing: 0.06em;
text-transform: uppercase;
}
/* --- Éditeur de semaine type -------------------------------- */
.template-editor-total { text-align: right; }
.template-editor-total small { display: block; color: #65737b; font-size: 0.78rem; }
.template-editor-toolbar {
display: grid;
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
align-items: end;
gap: 16px;
margin-bottom: 18px;
}
.template-editor-toolbar-actions { display: flex; gap: 10px; }
.template-editor-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 14px;
}
.template-day {
display: flex;
flex-direction: column;
gap: 10px;
padding: 14px;
border: 1px solid #e1e6e9;
border-radius: 12px;
background: #fafbfb;
}
.template-day.is-empty { background: #f5f7f8; }
.template-day-header {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 10px;
padding-bottom: 8px;
border-bottom: 1px solid #e6ebee;
}
.template-day-total { color: #5f6b7a; font-size: 0.85rem; font-weight: 800; }
.template-day-empty { margin: 4px 0; color: #98a1a7; font-size: 0.85rem; }
.template-day-ranges { display: grid; gap: 10px; }
.template-range {
display: grid;
grid-template-columns: 1fr auto auto auto auto;
align-items: end;
gap: 8px;
padding: 10px;
border: 1px solid #dde3e6;
border-radius: 10px;
background: #fff;
}
.template-range-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.template-range-field > span { color: #66737d; font-size: 0.72rem; font-weight: 800; }
.template-range-field-motif { grid-column: 1 / -1; }
.template-range-field-structure { grid-column: 1 / -1; }
.template-range input,
.template-range select { min-height: 38px; padding: 6px 9px; }
.template-range-separator { padding-bottom: 10px; color: #98a1a7; }
.template-range-remove {
min-height: 38px;
padding: 4px 10px;
font-size: 1.1rem;
line-height: 1;
}
.template-day-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.template-day-actions .button { min-height: 38px; padding: 7px 12px; font-size: 0.85rem; }
.template-day-copy-field { flex: 1 1 130px; min-width: 130px; }
.template-day-copy { min-height: 38px; padding: 6px 9px; font-size: 0.85rem; }
.template-editor-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 18px;
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
@media (max-width: 760px) {
.template-editor-toolbar { grid-template-columns: 1fr; }
.template-editor-toolbar-actions { justify-content: flex-start; }
.template-range { grid-template-columns: 1fr 1fr auto; }
.template-range-separator { display: none; }
}