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:
@@ -27,6 +27,7 @@ import { Route as AdminIndexRouteImport } from './routes/admin/index'
|
||||
import { Route as JoinTokenRouteImport } from './routes/join.$token'
|
||||
import { Route as ReportAbsenceTokenRouteImport } from './routes/report-absence.$token'
|
||||
import { Route as AuthenticatedGroupsIndexRouteImport } from './routes/_authenticated/groups/index'
|
||||
import { Route as AuthenticatedGroupsAttentionRouteImport } from './routes/_authenticated/groups/attention'
|
||||
import { Route as AuthenticatedGroupsNewRouteImport } from './routes/_authenticated/groups/new'
|
||||
import { Route as AdminAccountsAccountIdRouteImport } from './routes/admin/accounts.$accountId'
|
||||
import { Route as AuthenticatedClassSessionIdAttendanceRouteImport } from './routes/_authenticated/class/$sessionId/attendance'
|
||||
@@ -125,6 +126,12 @@ const AuthenticatedGroupsIndexRoute =
|
||||
path: '/groups/',
|
||||
getParentRoute: () => AuthenticatedRoute,
|
||||
} as any)
|
||||
const AuthenticatedGroupsAttentionRoute =
|
||||
AuthenticatedGroupsAttentionRouteImport.update({
|
||||
id: '/groups/attention',
|
||||
path: '/groups/attention',
|
||||
getParentRoute: () => AuthenticatedRoute,
|
||||
} as any)
|
||||
const AuthenticatedGroupsNewRoute = AuthenticatedGroupsNewRouteImport.update({
|
||||
id: '/groups/new',
|
||||
path: '/groups/new',
|
||||
@@ -183,6 +190,7 @@ export interface FileRoutesByFullPath {
|
||||
'/join/$token': typeof JoinTokenRoute
|
||||
'/report-absence/$token': typeof ReportAbsenceTokenRoute
|
||||
'/admin/': typeof AdminIndexRoute
|
||||
'/groups/attention': typeof AuthenticatedGroupsAttentionRoute
|
||||
'/groups/new': typeof AuthenticatedGroupsNewRoute
|
||||
'/admin/accounts/$accountId': typeof AdminAccountsAccountIdRoute
|
||||
'/groups/': typeof AuthenticatedGroupsIndexRoute
|
||||
@@ -208,6 +216,7 @@ export interface FileRoutesByTo {
|
||||
'/report-absence/$token': typeof ReportAbsenceTokenRoute
|
||||
'/': typeof AuthenticatedIndexRoute
|
||||
'/admin': typeof AdminIndexRoute
|
||||
'/groups/attention': typeof AuthenticatedGroupsAttentionRoute
|
||||
'/groups/new': typeof AuthenticatedGroupsNewRoute
|
||||
'/admin/accounts/$accountId': typeof AdminAccountsAccountIdRoute
|
||||
'/groups': typeof AuthenticatedGroupsIndexRoute
|
||||
@@ -236,6 +245,7 @@ export interface FileRoutesById {
|
||||
'/report-absence/$token': typeof ReportAbsenceTokenRoute
|
||||
'/_authenticated/': typeof AuthenticatedIndexRoute
|
||||
'/admin/': typeof AdminIndexRoute
|
||||
'/_authenticated/groups/attention': typeof AuthenticatedGroupsAttentionRoute
|
||||
'/_authenticated/groups/new': typeof AuthenticatedGroupsNewRoute
|
||||
'/admin/accounts/$accountId': typeof AdminAccountsAccountIdRoute
|
||||
'/_authenticated/groups/': typeof AuthenticatedGroupsIndexRoute
|
||||
@@ -264,6 +274,7 @@ export interface FileRouteTypes {
|
||||
| '/join/$token'
|
||||
| '/report-absence/$token'
|
||||
| '/admin/'
|
||||
| '/groups/attention'
|
||||
| '/groups/new'
|
||||
| '/admin/accounts/$accountId'
|
||||
| '/groups/'
|
||||
@@ -289,6 +300,7 @@ export interface FileRouteTypes {
|
||||
| '/report-absence/$token'
|
||||
| '/'
|
||||
| '/admin'
|
||||
| '/groups/attention'
|
||||
| '/groups/new'
|
||||
| '/admin/accounts/$accountId'
|
||||
| '/groups'
|
||||
@@ -316,6 +328,7 @@ export interface FileRouteTypes {
|
||||
| '/report-absence/$token'
|
||||
| '/_authenticated/'
|
||||
| '/admin/'
|
||||
| '/_authenticated/groups/attention'
|
||||
| '/_authenticated/groups/new'
|
||||
| '/admin/accounts/$accountId'
|
||||
| '/_authenticated/groups/'
|
||||
@@ -467,6 +480,13 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof AuthenticatedGroupsIndexRouteImport
|
||||
parentRoute: typeof AuthenticatedRoute
|
||||
}
|
||||
'/_authenticated/groups/attention': {
|
||||
id: '/_authenticated/groups/attention'
|
||||
path: '/groups/attention'
|
||||
fullPath: '/groups/attention'
|
||||
preLoaderRoute: typeof AuthenticatedGroupsAttentionRouteImport
|
||||
parentRoute: typeof AuthenticatedRoute
|
||||
}
|
||||
'/_authenticated/groups/new': {
|
||||
id: '/_authenticated/groups/new'
|
||||
path: '/groups/new'
|
||||
@@ -526,6 +546,7 @@ interface AuthenticatedRouteChildren {
|
||||
AuthenticatedSecurityRoute: typeof AuthenticatedSecurityRoute
|
||||
AuthenticatedSettingsRoute: typeof AuthenticatedSettingsRoute
|
||||
AuthenticatedIndexRoute: typeof AuthenticatedIndexRoute
|
||||
AuthenticatedGroupsAttentionRoute: typeof AuthenticatedGroupsAttentionRoute
|
||||
AuthenticatedGroupsNewRoute: typeof AuthenticatedGroupsNewRoute
|
||||
AuthenticatedGroupsIndexRoute: typeof AuthenticatedGroupsIndexRoute
|
||||
AuthenticatedClassSessionIdAttendanceRoute: typeof AuthenticatedClassSessionIdAttendanceRoute
|
||||
@@ -542,6 +563,7 @@ const AuthenticatedRouteChildren: AuthenticatedRouteChildren = {
|
||||
AuthenticatedSecurityRoute: AuthenticatedSecurityRoute,
|
||||
AuthenticatedSettingsRoute: AuthenticatedSettingsRoute,
|
||||
AuthenticatedIndexRoute: AuthenticatedIndexRoute,
|
||||
AuthenticatedGroupsAttentionRoute: AuthenticatedGroupsAttentionRoute,
|
||||
AuthenticatedGroupsNewRoute: AuthenticatedGroupsNewRoute,
|
||||
AuthenticatedGroupsIndexRoute: AuthenticatedGroupsIndexRoute,
|
||||
AuthenticatedClassSessionIdAttendanceRoute:
|
||||
|
||||
Reference in New Issue
Block a user