Skip to content

Conversation

@Hrepay
Copy link
Member

@Hrepay Hrepay commented Sep 9, 2025

#️⃣ 관련 이슈

Resolved #313

💡작업 내용

이번 PR에서 작업한 내용을 간략히 설명해주세요(이미지 첨부 가능)

  • 리뷰 작성 시 맛과 양에 대한 UI를 옵셔널 처리했습니다.
  • 앱 실행 또는 필터 변경 시, 지도의 초기 카메라 위치가 항상 "숭실대학교"로 고정되도록 변경하여 사용성을 높였습니다.
  • 위치 정보 권한 요청 문구를 개선하고 빌드 설정을 최적화했으며, 불필요한 데이터 코드를 제거했습니다.

💬리뷰 요구사항(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

  • 해당 브랜치를 기준으로 배포가 완료되었고, 브랜치 최신화를 위해 PR을 올립니다.
  • 사진을 업로드했는데 기다려도 뜨지 않아서 일단 올립니다. 앱 내에서 확인해주세요!

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.

Summary of Changes

Hello @Hrepay, 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은 사용자 경험 개선과 코드 최적화에 중점을 둡니다. 리뷰 작성 시 맛과 양에 대한 평가를 선택적으로 할 수 있도록 하여 유연성을 높였으며, 지도 기능 사용 시 초기 위치를 숭실대학교로 고정하여 일관된 경험을 제공합니다. 또한, 위치 권한 요청 문구를 명확히 하고 빌드 설정을 개선하여 앱의 전반적인 품질을 향상시켰습니다.

Highlights

  • 리뷰 평가 항목 선택 사항 변경: 리뷰 작성 시 맛과 양에 대한 평가를 선택 사항으로 변경하고, 이에 맞춰 관련 데이터 모델 및 UI 로직을 업데이트했습니다.
  • 지도 초기 카메라 위치 고정: 앱 실행 및 지도 필터 변경 시, 지도의 초기 카메라 위치가 항상 '숭실대학교'로 고정되도록 개선하여 사용자 경험의 일관성을 높였습니다.
  • 위치 권한 문구 및 빌드 설정 최적화: 위치 정보 권한 요청 문구를 사용자 친화적으로 개선하고, 빌드 설정을 최적화하여 앱의 전반적인 품질을 향상시켰습니다.
  • 불필요한 코드 제거: 파트너십 데이터 모델에서 불필요한 필드를 제거하고, 지도에서 마커 중앙 정렬을 위한 불필요한 로직을 삭제하여 코드베이스를 정리했습니다.
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 in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

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 issue 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은 리뷰 작성 시 맛과 양 평가를 선택적으로 변경하고, 지도의 초기 카메라 위치를 고정하는 등 사용성 개선을 위한 중요한 변경사항들을 포함하고 있습니다. 전반적으로 코드 변경 사항이 명확하고 PR 설명과 잘 부합합니다. 코드 유지보수성 및 일관성 향상을 위한 몇 가지 제안 사항을 리뷰에 남겼습니다.

Comment on lines +240 to +252
if response.tasteRating == nil {
tasteStackView.isHidden = true
} else {
tasteStackView.isHidden = false
tasteRateView.rateNumberLabel.text = "\(response.tasteRating ?? 0)"
}

if response.amountRating == nil {
quantityStackView.isHidden = true
} else {
quantityStackView.isHidden = false
quantityRateView.rateNumberLabel.text = "\(response.amountRating ?? 0)"
}

Choose a reason for hiding this comment

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

high

맛과 양 점수 UI를 처리하는 로직에 두 가지 개선점이 있습니다.

  1. 코드 중복: 이 로직은 270-282 라인의 myPageDataBind 메서드에서도 동일하게 반복됩니다. 별도의 private 헬퍼 메서드로 추출하여 중복을 제거하는 것이 좋습니다.
  2. 로직 불일치: ReviewRateViewCell에서는 rating == nil || rating == 0.0 조건으로 숨김 처리를 하는 반면, 여기서는 rating == nil 만 확인합니다. 0점도 유효한 평가 점수인지, 아니면 '평가 없음'으로 간주해야 하는지에 대한 정책을 통일해야 합니다. 앱 전체의 일관성을 위해 두 파일의 로직을 맞추는 것을 권장합니다.

Copy link
Member Author

Choose a reason for hiding this comment

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

해당 코드는 리뷰 v2에서 삭제될 예정이고, 별점 0점은 부여가 불가능해서 괜찮을 것 같습니다.

Copy link
Collaborator

Choose a reason for hiding this comment

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

빨리 리뷰v2를 제작해야겠네요;;!

Comment on lines +122 to +123
let ssuLatitude = 37.49517278813046
let ssuLongitude = 126.95661313346206

Choose a reason for hiding this comment

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

medium

숭실대학교의 위도, 경도와 같은 매직 넘버를 직접 사용하기보다 상수로 정의하여 사용하는 것이 좋습니다. 이렇게 하면 코드의 가독성이 향상되고, 나중에 위치를 변경해야 할 때 한 곳만 수정하면 되므로 유지보수가 용이해집니다. 파일 상단이나 별도의 Constants 파일/구조체에 정의하는 것을 고려해보세요.

Copy link
Member Author

Choose a reason for hiding this comment

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

이건 수정이 필요합니다.
이슈를 파놓는게 좋을 것 같아요..

Comment on lines +240 to +252
if response.tasteRating == nil {
tasteStackView.isHidden = true
} else {
tasteStackView.isHidden = false
tasteRateView.rateNumberLabel.text = "\(response.tasteRating ?? 0)"
}

if response.amountRating == nil {
quantityStackView.isHidden = true
} else {
quantityStackView.isHidden = false
quantityRateView.rateNumberLabel.text = "\(response.amountRating ?? 0)"
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

빨리 리뷰v2를 제작해야겠네요;;!

@Funital
Copy link
Collaborator

Funital commented Sep 9, 2025

#314
이것까지 병합 후, release 하는건 어떤가요??

@Hrepay
Copy link
Member Author

Hrepay commented Sep 9, 2025

#314 이것까지 병합 후, release 하는건 어떤가요??

지금 이미 해당 릴리즈 브랜치의 코드로 배포가 완료된 상태라서 순서를 지키는게 맞을 것 같습니다!

@Hrepay Hrepay merged commit a946224 into develop Sep 9, 2025
@Hrepay Hrepay deleted the release/v3.0.0 branch September 9, 2025 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fix] 위치 정보 권한 문구 수정 및 지도 관련 로직 수정

3 participants