Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Report & Block] Render report reason and description fields

Aperta Adatta ai principianti
#113 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
85/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
dart, flutter
Ambito
frontend

Direzione di ricerca

Crea lib/widgets/report_form.dart mantenendo le stringhe dei motivi salvate allineate all'elenco concordato in supabase/functions/_shared/moderation/messages.ts. Leggi docs/guides/testing.md e il cookbook dei widget test di Flutter prima di scrivere test/widgets/report_form_dp_r02_test.dart. Il form riceve una callback onSubmit e valida la spiegazione. È completato quando gli otto motivi vengono mostrati con etichette leggibili, i casi Other/vuoto, Spam/vuoto e 1001 caratteri si comportano come descritto e flutter test test/widgets/report_form_dp_r02_test.dart insieme a flutter analyze vanno a buon fine.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
PLpgSQL
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DevDogsUGA/DogPack

Tutte le issue di DevDogsUGA/DogPack

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.