feat: rediseño de Grupos y pantalla "Requiere atención"
- Grupos: subtítulo con resumen (grupos · alumnos · lugares libres), sección "Requiere atención" con los 4 alumnos más urgentes y tarjetas con avatares (punteados por lugar libre en grupos chicos, superpuestos con "+N" en grandes; con alerta primero y anillo de gravedad). - Pantalla nueva /groups/attention: filtros Todos/Asistencia/Pagos, secciones Urgente y A vigilar, Contactar / Enviar recordatorio por wa.me y "Resuelto" persistente con update optimista. - FAB "Nuevo grupo" que se pliega al scrollear (respeta reduced motion); los toasts en mobile suben para no quedar debajo. - Alertas centralizadas en computeStudentAlerts (shared). La regla de asistencia pasa a: urgente = 3 seguidas o 4 de las últimas 6; a vigilar = 2 de las últimas 4 (sin inactividad por días ni tendencia). Cuotas: 1 vencida vigilar, 2+ urgente. - Backend: GET /attention y POST /attention/:attendeeId/resolve; tabla attendee_alert_resolutions (la alerta vuelve si cambia la firma). - Tokens de gravedad para claro y oscuro; se quita el indicador de pills. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -70,6 +70,17 @@
|
||||
--color-attendance-high: var(--attendance-high);
|
||||
--color-attendance-attention: var(--attendance-attention);
|
||||
--color-attendance-ok: var(--attendance-ok);
|
||||
/* "Requiere atención": severity of a student alert (ring, text, pill and the
|
||||
container of the Grupos preview) and the "N libres" green. */
|
||||
--color-alert-urgent-ring: var(--alert-urgent-ring);
|
||||
--color-alert-urgent-fg: var(--alert-urgent-fg);
|
||||
--color-alert-urgent-soft: var(--alert-urgent-soft);
|
||||
--color-alert-urgent-surface: var(--alert-urgent-surface);
|
||||
--color-alert-urgent-edge: var(--alert-urgent-edge);
|
||||
--color-alert-watch-ring: var(--alert-watch-ring);
|
||||
--color-alert-watch-fg: var(--alert-watch-fg);
|
||||
--color-alert-watch-soft: var(--alert-watch-soft);
|
||||
--color-free-fg: var(--free-fg);
|
||||
|
||||
/* Default border radius */
|
||||
--radius-xl: 0.75rem;
|
||||
@@ -157,6 +168,18 @@
|
||||
--attendance-high: #d63b3b;
|
||||
--attendance-attention: #f5a623;
|
||||
--attendance-ok: #2b7bd6;
|
||||
/* Alert severities. Text on its pill: urgent #b91c1c on #fee2e2 is 5.4:1,
|
||||
watch #92400e on #fef3c7 is 6.4:1; the free green #15803d is 5.0:1 on the
|
||||
card. The rings are fills (3:1 is enough), always next to a text label. */
|
||||
--alert-urgent-ring: #dc2626;
|
||||
--alert-urgent-fg: #b91c1c;
|
||||
--alert-urgent-soft: #fee2e2;
|
||||
--alert-urgent-surface: #fef2f2;
|
||||
--alert-urgent-edge: #fecaca;
|
||||
--alert-watch-ring: #d97706;
|
||||
--alert-watch-fg: #92400e;
|
||||
--alert-watch-soft: #fef3c7;
|
||||
--free-fg: #15803d;
|
||||
}
|
||||
|
||||
.dark {
|
||||
@@ -194,6 +217,15 @@
|
||||
/* In dark `#fb7185` already scores 5.44:1 on the card: legible as text and
|
||||
more than enough as a fill, so there's nothing to move here. */
|
||||
--danger-fg: var(--danger);
|
||||
--alert-urgent-ring: #f87171;
|
||||
--alert-urgent-fg: #fca5a5;
|
||||
--alert-urgent-soft: #2e1419;
|
||||
--alert-urgent-surface: #15111a;
|
||||
--alert-urgent-edge: #3a2028;
|
||||
--alert-watch-ring: #fbbf24;
|
||||
--alert-watch-fg: #fde68a;
|
||||
--alert-watch-soft: #2b220f;
|
||||
--free-fg: #86efac;
|
||||
}
|
||||
|
||||
@layer base {
|
||||
|
||||
Reference in New Issue
Block a user