Skip to content

Conversation

@rhkrwngud445
Copy link
Contributor

작업 내용

친구 프로필 상세

  • 화면 하단 패딩 반영
  • [전화걸기] [문자하기] 버튼 텍스트 영역 수정

친구 프로필 수정

  • 프로필 수정 화면에서 값이 변경되고 뒤로가기를 하면 EditorExitDialog를 표시하는 과정에서
  • 앱바 네비게이션 백버튼과, 안드로이드 기기의 물리 백버튼이 다르게 동작하는 현상 수정

홈 화면

  • 사용자 닉네임 적용
  • 친구 삭제시 홈 화면 반영
  • 홈 에러 메시지 변경

확인 방법

홈 / 친구 프로필 / 친구 프로필 수정

참고 사항

N/A

관련 이슈

@rhkrwngud445 rhkrwngud445 linked an issue Oct 7, 2025 that may be closed by this pull request
@gemini-code-assist
Copy link

Summary of Changes

Hello @rhkrwngud445, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 친구 프로필 상세 화면과 수정 화면, 그리고 홈 화면의 사용자 경험을 전반적으로 개선합니다. 친구 프로필 화면의 UI 레이아웃을 조정하고, 프로필 수정 시 뒤로가기 동작의 일관성을 확보했습니다. 또한, 홈 화면에 사용자 닉네임을 표시하고 친구 삭제가 실시간으로 반영되도록 하여 앱의 사용성을 향상시켰습니다.

Highlights

  • 친구 프로필 상세 개선: 화면 하단 패딩을 추가하고, '전화걸기' 및 '문자하기' 버튼의 텍스트 영역을 수정하여 UI를 개선했습니다.
  • 친구 프로필 수정 화면 백버튼 동작 일관성 확보: 프로필 수정 중 변경사항이 있을 때 뒤로가기 시 EditorExitDialog가 표시되도록 앱바 및 물리 백버튼 동작을 통일했습니다.
  • 홈 화면 기능 강화: 사용자 닉네임을 적용하고, 친구 삭제 시 홈 화면에 즉시 반영되도록 로직을 추가했으며, 에러 메시지를 보다 명확하게 변경했습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

이번 PR은 친구 프로필 및 홈 화면의 사용자 경험을 개선하는 여러 변경 사항을 포함하고 있습니다. 전반적으로 코드 변경 사항들은 의도한 대로 잘 구현되었습니다. 친구 삭제 시 홈 화면에 즉시 반영되도록 하는 로직과 프로필 수정 화면에서 뒤로가기 동작을 통일한 점이 인상적입니다. 다만, 홈 화면의 에러 처리 방식과 네비게이션 그래프에 남아있는 불필요한 코드에 대해 몇 가지 개선점을 제안합니다.

launch {
viewModel.errorEvent.collect {
onShowErrorSnackBar(it)
onShowErrorSnackBar(IllegalStateException("네트워크 에러가 발생했습니다."))

Choose a reason for hiding this comment

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

high

기존에 viewModel.errorEvent에서 전달되던 Throwable 객체를 사용하지 않고, 새로운 IllegalStateException을 생성하여 하드코딩된 메시지를 전달하고 있습니다. 이 방식은 원래 발생했던 에러의 상세 정보를 잃게 만들어 디버깅을 어렵게 할 수 있습니다. 기존 구현처럼 onShowErrorSnackBar(it)을 그대로 호출하여 원래의 Throwable을 전달하는 것이 더 바람직해 보입니다. onShowErrorSnackBar의 구현을 보면 null이거나 message가 없는 경우를 이미 잘 처리하고 있습니다.

Suggested change
onShowErrorSnackBar(IllegalStateException("네트워크 에러가 발생했습니다."))
onShowErrorSnackBar(it)

friendId?.let {
viewModel.deleteFriend(it)
}
friendId

Choose a reason for hiding this comment

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

medium

40번째 줄의 friendId 표현식은 아무런 동작을 하지 않는 불필요한 코드(dead code)로 보입니다. 디버깅 과정에서 남은 코드로 추측되며, 코드 가독성을 위해 제거하는 것이 좋겠습니다.

@stopstone
Copy link
Contributor

고생하셨습니다!
UI와 백버튼 모두 말끔히 해결된 것 같아요 :)
작업해주셨을때 dev에 다이얼로그 작업한 부분이 반영이 되지 않은 것 같아 현재 dev 브랜치 pull 한 번 부탁드릴게요!

@rhkrwngud445 rhkrwngud445 merged commit 7350d5d into dev Oct 9, 2025
1 check passed
@rhkrwngud445 rhkrwngud445 deleted the feat/#43-improvement_friend_profile branch October 15, 2025 11:13
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.

[FIX] 친구 프로필 상세, 수정화면 수정 및 개선

3 participants