Skip to content

[Feat] 나만아니면돼 게임 추가 및 Health Check 타입 오류 수정#479

Open
PeraSite wants to merge 3 commits intodevelopfrom
feat/anyone-but-me
Open

[Feat] 나만아니면돼 게임 추가 및 Health Check 타입 오류 수정#479
PeraSite wants to merge 3 commits intodevelopfrom
feat/anyone-but-me

Conversation

@PeraSite
Copy link
Member

@PeraSite PeraSite commented Feb 26, 2026

Summary

  • 바텀 네비게이션에 나만아니면돼~ 메뉴를 추가하고, 탭 클릭 시 WebViewActivity로 게임 페이지를 열도록 구현했습니다.
  • 화면 이벤트 로깅에 ABM_001000(ANYONE_BUT_ME_MAIN)을 추가했습니다.
  • Health Check API를 BaseResponse 파이프에서 분리해 HealthCheckResponse(status)를 직접 파싱하도록 수정했습니다.
  • 바텀 네비게이션이 4개 이상일 때도 라벨이 항상 보이도록 고정하고, shifting 애니메이션을 비활성화했습니다.

Describe your changes

  • MainActivity:
    • anyone_but_me_menu 클릭 시 WebViewActivity로 이동
    • URL/TITLE/SCREEN_ID extra 전달
  • menu_bottom_navigation.xml:
    • 나만아니면돼~ 아이템 추가 및 커피 아이콘 연결
  • activity_main.xml:
    • app:labelVisibilityMode="labeled"
    • app:itemHorizontalTranslationEnabled="false"
  • HealthCheckService:
    • ApiResult<Unit> -> Response<HealthCheckResponse>
  • HealthCheckRepositoryImpl:
    • HTTP 성공 + status(UP/OK)로 성공 판별
    • IOException 발생 시 NetworkErrorEventBus.notifyNetworkError() 유지

Screenshots

홈(바텀 네비) 나만아니면돼 화면
home anyone-but-me

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @PeraSite, 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!

이 Pull Request는 사용자 경험을 향상시키기 위해 새로운 '나만아니면돼~' 게임 기능을 앱에 통합하고, 하단 내비게이션의 시각적 일관성을 개선합니다. 또한, 기존 헬스 체크 API의 응답 처리 로직을 수정하여 안정성을 높이고, 특정 역직렬화 오류를 방지합니다. 전반적으로 기능 확장과 시스템 안정화에 중점을 둔 변경사항입니다.

Highlights

  • 새로운 게임 기능 추가: 하단 내비게이션에 '나만아니면돼~' 메뉴를 추가하고, 클릭 시 WebViewActivity를 통해 게임 페이지를 열도록 구현했습니다.
  • 헬스 체크 API 오류 수정: 헬스 체크 API가 BaseResponse 파이프에서 분리되어 HealthCheckResponse(status)를 직접 파싱하도록 수정하여 'unknown key 'status'' 역직렬화 오류를 해결했습니다.
  • 하단 내비게이션 UI 개선: 하단 내비게이션 아이템이 4개 이상일 때도 라벨이 항상 보이도록 고정하고, 쉬프팅 애니메이션을 비활성화했습니다.
  • 화면 이벤트 로깅 추가: '나만아니면돼~' 게임 화면 진입 시 'ABM_001000' (ANYONE_BUT_ME_MAIN) 이벤트가 로깅되도록 추가했습니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • app/src/main/java/com/eatssu/android/data/remote/repository/HealthCheckRepositoryImpl.kt
    • 헬스 체크 로직을 수정하여 ApiResult<Unit> 대신 Response<Unit>을 직접 처리하고, 네트워크 오류 및 일반 예외를 명시적으로 처리하도록 변경했습니다.
  • app/src/main/java/com/eatssu/android/data/remote/service/HealthCheckService.kt
    • 헬스 체크 서비스의 checkHealth() 메서드 반환 타입을 ApiResult<Unit>에서 Response<Unit>으로 변경했습니다.
  • app/src/main/java/com/eatssu/android/presentation/MainActivity.kt
    • 하단 내비게이션의 '나만아니면돼~' 메뉴 클릭 시 WebViewActivity를 시작하고, 관련 URL, 제목, 화면 ID를 전달하는 로직을 추가했습니다.
  • app/src/main/res/drawable/ic_anyone_but_me.xml
    • '나만아니면돼~' 메뉴에 사용될 새로운 커피 아이콘 드로어블을 추가했습니다.
  • app/src/main/res/layout/activity_main.xml
    • BottomNavigationViewapp:labelVisibilityMode="labeled"app:itemHorizontalTranslationEnabled="false" 속성을 추가하여 라벨이 항상 표시되고 쉬프팅 애니메이션이 비활성화되도록 설정했습니다.
  • app/src/main/res/menu/menu_bottom_navigation.xml
    • 하단 내비게이션 메뉴에 '나만아니면돼~' 아이템을 추가했습니다.
  • app/src/main/res/values/strings.xml
    • '나만아니면돼~' 메뉴의 제목과 해당 게임 페이지의 URL을 위한 문자열 리소스를 추가했습니다.
  • core/common/src/main/java/com/eatssu/common/enums/ScreenId.kt
    • 화면 이벤트 로깅을 위해 ANYONE_BUT_ME_MAIN (ABM_001000) ScreenId를 추가했습니다.
Activity
  • 작성자는 리뷰어에게 하단 내비게이션이 4개 항목으로 구성되었을 때 라벨 노출 및 선택 상태가 의도대로 유지되는지 확인해달라고 요청했습니다.
  • 작성자는 리뷰어에게 앱 시작 시 헬스 체크 로그에서 'unknown key 'status'' 역직렬화 오류가 사라졌는지 확인해달라고 요청했습니다.
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
Contributor

@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

안녕하세요. '나만아니면돼' 게임 추가 및 Health Check 오류 수정 PR 리뷰입니다. 전반적으로 기능 추가와 수정이 잘 이루어진 것 같습니다. 다만, Health Check 관련 구현이 PR 설명과 다소 차이가 있고, 서버 상태를 정확히 확인하지 못할 가능성이 있어 수정을 제안했습니다. 또한, MainActivity에서 WebViewActivity로 데이터를 전달할 때, 하드코딩된 문자열 대신 상수를 사용하도록 개선하는 방안을 제안했습니다. 자세한 내용은 각 파일의 리뷰 코멘트를 확인해주세요.

Copy link
Member

@HI-JIN2 HI-JIN2 left a comment

Choose a reason for hiding this comment

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

탑바 < 대신 X인게 더 좋지 않을가욤? 좌측이나 우측 (보통 X는 우측인 경우가 많긴함)
다른건 대 좋습니단~~ 👍

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.

2 participants