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:
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user