Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#110 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
dart, flutter
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
PLpgSQL
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DevDogsUGA/DogPack

Tutte le issue di DevDogsUGA/DogPack

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.