[Report & Block] Bind report form submission outcomes
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 50/100
Línea de trabajo
Start in lib/widgets/report_form.dart, which the prerequisite issue #113 must have built first, and add a waiting flag around the awaited send call that disables the submit control. Use the reportErrorMessage wording referenced in supabase/functions/_shared/moderation/messages.ts for the error path, keeping the selected reason and description intact. Done when test/widgets/report_form_dp_r02_2_test.dart passes with flutter test and flutter analyze is clean.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What to build
Connect the report form to sending, waiting and result messages. Prevent repeated submissions while waiting and keep the selected reason and explanation after a failure.
Files
lib/widgets/report_form.dart(extend the prerequisite’s file)- Starting example: supabase/functions/_shared/moderation/messages.ts
Steps
- Set a waiting flag before awaiting send callback and disable repeat submit.
- Fulfilled receipt shows Report received. and closes/allows closing; error uses reportErrorMessage and preserves reason/description.
- Clear pending only when the screen is still open; do not optimistically claim moderation success.
Example
One pending tap → one call;502retains text;201acknowledges receipt.
Check it works
In test/widgets/report_form_dp_r02_2_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/widgets/report_form_dp_r02_2_test.dart and flutter analyze.
Before starting
- #113 — Render report reason and description fields
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
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DevDogsUGA/DogPack
-
polish
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DevDogsUGA/DogPack#131 ·
-
polish
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
DevDogsUGA/DogPack#119 ·
-
moderation
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
DevDogsUGA/DogPack#113 ·
-
discover
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
DevDogsUGA/DogPack#106 ·
Todos los issues de DevDogsUGA/DogPack
Issues similares
-
backlog:low bug localization
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
simonoppowa/OpenNutriTracker#1366 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 2 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 60/100
meshtastic/Meshtastic-Apple#2603 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 3 días