[Report & Block] Render authorized host profile detail
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 40/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- dart, supabase
- Bereich
- authorization, mobile
Rechercherichtung
Start with the schema in supabase/schemas/dogpack/tables/profiles.sql to see which columns are readable, then read the session code from #108 and the snapshot mapping from #26, since this issue depends on both. Create lib/screens/member_profile_screen.dart, query userId, displayName, classYear and major with the signed-in student's client using maybeSingle, and show an 'Profile unavailable' message when the result is null. Done when test/screens/member_profile_screen_dp_r04_test.dart passes for the authorized and unavailable cases and flutter analyze is clean.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
What to build
Show a host’s profile only when the current student is allowed to read it. An unavailable profile should show a neutral message instead of private fields or an invented name.
Files
lib/screens/member_profile_screen.dart(new file)- Starting example: supabase/schemas/dogpack/tables/profiles.sql
Steps
- Select userId,displayName,classYear,major from profiles for target user with client using the signed-in student’s account/maybeSingle.
- Render visible plain snapshot, reporting/block callbacks with the target UUID; null produces Profile unavailable.
- Do not fetch via service key or show an invented host name.
Example
Authorized host Ada renders; hidden profile shows unavailable and no leaked fields.
Check it works
In test/screens/member_profile_screen_dp_r04_test.dart, check the example above and the failure or limit described in the steps. Run flutter test test/screens/member_profile_screen_dp_r04_test.dart and flutter analyze.
Before starting
References
Assign yourself before starting, or comment to claim the issue. Project setup.
- Vorherrschende Sprache
- PLpgSQL
- Sterne
- 0
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus DevDogsUGA/DogPack
-
polish
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
DevDogsUGA/DogPack#131 ·
-
polish
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
DevDogsUGA/DogPack#119 ·
-
moderation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
DevDogsUGA/DogPack#113 ·
-
discover
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
DevDogsUGA/DogPack#106 ·
Alle Issues in DevDogsUGA/DogPack
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
ADORSYS-GIS/token-status-link#168 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
adorsys/status-list-server#698 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
apache/rocketmq-dashboard#6864 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
[BUG] Keycloak OIDC group search fails for non-ASCII (e.g. Chinese) search terms with "unexpected end of JSON input"Evtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
⏳ Pending feedback 🐛 Bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
jumpserver/jumpserver#17758 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag