[Report & Block] Render report reason and description fields
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 85/100
Línea de trabajo
Crea lib/widgets/report_form.dart y mantén las cadenas de motivo almacenadas alineadas con la lista acordada en supabase/functions/_shared/moderation/messages.ts. Lee docs/guides/testing.md y el recetario de pruebas de widgets de Flutter antes de escribir test/widgets/report_form_dp_r02_test.dart. El formulario recibe un callback onSubmit y valida la explicación. Está terminado cuando los ocho motivos se muestran con etiquetas legibles, los casos Other/en blanco, Spam/en blanco y 1001 caracteres se comportan como se describe, y flutter test test/widgets/report_form_dp_r02_test.dart junto con flutter analyze pasan.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What to build
Build the report form using the eight agreed reasons and an optional explanation. Require an explanation for “Other” and enforce the maximum length before sending anything.
Files
lib/widgets/report_form.dart(new file)- Starting example: supabase/functions/_shared/moderation/messages.ts
Steps
- Offer harassment, hate_speech, spam, sexual_content, violence, impersonation, off_topic and other, with readable dropdown labels. Keep the stored reason strings unchanged.
- Add the explanation field. For other, require nonblank text after trimming; every explanation must be at most 1000 characters.
- Pass the checked reason/explanation to onSubmit. Check Other with blank text, Spam without text and an explanation of 1001 characters.
Example
Other+blank blocks;Spam+blank valid;1001 characters blocks.
Check it works
In test/widgets/report_form_dp_r02_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/widgets/report_form_dp_r02_test.dart and flutter analyze.
Before starting
- #112 — Map report response/error outcomes
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 ·
-
discover
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
DevDogsUGA/DogPack#106 ·
-
discover
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
DevDogsUGA/DogPack#99 ·
Todos los issues de DevDogsUGA/DogPack
Issues similares
-
Contrib indemnité de départ à la retraite : faire le pont avec le simulateur sur la page génériqueAbiertoP1
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
SocialGouv/code-du-travail-numerique#7561 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
schmayterling/hibi#245 ·
Los mantenedores suelen responder en 1 día
-
Web: Participant items in Participants Pane lack accessible aria-label for screen readersPosiblemente ocupada @muskan-creates352 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
jitsi/jitsi-meet#17973 ·
Los mantenedores suelen responder en 1 día