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

[Report & Block] Bind report form submission outcomes

Aperta
#114 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
50/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
dart, flutter
Ambito
mobile

Direzione di ricerca

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.

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

Descrizione

moderation

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

Steps

  1. Set a waiting flag before awaiting send callback and disable repeat submit.
  2. Fulfilled receipt shows Report received. and closes/allows closing; error uses reportErrorMessage and preserves reason/description.
  3. 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.

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 Mobile Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.