feat(attendee-detail): enhance attendee detail view with payment and notes sections

- Added payment presentation logic to display payment status and due dates.
- Introduced AttendeeNotesSection and AttendeePaymentsSection components for managing notes and payments.
- Implemented forms for editing contact information and notes with validation.
- Updated API to support attendee updates and added corresponding tests.
- Improved attendance summary logic to reflect all visible sessions.
- Enhanced UI with loading states and error handling for better user experience.
This commit is contained in:
Jose Selesan
2026-10-01 18:41:55 -03:00
parent 6d120f4b1f
commit faf949fc9b
31 changed files with 1129 additions and 225 deletions

View File

@@ -26,19 +26,17 @@ export function AbsenceLinkSection() {
return (
<Section
title="Link de ausencias"
description="Para que avise si no puede venir"
toggle={{ isOpen, panelId, onToggle: () => setIsOpen((value) => !value) }}
>
{/* The panel stays in the DOM but hidden: `aria-controls` always resolves and
the "Link copied" text is not lost on collapse/expand. */}
<div id={panelId} hidden={!isOpen}>
<p className="px-3 text-sm text-foreground">
Mandales este link para que avisen cuando no puedan venir.
</p>
{/* Stacked and full width: at 50% the labels ("Enviar por WhatsApp")
wrapped onto two lines and fell below the minimum touch target.
Copy stays on top, glued to its confirmation, and the primary action
is told apart by the accent fill. */}
<div className="mt-2.5 flex flex-col gap-2">
<div className="flex flex-col gap-2">
<button
type="button"
onClick={() => copy(url)}