Skip to content

feat: add reply and spoiler on comment#69

Merged
izakdvlpr merged 1 commit into
developfrom
feat/add-reply-and-spoiler-on-comment
Jul 10, 2026
Merged

feat: add reply and spoiler on comment#69
izakdvlpr merged 1 commit into
developfrom
feat/add-reply-and-spoiler-on-comment

Conversation

@izakdvlpr

Copy link
Copy Markdown
Contributor

Description

Acknowledgements

Screenshots

Proof showing the creation/modification is working as expected

@izakdvlpr izakdvlpr merged commit 9a786ab into develop Jul 10, 2026
5 checks passed
@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 9ef6c411-b753-4fa8-9b22-97aee38ef7a9

📥 Commits

Reviewing files that changed from the base of the PR and between 390d2ec and 75475b7.

📒 Files selected for processing (4)
  • prisma/migrations/20260710200857_comment_replies_spoiler/migration.sql
  • prisma/schema.prisma
  • src/modules/comment/dto/create-comment.dto.ts
  • src/modules/comment/service/comment.service.ts

📝 Walkthrough

Walkthrough

The Comment model and database migration add spoiler flags and self-referential reply relationships. The create-comment DTO accepts optional validated isSpoiler and parentId fields. Comment retrieval now returns root comments with nested replies and reusable user and reaction selections, while explicitly excluding child comments from the top-level result.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Client
  participant CommentService
  participant PrismaCommentQuery
  Client->>CommentService: Request comments
  CommentService->>PrismaCommentQuery: Filter root comments by parentId null
  PrismaCommentQuery-->>CommentService: Return comments with replies and reactions
  CommentService-->>Client: Return nested comment results
Loading
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/add-reply-and-spoiler-on-comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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