Skip to content

Comments

[Feat] #212 - 댓글 신고 모달, 댓글 삭제구현#213

Merged
sangyup12 merged 8 commits intodevelopfrom
feat/#212
Feb 14, 2026
Merged

[Feat] #212 - 댓글 신고 모달, 댓글 삭제구현#213
sangyup12 merged 8 commits intodevelopfrom
feat/#212

Conversation

@sangyup12
Copy link
Contributor

🌴 작업한 브랜치

feat/#212

✅ 작업한 내용

  • 댓글 삭제 userId 비교
  • 댓글 신고 모달 UI
  • 댓글 신고 API 연결

❗️PR Point

신고할 때 텍스트 100자 제한인데 기획에서 띄어쓰기 제외하고 100자라고 해줬거던요. 그러면 엄청나게 많은 공백만 서버에 보내는 게 가능해지는데 괜찮은 걸까요.?

📸 스크린샷

기능 스크린샷
GIF

📟 관련 이슈

@sangyup12 sangyup12 added this to the [CERTI] 1차 스프린트 milestone Feb 11, 2026
@sangyup12 sangyup12 self-assigned this Feb 11, 2026
@sangyup12 sangyup12 added Network 📡 서버 통신 Style 🖼️ UI 작업 상엽 🌼 상엽 작업 labels Feb 11, 2026
@sangyup12 sangyup12 linked an issue Feb 11, 2026 that may be closed by this pull request
3 tasks
Copy link
Member

@OneTen19 OneTen19 left a comment

Choose a reason for hiding this comment

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

신고할 때 텍스트 100자 제한인데 기획에서 띄어쓰기 제외하고 100자라고 해줬거던요. 그러면 엄청나게 많은 공백만 서버에 보내는 게 가능해지는데 괜찮은 걸까요.?

trimmingCharacters(in:) 메서드의 whitespacesAndNewlines로 관리하면 될 것 같아요

Copy link
Contributor

@Yeonnies Yeonnies left a comment

Choose a reason for hiding this comment

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

잘 봤십니더.

}

TextEditor(text: $viewModel.reportContent)
.maxLength(100, text: $viewModel.reportContent)
Copy link
Contributor

Choose a reason for hiding this comment

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

p3
이렇게 하면 공백 제외 100글자가 되나영?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

아니영.. 공백 제외 추가했어요

.padding(.bottom, 20)
}

private func bullet(_ text: String) -> some View {
Copy link
Contributor

Choose a reason for hiding this comment

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

p3
이렇게 관리해주는 거 신기하네여


switch result {
case .success:
logger.error("✅ 댓글 신고 성공")
Copy link
Contributor

Choose a reason for hiding this comment

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

p2
이거 성공인데 왜 에러 로거 쓰셨나여?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

실수..

return state == .anticipated || state == .acquisition
}
var reportContentCountWithoutWhitespace: Int {
reportContent.filter { !$0.isWhitespace }.count
Copy link
Member

Choose a reason for hiding this comment

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

whitespace만 하면 띄어쓰기는 걸러줘도 개행문자는 안 걸러질텐데 이건 의도하신걸까요??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

whitespace만 해도 개행은 카운트가 안 되길래 찾아봤는데 whitespace에 \t, \n 같은 공백들도 포함되더라고여. 그치만 명시적으로 나타내기 위해서 isNewline도 추가하였습니다!

@sangyup12 sangyup12 merged commit 02a184d into develop Feb 14, 2026
@sangyup12 sangyup12 deleted the feat/#212 branch February 14, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Network 📡 서버 통신 Style 🖼️ UI 작업 상엽 🌼 상엽 작업

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SCRUM-50] [Feat] 댓글 신고 모달, 댓글 삭제 userID 비교 구현

3 participants