From 59a4d18ce69531e3e36eeb1876692bd25c10c1e5 Mon Sep 17 00:00:00 2001 From: Jose Selesan Date: Fri, 2 Oct 2026 09:42:11 -0300 Subject: [PATCH] feat: enhance MembersWaitlistSection and PendingView for improved layout and sticky controls --- .../groups/detail/MembersWaitlistSection.tsx | 47 +++++++++++++------ .../features/groups/detail/PendingView.tsx | 6 +-- 2 files changed, 35 insertions(+), 18 deletions(-) diff --git a/apps/web/src/features/groups/detail/MembersWaitlistSection.tsx b/apps/web/src/features/groups/detail/MembersWaitlistSection.tsx index 192ab5b..e0f06ba 100644 --- a/apps/web/src/features/groups/detail/MembersWaitlistSection.tsx +++ b/apps/web/src/features/groups/detail/MembersWaitlistSection.tsx @@ -20,10 +20,18 @@ export function MembersWaitlistSection() { // controls and data comes from the row dividers themselves, the input's own // tone and the chips' border; an intermediate box only added a level of // containment and horizontal padding. - // `overflow-hidden` clips the rows' hover and the bottom border against the - // panel's radius: the rows are full-bleed. -
-
+
+ {/* The controls travel with the scroll: with a long list the chips and the + search are the only way to change what you're looking at, and losing + them halfway down means scrolling back up to undo a search. They stick + under the group's bar and go back to their place on their own when the + panel's top edge comes back into view (i.e. at the first row). + + `top-14` is the `h-14` of `ImmersiveBarHost`: without it the row would + slide underneath the bar instead of below it. `z-30` leaves the bar + (`z-40`) and modals/toasts (`z-50`) above. The opaque `bg-primary-soft` + is what hides the rows going under, so no blur is needed. */} +
@@ -40,19 +48,28 @@ export function MembersWaitlistSection() {
) : null}
- - {/* Only Pendientes has supporting copy: it explains the difference - between pre-registration and waitlist, which cannot be deduced from - the names. In Miembros the column labels already say everything. */} - {listSection === 'pending' ? ( -

- Pre-inscripciones que esperan tu aprobación y personas en lista de espera por un cupo - libre. -

- ) : null}
- {listSection === 'members' ? : } + {/* Only Pendientes has supporting copy: it explains the difference + between pre-registration and waitlist, which cannot be deduced from + the names. In Miembros the column labels already say everything. It + lives outside the sticky row so it doesn't become fixed height up + there; `pt-2` is the gap the row's `p-3` used to leave. */} + {listSection === 'pending' ? ( +

+ Pre-inscripciones que esperan tu aprobación y personas en lista de espera por un cupo + libre. +

+ ) : null} + + {/* The clipping the panel used to do lives here now. It can't stay on the + panel: an ancestor with `overflow` is a scroll container, and a sticky + element resolves against that scrollport — never moving at all. Here it + is harmless because the controls are siblings above it, not inside it. + It squares off the last row's bottom border and the empty states. */} +
+ {listSection === 'members' ? : } +
) } diff --git a/apps/web/src/features/groups/detail/PendingView.tsx b/apps/web/src/features/groups/detail/PendingView.tsx index 35e24ca..bc673c2 100644 --- a/apps/web/src/features/groups/detail/PendingView.tsx +++ b/apps/web/src/features/groups/detail/PendingView.tsx @@ -37,9 +37,9 @@ export function PendingView() { if (!hasAnyEntry && !query) { return ( - // Full-bleed and with no radius of its own: the panel's `overflow-hidden` - // clips it against the rounded silhouette. `surface` over `primary-soft` - // sinks the block; with the previous wash it camouflaged. + // Full-bleed and with no radius of its own: the list wrapper's + // `overflow-hidden` clips it against the rounded silhouette. `surface` over + // `primary-soft` sinks the block; with the previous wash it camouflaged.

No hay pendientes