feat: filtro de grupo en cobros con cuotas pendientes por grupo

- El listado de grupos devuelve `unpaidPaymentsCount` (PENDING y OVERDUE).
- Cobros: nuevo selector de grupo (GroupFilter) junto a los filtros de estado;
  con un grupo filtrado no se repite su nombre en cada card.
- Sheet: entra deslizando desde abajo en mobile (salvo reduced motion).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jose Selesan
2026-11-02 14:59:33 -03:00
parent b6f22ae67d
commit d397e9663c
12 changed files with 326 additions and 34 deletions

View File

@@ -52,10 +52,13 @@ export type InviteTokenResult = z.output<typeof InviteTokenResultSchema>;
the card shows them: `attendeesCount` are the group's members (all of them,
same as the detail page counts) and `waitlistCount` those on the waitlist
waiting for a spot (PENDING). The pre-registrations list is a different
thing and does not belong here. */
thing and does not belong here. `unpaidPaymentsCount` are the group's
payments still to collect (PENDING and OVERDUE), shown by the group filter
of the payments screen. */
export const GroupListItemSchema = GroupDtoSchema.extend({
attendeesCount: z.number().int().min(0),
waitlistCount: z.number().int().min(0),
unpaidPaymentsCount: z.number().int().min(0),
});
export type GroupListItem = z.output<typeof GroupListItemSchema>;