Skip to content

Conversation

@mooninbeom
Copy link
Contributor

close #360

TO-DO

  • 답변에 대한 댓글 뷰 추가

상세 설명

  • 답변에 대한 댓글 뷰, 댓글 셀, 댓글 Reducer 추가(기존 뷰와 Reducer 재활용)
  • 완전 재활용 해서 뷰는 완전 똑같습니다.
  • 달라진건 내부의 BulletinBoard를 받는 프로퍼티와 프로퍼티 명칭을 answer로 변경했습니다.
  • 아직 API 업데이트 전이라 일단 뷰만 구현해놓고 API 업데이트 후 기능 연결을 진행하겠습니다.

스크린샷

기능 스크린샷
답변에 대한 댓글 뷰 스크린샷 2025-04-14 오후 8 17 52

@mooninbeom mooninbeom added Feat 기능 구현 PR-Reviewing 현재 리뷰 중인 PR labels Apr 14, 2025
@mooninbeom mooninbeom self-assigned this Apr 14, 2025
) -> Bool {
#if DEBUG
RepositoryService.shared.configureServer(to: .production)
RepositoryService.shared.configureServer(to: .test)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

디버그에서도 실제 서버로 들어가지길레 수정했습니다!

Comment on lines +11 to +23
struct AnswerComment: Identifiable, Equatable {
let id: Int
let writeId: Int
let writerGeneration: String
let content: String
var heartCount: Int
var isLiked: Bool
let isMine: Bool
var isReport: Bool
let createdAt: Date

var anonymityId: Int
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

임시로 만들어놓은 답변에 대한 댓글 엔티티 입니다.
추후 수정 예정

case answer(Answer)
case bulletinBoard(BulletinBoard)
case comment(BoardComment)
case answerComment(AnswerComment)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

답변-댓글의 신고 대응

Comment on lines +122 to +124
case .answerCommentButtonTapped:
return .none

Copy link
Contributor Author

Choose a reason for hiding this comment

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

답변-댓글 뷰로 이동하는 액션

Comment on lines +11 to +18
let comment: AnswerComment
let like: () -> Void
let delete: () -> Void
let report: () -> Void

@State private var hOffset: CGFloat = 0
@State private var reportedCommentVisible: Bool = false

Copy link
Contributor Author

Choose a reason for hiding this comment

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

기존 CommentCell 복붙입니다

Copy link
Contributor

@thinkySide thinkySide left a comment

Choose a reason for hiding this comment

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

확인했슴다! API만 잘 붙이면 되겠군여 👍

Copy link
Contributor

@OhMyungJin OhMyungJin left a comment

Choose a reason for hiding this comment

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

두근두근 답변 댓글 LGTM!

@thinkySide thinkySide merged commit 49ca2a7 into develop Apr 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feat 기능 구현 PR-Reviewing 현재 리뷰 중인 PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 답변 댓글 리스트 뷰 구현

4 participants