Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[Report & Block] Render report reason and description fields

Abierto Apto para principiantes
#113 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
85/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
dart, flutter
Área
frontend

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

moderation

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

Steps

  1. Offer harassment, hate_speech, spam, sexual_content, violence, impersonation, off_topic and other, with readable dropdown labels. Keep the stored reason strings unchanged.
  2. Add the explanation field. For other, require nonblank text after trimming; every explanation must be at most 1000 characters.
  3. 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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DevDogsUGA/DogPack

Todos los issues de DevDogsUGA/DogPack

Issues similares

Más issues de Web Dev

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.