[Report & Block] Render authorized host profile detail
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
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.
- Linguagem predominante
- PLpgSQL
- Estrelas
- 0
- Forks
- 0
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de DevDogsUGA/DogPack
-
polish
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
DevDogsUGA/DogPack#131 ·
-
polish
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
DevDogsUGA/DogPack#130 ·
-
moderation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
DevDogsUGA/DogPack#119 ·
-
moderation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
DevDogsUGA/DogPack#113 ·
-
discover
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
DevDogsUGA/DogPack#106 ·
Todas as issues de DevDogsUGA/DogPack
Issues semelhantes
-
Claude Code guards in .claude/settings.json never block: they read unset variables and exit 1Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
starkware-libs/sequencer#15229 ·
Mantenedores costumam responder em até 1 dia
-
complexity::1-low effort::1-hours priority::3-could
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
jumpingrivers/audit.workbench#42 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 5 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
-
Dificuldade 2/5 Meio dia Facilidade para iniciantes 68/100
aws-samples/sample-per-model-bedrock#242 ·
Mantenedores costumam responder em até 1 dia