[Report & Block] Render own block list with safe identity fallback
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
Research direction
Read lib/moderation/block_repository.dart and the schema at supabase/schemas/dogpack/tables/blocks.sql to see the existing block repository and table shape. Add the blockedUserIds method filtering by blockerId, then update the screen to show a cached name or Blocked user <shortID>. Run flutter test test/moderation/block_repository_dp_r06_test.dart and flutter analyze; done when the test covers the hidden-profile fallback and passes.
Written by the indexing model from the issue text.
Description
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
- Select blockedId from blocks filtered by caller blockerId, not all rows.
- Screen renders each own block using known cached name only when authorized, otherwise Blocked user .
- 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
References
Assign yourself before starting, or comment to claim the issue. Project setup.
- Dominant language
- PLpgSQL
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DevDogsUGA/DogPack
-
polish
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
DevDogsUGA/DogPack#131 ·
-
polish
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
DevDogsUGA/DogPack#113 ·
-
discover
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
DevDogsUGA/DogPack#106 ·
-
discover
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
DevDogsUGA/DogPack#99 ·
All issues in DevDogsUGA/DogPack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
software-mansion/argent#1457 ·
Maintainers usually reply within 1 day
-
agent-ready bug Frontend priority: low UX
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
bug: Authentication and App Check listeners leak the Activity and WebView on AndroidPossibly taken @harbinzhang claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
capawesome-team/capacitor-firebase#1050 ·
Maintainers usually reply within 1 day
-
ai-driven-qa bug Major
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
linagora/twake-assistant#46 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
capawesome-team/capacitor-plugins#1134 ·
Maintainers usually reply within 1 day