[Discover + Join/Leave] Map enrollment/host/onboarding join errors
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Start in lib/sessions/join_errors.dart, which #106 must create or extend first, and look at joinErrorMessage and the new recoveryFor(String reason); the enrollment reference is supabase/schemas/dogpack/tables/session_members.sql. Add the JoinRecovery enum and the not_enrolled, host_cannot_join and onboarding_required mappings with their messages, then have the consumer recheck the account only for onboarding. Done when flutter test test/sessions/join_errors_dp_d04_3_test.dart and flutter analyze pass.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What to build
Explain the remaining join refusals and offer the correct next action. A missing course, a host trying to join their own meeting and incomplete setup need different recovery behavior.
Files
lib/sessions/join_errors.dart(extend the prerequisite’s file)- Starting example: supabase/schemas/dogpack/tables/session_members.sql
Code to add or extend:JoinRecovery recoveryFor(String reason).
Steps
- Declare enum recovery none/profile/manage/onboarding/refresh. Map not_enrolled→profile,host_cannot_join→manage,onboarding_required→onboarding, the earlier full/closed/unavailable→refresh.
- In
joinErrorMessage, use “Add this course to your profile before joining.” fornot_enrolled, “You host this session; use Manage instead.” forhost_cannot_join, and “Finish setup before joining.” foronboarding_required. - Consumer calls account recheck only for onboarding, rather than any PT403.
Example
not_enrolled offers profile; host_cannot_join offers Manage; onboarding_required re-enters account check.
Check it works
In test/sessions/join_errors_dp_d04_3_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/sessions/join_errors_dp_d04_3_test.dart and flutter analyze.
Before starting
- #106 — Map session full/closed/unavailable join errors
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
-
Improve Sort Pop-Up list...Apertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
bisq-network/bisq-mobile#1948 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
streetcomplete/StreetComplete#7286 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug-pending-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
NativeScript/NativeScript#11525 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
callstack/agent-device#3627 ·
I maintainer di solito rispondono entro 1 giorno