[Report & Block] Render report reason and description fields
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 85/100
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
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.
- Lingua principale
- PLpgSQL
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DevDogsUGA/DogPack
-
polish
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
DevDogsUGA/DogPack#131 ·
-
polish
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
DevDogsUGA/DogPack#119 ·
-
discover
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
DevDogsUGA/DogPack#106 ·
-
discover
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
DevDogsUGA/DogPack#99 ·
Tutte le issue di DevDogsUGA/DogPack
Issue simili
-
Add cover art to song rowsApertaenhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
apache/rocketmq-dashboard#6896 ·
I maintainer di solito rispondono entro 3 giorni
-
Endpoint links in the tag operations list are below the 24px target sizeForse già presa @AdzerKI l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
keyxmakerx/Chronicle#1469 ·
I maintainer di solito rispondono entro 1 giorno
-
area: runtime type: bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
eknowledger/toolbench#154 ·
I maintainer di solito rispondono entro 1 giorno