[Discover + Join/Leave] Bind leave and refresh seats
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 58/100
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
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
lib/screens/sessions/session_detail_screen.dart(extend the prerequisite’s file)- Starting example: lib/screens/home_screen.dart
Steps
- When Leave is tapped, disable repeats and wait for onLeave. On success, set the visible membership to not joined and refresh the meeting.
- On failure, keep the joined state and show “Couldn’t leave. Try again.” Re-enable the action for a retry.
- 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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DevDogsUGA/DogPack
-
polish
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
DevDogsUGA/DogPack#131 ·
-
polish
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
DevDogsUGA/DogPack#119 ·
-
moderation
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
DevDogsUGA/DogPack#113 ·
-
discover
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
DevDogsUGA/DogPack#106 ·
Tutte le issue di DevDogsUGA/DogPack
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
apache/rocketmq-dashboard#6896 ·
I maintainer di solito rispondono entro 3 giorni
-
Endpoint links in the tag operations list are below the 24px target sizeForse già presa @AdzerKI l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
keyxmakerx/Chronicle#1469 ·
I maintainer di solito rispondono entro 1 giorno
-
area: runtime type: bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
eknowledger/toolbench#154 ·
I maintainer di solito rispondono entro 1 giorno
-
bug confirmed issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
open-webui/open-webui#32635 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno