[Report & Block] Render report reason and description fields
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 85/100
Hướng nghiên cứu
Tạo lib/widgets/report_form.dart, đồng thời giữ các chuỗi lý do được lưu khớp với danh sách đã thống nhất trong supabase/functions/_shared/moderation/messages.ts. Đọc docs/guides/testing.md và sách hướng dẫn kiểm thử widget của Flutter trước khi viết test/widgets/report_form_dp_r02_test.dart. Form nhận một callback onSubmit và kiểm tra phần giải thích. Hoàn thành khi cả tám lý do hiển thị với nhãn dễ đọc, các trường hợp Other/để trống, Spam/để trống và 1001 ký tự hoạt động đúng như mô tả, và cả flutter test test/widgets/report_form_dp_r02_test.dart lẫn flutter analyze đều chạy thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- PLpgSQL
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DevDogsUGA/DogPack
-
polish
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DevDogsUGA/DogPack#131 ·
-
polish
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DevDogsUGA/DogPack#119 ·
-
discover
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
DevDogsUGA/DogPack#106 ·
-
discover
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DevDogsUGA/DogPack#99 ·
Tất cả issue của DevDogsUGA/DogPack
Issue tương tự
-
[Website] Catalog: unknown sort value and mixed-case technology in the URL break the filtersCó thể đã có người làm @barbierajput378-pixel đã nhận hôm nay. Đang mởarea/website framework/jekyll help wanted language/css language/javascript language/markdown
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
meshery/meshery.io#3088 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AndreyBegma/glass-ui#160 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🐛 Bug Report: Console `/join` shows an endless spinner for invited users who are not signed inĐang mởproduct / auth product / console product / databases product / messaging product / self-hosted product / sites product / storage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue Hacktoberfest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Adnan9-63/life-tracker#46 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Good First Issue Module: Analytics P2 Team S Type: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
google/site-kit-wp#13881 ·
Maintainer thường phản hồi trong vòng 3 ngày