Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TNT-189] 트레이니 알림 화면 UI 구현 #60

Merged
merged 11 commits into from
Feb 3, 2025
Merged

Conversation

SeonJeongk
Copy link
Contributor

📝 작업 내용

  • [TNT-189] 트레이니 알림 화면 구현 #52

  • 이전 PR 리뷰 반영 안 된 부분 수정

  • 알림 컴포넌트 구현

  • 트레이니 알림 화면 UI 구현

  • 트레이니 알림은 클릭이 불가능하기 때문에 화면에 알림만 보여주도록 구현했습니다

  • 알림이 없을 경우 "최근 받은 알림이 없어요" 를 화면 중앙에 보여주고 있습니다

  • 도메인의 NotificationInfo에서 type은 API가 나오면 그에 맞춰서 다시 수정해보겠습니다..!

📸 실행 화면

알림이 없는 경우

알림 스크롤

trainee_notification.mp4

🙆🏻 리뷰 요청 사항

없습니다!

👀 레퍼런스

@SeonJeongk SeonJeongk added ✨ Feat 기능 구현 🎨 Design UI 및 디자인 작업 🌻 선정 김씨 집안 막내 김선정 labels Feb 2, 2025
@SeonJeongk SeonJeongk added this to the 3차 스프린트 milestone Feb 2, 2025
@SeonJeongk SeonJeongk requested a review from hoyahozz February 2, 2025 09:44
@SeonJeongk SeonJeongk self-assigned this Feb 2, 2025
import java.time.temporal.ChronoUnit
import java.util.Locale

object NotificationTimeUtil {
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
Contributor Author

Choose a reason for hiding this comment

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

이게 정책일지 아닐지 고민했는데 아무래도 화면에 출력할 형식이니까 프레젠테이션단이 자연스럽겠죠?!
core:uiutil로 옮겨두겠습니다 👍

Copy link
Member

@hoyahozz hoyahozz left a comment

Choose a reason for hiding this comment

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

GOOD GOOD 👍👍👍

val type: NotificationType,
val title: String,
val contents: String,
val time: String,
Copy link
Member

Choose a reason for hiding this comment

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

요기서 timeLocalDate 형태일 것 같습니당!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

엇 요걸 놓쳤네요 수정해두겠습니다!

Copy link
Contributor Author

@SeonJeongk SeonJeongk Feb 3, 2025

Choose a reason for hiding this comment

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

시간까지 다뤄야 하기 때문에 LocalDateTime으로 수정해뒀습니다!

import java.time.temporal.ChronoUnit
import java.util.Locale

object NotificationTimeUtil {
Copy link
Member

Choose a reason for hiding this comment

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

음 요거 생각해보니 알림 화면에서만 쓸 친구같아서, 싱글톤으로 선언하면 안될 것 같아요!

일반 클래스로 선언하고, NotificationTimeFormatter 정도로 네이밍 지으면 좋을 것 같습니돠!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

넵! 수정해두겠습니다

@SeonJeongk SeonJeongk merged commit e318c1f into develop Feb 3, 2025
1 check passed
@SeonJeongk SeonJeongk deleted the feature/TNT-189 branch February 3, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feat 기능 구현 🌻 선정 김씨 집안 막내 김선정 🎨 Design UI 및 디자인 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants