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

[Feature/#105] : 대댓글 UI, API #122

Merged
merged 21 commits into from
Nov 26, 2024
Merged

Conversation

sohyun127
Copy link
Collaborator

✅ 𝗖𝗵𝗲𝗰𝗸-𝗟𝗶𝘀𝘁

  • merge할 브랜치의 위치를 확인해 주세요(main❌/develop⭕)
  • 리뷰가 필요한 경우 리뷰어를 지정해 주세요
  • P1 단계의 리뷰는 필수로 반영합니다.
  • Approve된 PR은 assigner가 머지하고, 수정 요청이 온 경우 수정 후 다시 push를 합니다.

📌 𝗜𝘀𝘀𝘂𝗲𝘀

📎𝗪𝗼𝗿𝗸 𝗗𝗲𝘀𝗰𝗿𝗶𝗽𝘁𝗶𝗼𝗻

  • 대댓글 UI 구현했습니다.
    • multiview type으로 댓글과 대댓글을 구분하여 처리했습니다.
    • 대댓글이 많으면 로딩이 조금 길어져 로딩 스피너 하나 넣어줬습니다.
  • 대댓글 API 연결했습니다.
    • child comment 리스트 내의 형식이 기존 comment와 같아서, 매핑하여 하나의 comment 리스트 뭉치로 처리했습니다.

📷 𝗦𝗰𝗿𝗲𝗲𝗻𝘀𝗵𝗼𝘁

default.mp4

💬 𝗧𝗼 𝗥𝗲𝘃𝗶𝗲𝘄𝗲𝗿𝘀

comment edit text 커서 변경하는 김에 posting 쪽 커서도 변경했습니다. 883afa8 커밋 참고해주세요!

@sohyun127 sohyun127 added ⭐ [FEAT] 새로운 기능 구현 💟 [UI] UI 작업 xml 파일 건들면 요거 🐱 소현 리나 labels Nov 25, 2024
@sohyun127 sohyun127 requested review from a team, Eonji-sw and chanubc and removed request for a team November 25, 2024 11:47
Copy link
Member

@chanubc chanubc left a comment

Choose a reason for hiding this comment

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

최곤데요! 시험기간이라 바빴을 텐데 고생많으셧어요 👍

@@ -14,7 +14,7 @@ import retrofit2.http.Path
import retrofit2.http.Query

interface CommentService {
@GET("api/v2/content/{contentId}/comments")
@GET("api/v3/content/{contentId}/comments")
Copy link
Member

Choose a reason for hiding this comment

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

이거 v3생기면 추가하기로 한거 아니였나요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

어떤걸 추가하기로 했죠??!

Copy link
Member

Choose a reason for hiding this comment

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

앗 이거 저희 쪽에서 v3로 새로 함수 만들어서 쓴다고 착각했네요

근데 지금 로그아웃 하고 로그인이 안되서
이전 버전(v1) 으로 dto포함 로그인 돌리면 되긴합니다만
내일 서버와 이야기 해보아야 할것 같아요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

아하!! 로그인 api v2로 업하고 체크를 못했네요 서버랑 이야기 해볼게요!

Copy link
Member

@Eonji-sw Eonji-sw left a comment

Choose a reason for hiding this comment

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

이제 코드가 진짜 에바핑이네요!
걍 천상계로 가세요

@@ -12,7 +12,7 @@ interface CommentRepository {

suspend fun deleteComment(commentId: Long): Result<Unit>

suspend fun postComment(contentId: Long, commentText: String): Result<Unit>
suspend fun postComment(contentId: Long, commentInfo: Triple<String, Long, Long>): Result<Unit>
Copy link
Member

Choose a reason for hiding this comment

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

P3 :
image
세븐틴까지 가주세요

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Zzzzzzzzㅋㅋㅋㅋㅋㅋㅋㅋㅋ

@@ -28,7 +30,7 @@ internal class DefaultCommentRepository @Inject constructor(
getNextCursor = { comments -> comments.lastOrNull()?.commentId },
)
}.flow.map { pagingData ->
pagingData.map { it.toComment() }
pagingData.flatMap { it.toComments() }
Copy link
Member

Choose a reason for hiding this comment

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

P3 : flatMap 이런 것도 잇군요? 내장 코드 활용 넘 잘하는 ㄷㄷ

Copy link
Member

@Eonji-sw Eonji-sw left a comment

Choose a reason for hiding this comment

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

앗 어푸 안햇당 ㅋ

@sohyun127 sohyun127 merged commit 78dd7c8 into develop Nov 26, 2024
1 check passed
@sohyun127 sohyun127 deleted the feature/#105-childcomment branch November 26, 2024 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ [FEAT] 새로운 기능 구현 🐱 소현 리나 💟 [UI] UI 작업 xml 파일 건들면 요거
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] : 대댓글 UI, API
3 participants