Skip to content

feat: 통계 진입 시 보고있던 월의 통계 화면으로 띄워주기 #353

Merged
jihun32 merged 11 commits into
developfrom
feat/#350/TWI-128
Jun 11, 2026
Merged

feat: 통계 진입 시 보고있던 월의 통계 화면으로 띄워주기 #353
jihun32 merged 11 commits into
developfrom
feat/#350/TWI-128

Conversation

@jihun32

@jihun32 jihun32 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

🔗 관련 이슈

📙 작업 내역

  • 통계 진입 시 보고있던 월 통계 상세 화면 띄워주기
  • 통계 데이터 없을 때 문구 변경

🎨 스크린샷 또는 시연 영상 (선택)

Simulator.Screen.Recording.-.iPhone.17.Pro.26.-.2026-06-08.at.18.48.16.mov

@linear-code

linear-code Bot commented Jun 8, 2026

Copy link
Copy Markdown

TWI-128

@clxxrlove

Copy link
Copy Markdown
Member

@coderabbitai summary

@github-actions github-actions Bot requested a review from clxxrlove June 8, 2026 09:50
@github-actions github-actions Bot added D-2 and removed D-3 labels Jun 9, 2026

@clxxrlove clxxrlove left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

고생해써~ 코멘트 한번 확인해주랑

/// let state = StatsDetailReducer.State(goalId: 1)
/// ```
public init(goalId: Int64) {
public init(goalId: Int64, calendarDate: TXCalendarDate?) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

사소한 포인트인데, calenderDate라는 매개변수가 무슨 뜻인가 싶더라구
그래서 생각해보니 initialMonth 정도 되겠구나 싶은걸 알았는데,
그럼 시작 월이라던지, 날짜를 굳이 지정할 생각이 없으면 nil이 가능하게 기본값을 지정해주는 것도 좋을 듯?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

말한대로 네이밍 좀 헷갈리는 거 같아서 initialMonth로 바꿀게
그리고 코드 다시 보니까 nil 전달하는 경우가 없어서 옵셔널도 빼고 initialMonth를 필수 주입하도록 바꿀게
근데 기본값으로 지정할 경우 호출부에서 initialMonth를 주입해야하는데 실수로 빼먹을 경우가 있을 수 있으니 기본값 지정은 안하고 필수 주입하는거로 고칠게!

@github-actions github-actions Bot added D-1 and removed D-2 labels Jun 10, 2026
@jihun32 jihun32 merged commit f666cee into develop Jun 11, 2026
1 check passed
@jihun32 jihun32 deleted the feat/#350/TWI-128 branch June 11, 2026 04:14
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.

2 participants