Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Optionally show program status on the org profile's Events-attended cards

Abierto
#2,066 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
Stack tecnológico
rails, ruby

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 (the events.each card 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

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rubyforgood/awbw

Todos los issues de rubyforgood/awbw

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.