Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Report & Block] Render report reason and description fields

Đang mở Phù hợp với người mới
#113 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
dart, flutter
Lĩnh vực
frontend

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ả

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.

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DevDogsUGA/DogPack

Tất cả issue của DevDogsUGA/DogPack

Issue tương tự

Thêm issue về Web Dev

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.