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 own block list with safe identity fallback

Đang mở Phù hợp với người mới
#119 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
75/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, supabase
Lĩnh vực
mobile

Hướng nghiên cứu

Đọc lib/moderation/block_repository.dart và schema tại supabase/schemas/dogpack/tables/blocks.sql để xem repository chặn hiện có và cấu trúc bảng. Thêm phương thức blockedUserIds lọc theo blockerId, sau đó cập nhật màn hình để hiển thị tên đã lưu trong bộ nhớ đệm hoặc Blocked user <shortID>. Chạy flutter test test/moderation/block_repository_dp_r06_test.dart và flutter analyze; hoàn thành khi test bao phủ phương án dự phòng cho hồ sơ ẩn và test pass.

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

Load the current student’s own block list and show a safe label for each entry. The list must still support unblocking when the blocked person’s profile is hidden.

Files

  • lib/moderation/block_repository.dart (extend the prerequisite’s file)
  • Starting example: supabase/schemas/dogpack/tables/blocks.sql
    Code to add or extend: Future<List<String>> blockedUserIds(client,blockerId).

Steps

  1. Select blockedId from blocks filtered by caller blockerId, not all rows.
  2. Screen renders each own block using known cached name only when authorized, otherwise Blocked user .
  3. Do not fetch hidden profiles with administrator credentials to fill names.

Example

Hidden profile still has an unblock row with safe fallback, not guessed name.

Check it works

In test/moderation/block_repository_dp_r06_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/moderation/block_repository_dp_r06_test.dart and flutter analyze.

Before starting

  • #115 — Delete a caller-owned block
  • #73 — Show profile loading/error and Home navigation

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ề Mobile 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.