Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/edicao de perfil #15

Merged
merged 28 commits into from
Jan 22, 2024
Merged

Feature/edicao de perfil #15

merged 28 commits into from
Jan 22, 2024

Conversation

MoisesssDev
Copy link
Contributor

@MoisesssDev MoisesssDev commented Jan 19, 2024

Esse PR resolve a issue #3.

Adicionamos a funcionalidade de edição do perfil do usuário através da página meu perfil.

Não é obrigatório que o usuário preencha o perfil após o primeiro login.

As mensagens nas telas variam de acordo com o estado do perfil do usuário. Se não tem nenhum dado preenchido, as mensagens na tela o estimulam a preencher o perfil.

Perfil sem informação cadastrada.
image

Formulário do perfil sem informações cadastradas.
image

Perfil com informações já cadastradas.
image

Formulário do perfil com informações já cadastradas.
image

paulohenrique-gh and others added 18 commits January 17, 2024 11:32
- Configura exibição de exceções dos testes
- incluir tradução do model Profile

Co-authored-by: Lucas Aguilar <[email protected]>
Co-authored-by: Moises Almeida <[email protected]>
Co-authored-by: Paulo Henrique Meneses <[email protected]>
Co-authored-by: Lucas Aguilar <[email protected]>
- Adiciona mais traduções ao i18n
- Ajusta o nome dos teste

Co-authored-by: Lucas Aguilar <[email protected]>
Co-authored-by: Moises Almeida <[email protected]>
- Adiciona mais traduções no i18n.
- Alteração nas views profile (edit, show)
- Adiciona teste de autenticação
- Adiciona mensagem condicional para edição / preenchimente de perfil

Co-authored-by: Lucas Aguilar <[email protected]>
Co-authored-by: Moises Almeida <[email protected]>
- Refatora método #first_update?
- Pendencia: Corrigir teste spec/system/user_edit_profile_spec.rb:36

Co-authored-by: Paulo Henrique Meneses <[email protected]>
Co-authored-by: Moises Almeida <[email protected]>
- Separa informações do perfil em partial

Co-authored-by: Paulo Henrique Meneses <[email protected]>
  Co-authored-by: Moises Almeida <[email protected]>
Co-authored-by: Paulo Henrique Meneses <[email protected]>
Co-authored-by: Moises Almeida <[email protected]>
Co-authored-by: Paulo Henrique Meneses <[email protected]>
Co-authored-by: Moises Almeida <[email protected]>
Co-authored-by: Paulo Henrique Meneses <[email protected]
Co-authored-by: Moises Almeida <[email protected]>
Co-authored-by: Moises Almeida <[email protected]>
Co-authored-by: Paulo Henrique Meneses <[email protected]>
- Adiciona tradução
- Ajuste no teste de edição com sucesso

Co-authored-by: Paulo Henrique Meneses <[email protected]>
Co-authored-by: Lucas Aguilar <[email protected]>
@MoisesssDev MoisesssDev linked an issue Jan 19, 2024 that may be closed by this pull request
3 tasks
paulohenrique-gh and others added 3 commits January 19, 2024 10:23
Co-authored-by: Lucas Aguilar <[email protected]>
Co-authored-by: Moises Almeida <[email protected]>
Co-authored-by: Lucas Aguilar <[email protected]>
Co-authored-by: Moises Almeida <[email protected]>
@paulohenrique-gh paulohenrique-gh marked this pull request as draft January 19, 2024 14:40
@paulohenrique-gh
Copy link
Contributor

paulohenrique-gh commented Jan 19, 2024

Na resolução de conflitos de merge com a main, achamos um problema que permite o usuário ter mais de um perfil. Convertemos o PR para draft e vamos solucionar.

Copy link

@OtavioLins OtavioLins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bom pessoal, deixei alguns comentários. Uma coisa que me chamou atenção também é o front end da app. Vocês, como um time, pretendem trabalhar nisso depois? Caso sim, só tomem cuidado para não acabar deixando um backlog muito grande de futuras alterações no front

app/controllers/profiles_controller.rb Outdated Show resolved Hide resolved
app/controllers/profiles_controller.rb Outdated Show resolved Hide resolved
app/models/profile.rb Show resolved Hide resolved
spec/system/user_edit_profile_spec.rb Outdated Show resolved Hide resolved
spec/system/user_view_profile_spec.rb Outdated Show resolved Hide resolved
@OtavioLins
Copy link

Eu comecei a revisão antes de vocês mudarem de volta pra Draft e terminei depois, daí minha revisão acabou indo assim mesmo. É bom que vocês já conseguem ver uns outros probleminhas, também :)

paulohenrique-gh and others added 2 commits January 19, 2024 14:52
- Resolve conflito no seeds.rb
- Resolve conflito no routes.rb
- Resolve no layouts/application.html.erb
- Resolve conflito em views/profiles/edit.html.erb

Co-authored-by: Lucas Aguilar <[email protected]>
Co-authored-by: Moises Almeida <[email protected]>
- refatora Profile#full_name e testes unitários
- refatora factory do Profile

Co-authored-by: Moises Almeida <[email protected]>
Co-authored-by: Lucas Aguilar <[email protected]>
paulohenrique-gh and others added 5 commits January 19, 2024 16:22
Co-authored-by: Moises Almeida <[email protected]>
Co-authored-by: Lucas Aguilar <[email protected]>
Co-authored-by: Moises Almeida <[email protected]>
Co-authored-by: Lucas Aguilar <[email protected]>
Co-authored-by: Lucas Aguilar <[email protected]>
Co-authored-by: Moises Almeida <[email protected]>
Co-authored-by: Lucas Aguilar <[email protected]>
Co-authored-by> Moises Almeida <[email protected]>
Co-authored-by: Lucas Aguilar <[email protected]>
Co-authored-by: Moisés Almeida <[email protected]>
@paulohenrique-gh paulohenrique-gh marked this pull request as ready for review January 19, 2024 20:14
@paulohenrique-gh
Copy link
Contributor

Fizemos ajustes conforme as sugestões.

Sobre o front-end. Incluimos classes do bootstrap mas ainda vamos conversar mais sobre o layout geral da aplicação

@paulohenrique-gh paulohenrique-gh merged commit b836048 into main Jan 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Conta] Usuário edita perfil
4 participants