Skip to content

Feat: Add Bookmark highlights in ai summary#133

Merged
DongilMin merged 55 commits intoON-AIR-mate:mainfrom
DongilMin:main
Aug 20, 2025
Merged

Feat: Add Bookmark highlights in ai summary#133
DongilMin merged 55 commits intoON-AIR-mate:mainfrom
DongilMin:main

Conversation

@DongilMin
Copy link
Member

@DongilMin DongilMin commented Aug 20, 2025

📋 작업 내용

  • Dto에 북마크 하이라이트 추가
  • AI 요약에 북마크 하이라이트 추가
  • 스웨거 형식 변경

Summary by CodeRabbit

  • 신규 기능
    • AI 요약 응답에 하이라이트가 추가되어, 북마크 기반의 타임라인, 내용, 작성자 정보(닉네임 포함)를 함께 확인할 수 있습니다.
  • 문서
    • POST /api/ai/summary 응답 스키마를 확장했습니다: highlights 필드와 예시를 추가하고, emotionAnalysis 항목의 아이템 스키마와 예시를 명시했습니다.
    • topicSummary 예시 문구를 사용자 친화적으로 업데이트했습니다.

@DongilMin DongilMin self-assigned this Aug 20, 2025
@DongilMin DongilMin merged commit 75ca7e3 into ON-AIR-mate:main Aug 20, 2025
1 check passed
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 20, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

  • DTO에 HighlightItem 인터페이스(timeline, content, userId, nickname) 추가.
  • GenerateSummaryResponseDto에 highlights: HighlightItem[] 필드 추가.
  • aiSummaryService에서 방의 북마크를 조회·정렬하고 HighlightItem[]로 매핑하여 응답에 포함.
  • Claude 호출 로직과 페이로드는 변경 없음.
  • 처리 순서 일부 조정: 북마크→하이라이트 생성 후 요약 생성 진행.
  • aiSummaryRoutes의 Swagger 문서에 highlights 스키마와 예시 추가, emotionAnalysis 아이템 스키마 명시, topicSummary 예시 문구 변경.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant C as Client
  participant R as API Route (/api/ai/summary)
  participant S as aiSummaryService
  participant B as Bookmark Store
  participant M as Claude Model

  C->>R: POST /api/ai/summary
  R->>S: generateChatSummary(request)
  S->>B: fetchRoomBookmarks(roomId, orderBy: timeline)
  B-->>S: bookmarks[]
  S->>S: map to HighlightItem[] (timeline, content, userId, nickname)
  S->>M: generateSummary(messages, context)
  M-->>S: topicSummary, emotionAnalysis, timestamp
  S-->>R: { topicSummary, emotionAnalysis, highlights, timestamp }
  R-->>C: 200 OK + response
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 408a30f and 3348461.

📒 Files selected for processing (3)
  • src/dtos/aiSummaryDto.ts (2 hunks)
  • src/routes/aiSummaryRoutes.ts (2 hunks)
  • src/services/aiSummaryService.ts (3 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a 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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

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

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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