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

시험 댓글과 답글을 작성하고, 삭제할 수 있다. 더보기 버튼을 통해서 답글 목록을 조회할 수 있다. #61

Merged
merged 9 commits into from
Feb 28, 2025

Conversation

alstn113
Copy link
Owner

@alstn113 alstn113 commented Feb 28, 2025

요약 영상

2025-02-28.11.23.00.mov

연관된 이슈

작업 내용

프론트엔드(리액트)에서 댓글과 답글을 작성할 수 있고, 삭제할 수 있다. 답글은 유튜브와 동일하게 "답글 ${N}개" 버튼을 통해 조회할 수 있다. 댓글과 답글은 최신 댓글이 위에 오는 형태(생성일 기준 내림차순)이다.

댓글은 루트 댓글과 답글로 2계층 형식이다. 댓글이 삭제되어도 대화가 유지되도록, 댓글은 논리 삭제 처리했다. 답글은 삭제될 경우 보이지 않는다. 댓글의 경우에는 조금 다르다. 댓글이 삭제되었을 경우 마스킹 처리되어 보여진다. 댓글에 대한 답글이 존재하지 않으면 보이지 않는다. 삭제된 댓글이라도 답글이 1개 이상 있으면 댓글이 마스킹 처리되어 보이는 것이다.

비로그인 사용자의 경우 댓글과 답글을 달 수 없다. 댓글의 경우 input disable 처리했다. 답글의 경우, 답글 버튼 클릭 시 로그인 요구 toast를 띄우도록 했다.

비로그인

비로그인 시 댓글 입력 창이 disabled된다. 답글 버튼을 클릭하면 로그인 요구 toast가 띄워진다.

default.mov

로그인

default.mov

댓글 삭제 후 답글 삭제

답글이 남아있는 상태에서 댓글을 삭제하면 댓글이 마스킹 처리된다. 이후 답글을 지워버리면 남아있는 답글이 없기 때문에 댓글이 사라진다.

default.mov

답글 삭제 후 댓글 삭제

답글을 삭제할 경우 보이지 않는다. 답글이 없는 댓글을 삭제하면 마스킹 처리되지 않고, 삭제된다.

default.mov

@alstn113 alstn113 merged commit 1b7ce38 into main Feb 28, 2025
2 checks passed
@alstn113 alstn113 deleted the feat/#60 branch February 28, 2025 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

시험 댓글과 답글을 더보기 방식을 통해 조회할 수 있다.
1 participant