feat: cambiar a un miembro de grupo

- `POST /groups/:gid/attendees/:aid/move` mueve al mismo attendee a otro
  grupo del profesor: conserva historial, cuotas (siguen del grupo anterior)
  y acceso a la app de alumnos. Cancela las faltas avisadas y libera lo
  reservado en clases futuras del grupo anterior.
- Cupo y teléfono duplicado se validan con `checkCanJoinGroup`, compartido
  con el paso desde la lista de espera.
- Ficha del miembro: "Cambiar de grupo" abre un diálogo con el selector de
  grupo destino y navega a la ficha en el grupo nuevo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jose Selesan
2026-11-02 16:21:32 -03:00
parent fc12ec3ae0
commit f1829fb5a9
11 changed files with 571 additions and 22 deletions

View File

@@ -168,6 +168,13 @@ export const PromoteGroupWaitlistEntrySchema = z.object({
});
export type PromoteGroupWaitlistEntry = z.output<typeof PromoteGroupWaitlistEntrySchema>;
// Moves a member to another group of the same teacher. History, fees and the
// student app access go with them (it is the same attendee).
export const MoveAttendeeSchema = z.object({
targetGroupId: z.string().min(1),
});
export type MoveAttendee = z.output<typeof MoveAttendeeSchema>;
export const PromoteGroupWaitlistEntryResultSchema = z.object({
attendee: AttendeeDtoSchema,
});