Optionally show program status on the org profile's Events-attended cards
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Área
- authorization, frontend
Línea de trabajo
Empieza en app/views/organizations/sections/_events.html.erb, en el bucle de tarjetas events.each, y luego inspecciona facilitator_status_as_of(event.start_date) y OrganizationDecorator.program_status_classes(status). Determina si el badge sigue la visibilidad existente exclusiva para administradores o si se muestra a los usuarios autenticados. Se considera terminado cuando cada tarjeta Events-attended presenta el estado de ese evento sin duplicar el bloque separado de Program status.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
🤖 From Claude: Raised as a "maybe" during the #1993 session; deferred.
Context
On the org profile (organizations#show), the admin-only "Program status" block shows one chip per event the org participated in — the org's facilitator-program status as of that event's date (New/Ongoing/Reinstate), each linking to the event participation report.
Separately, the "Events attended" section renders event cards (render "people/show_card" in app/views/organizations/sections/_events.html.erb) with no status on them.
Idea
Also surface each event's program status inline on its card in the Events-attended section, so the status is visible while browsing events — not only in the separate Program status block.
Notes for whoever picks this up
- Per-event status is already computed:
organization.decorate.facilitator_status_as_of(event.start_date)→OrganizationDecorator.program_status_classes(status)for the pill classes (New= indigo,Ongoing= blue,Reinstate= purple). - Visibility mismatch to resolve: the event cards are shown to authenticated users (gated by
profile_show_events_registered?), whereas the Program-status chips are admin-only (allowed_to?(:manage?, Organization)⇒admin?). Decide whether a per-card status badge should be admin-only too, or public. - Avoid duplicating the existing block — a small badge on the card, not a second full chip row.
- File:
app/views/organizations/sections/_events.html.erb(theevents.eachcard loop). The events are already loaded there.
- Lenguaje dominante
- Ruby
- Estrellas
- 15
- Forks
- 28
- Merge medio
- 1 d 12 min
- PR fusionados (30 d)
- 262
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de rubyforgood/awbw
-
blocked
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
rubyforgood/awbw#2824 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
rubyforgood/awbw#2822 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
rubyforgood/awbw#2160 ·
Los mantenedores suelen responder en 1 día
-
Update callout faq defualt text when the new person subscription launchesPosiblemente ocupada @maebeale la tomó hace 78 días. Abiertoblocked
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
rubyforgood/awbw#2095 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
rubyforgood/awbw#2088 ·
Los mantenedores suelen responder en 1 día
Todos los issues de rubyforgood/awbw
Issues similares
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
rubyaustralia/ruby_au#497 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
TheOdinProject/curriculum#31493 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día