Skip to content

Conversation

@HI-JIN2
Copy link
Member

@HI-JIN2 HI-JIN2 commented Sep 6, 2025

Summary

파이어베이스의 event_log를 기록합니다

Describe your changes

https://www.notion.so/eat-ssu/1d2eeef75a16813ca490db6ddf528c26?source=copy_link
위 노션 문서에서 정의한 Firebase Event Logging에 대한 작업을 하였습니다.

참고자료

https://kwongdevelop.tistory.com/60
todaywhat/TodayWhat-Aos#67

Issue

  • Resolves # None

To reviewers

  1. 위젯 브랜치가 머지 되지 않은 상황에서 파생 브랜치를 파서 그런지... 현 develop을 기준으로 리베이스 하였음에도 불구하고 커밋기록이 그대로 남아있네요.. ㅜㅜ 다음에는 좀더 신경쓰도록 하겠습니다. (file change에서는 현재 작업에 해당하는 파일들만 있습니다!!! 위젯 작업은 없음!!)
    순수 이번 작업에 해당하는 커밋은 하기와 같습니다.
스크린샷 2025-09-08 오전 12 34 21 2. 제훈님이 저번에 말씀해주신 위젯에서 Restraunt enum을 넘기도록 하는 방식의 리팩토링이 일부 있습니다.

@HI-JIN2 HI-JIN2 marked this pull request as ready for review September 7, 2025 15:33
@HI-JIN2 HI-JIN2 requested review from PeraSite, Copilot and kangyuri1114 and removed request for Copilot September 7, 2025 15:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces Firebase Event Logging functionality to the EatSSU Android app. The implementation creates a centralized EventLogger for tracking user interactions and refactors existing enum classes into a shared core:common module.

  • Implements Firebase Analytics integration with comprehensive event tracking throughout the app
  • Creates a new core:common module to house shared enums and the EventLogger
  • Refactors existing enum classes from app/data/enums to core:common/enums for better code organization

Reviewed Changes

Copilot reviewed 56 out of 57 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
core/common/src/main/java/com/eatssu/common/EventLogger.kt Central Firebase Analytics event logging implementation
core/common/src/main/java/com/eatssu/common/enums/* Relocated enum classes (Restaurant, Time, MenuType, etc.) from app module
Multiple app files Updated import statements to reference relocated enums from core:common
Widget-related files Enhanced widget functionality to pass Restaurant enum and log events
UI components Added event logging calls throughout cafeteria, map, and review flows

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

likes: Long,
photoAttached: Boolean,
) {
firebaseAnalytics.logEvent("complete_review_v1") {
Copy link

Copilot AI Sep 7, 2025

Choose a reason for hiding this comment

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

The event name should be 'complete_review_v2' for the completeReviewV2 function, not 'complete_review_v1'.

Suggested change
firebaseAnalytics.logEvent("complete_review_v1") {
firebaseAnalytics.logEvent("complete_review_v2") {

Copilot uses AI. Check for mistakes.
Copy link
Member

@PeraSite PeraSite Sep 8, 2025

Choose a reason for hiding this comment

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

ㅇ코파일럿 코멘트처럼 추후에 completeReviewV2 함수에서 왜 complete_review_v1를 호출하는지 헷갈릴 수도 있을 것 같아요.
백엔드와 협업해서 complete_review 이름 자체를 공통되게 하나로 변경하거나, 이름을 v1 v2 나뉘게 해야 할 것 같아요!

Comment on lines +9 to +10
class
VariableMenuPickAdapter(private val menuList: List<MenuMini>?) :
Copy link

Copilot AI Sep 7, 2025

Choose a reason for hiding this comment

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

The class declaration is unnecessarily split across two lines. This should be on a single line for better readability.

Suggested change
class
VariableMenuPickAdapter(private val menuList: List<MenuMini>?) :
class VariableMenuPickAdapter(private val menuList: List<MenuMini>?) :

Copilot uses AI. Check for mistakes.
@HI-JIN2 HI-JIN2 self-assigned this Sep 7, 2025
likes: Long,
photoAttached: Boolean,
) {
firebaseAnalytics.logEvent("complete_review_v1") {
Copy link
Member

@PeraSite PeraSite Sep 8, 2025

Choose a reason for hiding this comment

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

ㅇ코파일럿 코멘트처럼 추후에 completeReviewV2 함수에서 왜 complete_review_v1를 호출하는지 헷갈릴 수도 있을 것 같아요.
백엔드와 협업해서 complete_review 이름 자체를 공통되게 하나로 변경하거나, 이름을 v1 v2 나뉘게 해야 할 것 같아요!

@HI-JIN2 HI-JIN2 requested a review from PeraSite September 8, 2025 11:17
Copy link
Member

@PeraSite PeraSite left a comment

Choose a reason for hiding this comment

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

고생하셨습니당!!

Copy link
Member

@kangyuri1114 kangyuri1114 left a comment

Choose a reason for hiding this comment

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

오타가 있는 것 같아 리뷰 남깁니다..!

FilterType.All -> viewModel.loadPartnerships()
FilterType.All -> {
viewModel.loadPartnerships()
EventLogger.clickMap()
Copy link
Member

Choose a reason for hiding this comment

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

해당 이벤트가 "‘지도’ 클릭 - 제휴지도 이용 빈도"으로 노션에 써져있던데
토글 선택 시에만 이벤트가 수집되는 것 같아서요
바텀 바에서 지도 클릭 시에도 디폴트가 전체 제휴 지도 화면이 보여지니까 포함되어야 하지 않을까요??
아니면 그냥 '내제휴 / 전체제휴' 이용 빈도를 보기 위한 이벤트 일까요??

Copy link
Member Author

Choose a reason for hiding this comment

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

테스트 결과, 토글 클릭 때에만 수집되지 않고, 바텀네비로 진입시에도 click_map이 호출됩니당~!

@HI-JIN2 HI-JIN2 merged commit ab6585a into develop Sep 8, 2025
1 check passed
@HI-JIN2 HI-JIN2 deleted the feat/logging branch September 8, 2025 14:34
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.

4 participants