Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

[Report & Block] Render authorized host profile detail

Aberta
#116 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
40/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
dart, supabase
Domínio
authorization, mobile

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

moderation

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

Steps

  1. Select userId,displayName,classYear,major from profiles for target user with client using the signed-in student’s account/maybeSingle.
  2. Render visible plain snapshot, reporting/block callbacks with the target UUID; null produces Profile unavailable.
  3. 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

  • #108 — Read authorized session detail
  • #26 — Map own profile to a plain snapshot

References

Assign yourself before starting, or comment to claim the issue. Project setup.

Linguagem predominante
PLpgSQL
Estrelas
0
Forks
0
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de DevDogsUGA/DogPack

Todas as issues de DevDogsUGA/DogPack

Issues semelhantes

Mais issues de Security

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.