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

[Discover + Join/Leave] Bind leave and refresh seats

Abierto
#110 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
58/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
dart, flutter
Área
frontend

Línea de trabajo

Start in lib/screens/sessions/session_detail_screen.dart, where the Leave action and the onLeave callback live, and read the join state added by #109 first, since this issue depends on it. Disable the action on tap, then set the membership to not joined and refresh the meeting's seat count from the server on success. On failure, keep the joined state, show "Couldn't leave. Try again.", and re-enable Leave. Done when flutter test test/screens/sessions/session_detail_screen_dp_d07_2_test.dart and flutter analyze pass for both outcomes.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

discover

What to build

Connect Leave to membership removal and refresh the meeting’s seat count. A failed removal must keep the student shown as joined.

Files

Steps

  1. When Leave is tapped, disable repeats and wait for onLeave. On success, set the visible membership to not joined and refresh the meeting.
  2. On failure, keep the joined state and show “Couldn’t leave. Try again.” Re-enable the action for a retry.
  3. Use the refreshed server count for seats instead of subtracting locally. Check both successful and failed removal.

Example

Rejected leave retainsLeave action; successful leave refreshes and returnsJoin if session still open.

Check it works

In test/screens/sessions/session_detail_screen_dp_d07_2_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/screens/sessions/session_detail_screen_dp_d07_2_test.dart and flutter analyze.

Before starting

  • #109 — Bind join and host-manage UI states

References

Assign yourself before starting, or comment to claim the issue. Project setup.

Lenguaje dominante
PLpgSQL
Estrellas
0
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

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 DevDogsUGA/DogPack

Todos los issues de DevDogsUGA/DogPack

Issues similares

Más issues de Web Dev

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.