Skip to content

feat(UI):Comment support emoji interaction and comment addition menus#1236

Merged
benjamin-747 merged 2 commits into
gitmono-dev:mainfrom
Ceron-CSS:comment-menu
Jul 16, 2025
Merged

feat(UI):Comment support emoji interaction and comment addition menus#1236
benjamin-747 merged 2 commits into
gitmono-dev:mainfrom
Ceron-CSS:comment-menu

Conversation

@Ceron-CSS

Copy link
Copy Markdown
Contributor

No description provided.

@vercel

vercel Bot commented Jul 16, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 16, 2025 7:09am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds emoji reaction support and comment management functionality to both MR (merge request) and issue views. The changes create a unified conversation system that supports reactions and dropdown menus for comments.

  • Migrates from custom Conversation interface to generated ConversationItem type for better type safety
  • Adds emoji reaction functionality with support for adding/removing reactions on comments
  • Implements dropdown menus for comment actions (copy, quote, edit, delete, etc.)

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
moon/apps/web/styles/global.css Adds CSS styles for improved focus states and popup elements
moon/apps/web/pages/[org]/mr/[id].tsx Updates MR detail interface and removes custom Conversation type
moon/apps/web/hooks/issues/useGetIssueDetail.ts Standardizes query key usage for better cache management
moon/apps/web/hooks/conversation/usePostConversationReactions.ts New hook for adding reactions to comments
moon/apps/web/hooks/conversation/useDeleteConversationReaction.ts New hook for removing reactions from comments
moon/apps/web/components/Reactions/ReactionShow.tsx New component for displaying and managing comment reactions
moon/apps/web/components/MrView/hook/useHandleExpression.ts New hook for handling reaction add/remove logic
moon/apps/web/components/MrView/TimelineItems.tsx Refactors to support both MR and issue types with generic detail prop
moon/apps/web/components/MrView/ReopenItem.tsx Updates to use ConversationItem type
moon/apps/web/components/MrView/MergedItem.tsx Updates to use ConversationItem type
moon/apps/web/components/MrView/MRComment.tsx Adds reaction picker, dropdown menu, and reaction display
moon/apps/web/components/MrView/CommentDropdownMenu.tsx New dropdown menu component for comment actions
moon/apps/web/components/MrView/CloseItem.tsx Updates to use ConversationItem type
moon/apps/web/components/Issues/IssueDetailPage.tsx Updates to use unified TimelineItems component
Comments suppressed due to low confidence (2)

moon/apps/web/components/MrView/CommentDropdownMenu.tsx:10

  • The prop name 'Conversation' uses PascalCase which is unconventional for React props. Consider renaming to 'conversation' to follow camelCase naming conventions.
  Conversation: ConversationItem

moon/apps/web/components/MrView/CommentDropdownMenu.tsx:11

  • The prop name 'CommentType' uses PascalCase which is unconventional for React props. Consider renaming to 'commentType' to follow camelCase naming conventions.
  CommentType: 'mr' | 'issue' | (string & {})

Comment thread moon/apps/web/components/MrView/TimelineItems.tsx
Comment thread moon/apps/web/components/MrView/TimelineItems.tsx Outdated
Comment thread moon/apps/web/components/MrView/CommentDropdownMenu.tsx
@benjamin-747
benjamin-747 added this pull request to the merge queue Jul 16, 2025
Merged via the queue into gitmono-dev:main with commit 3ebf241 Jul 16, 2025
4 checks passed
liuyangjuncong20202570 pushed a commit to liuyangjuncong20202570/mega that referenced this pull request Jul 20, 2025
…gitmono-dev#1236)

* feat(UI):Comment support emoji interaction and comment addition menus

* fix(UI):fix TypeScript's type
@Ceron-CSS
Ceron-CSS deleted the comment-menu branch July 24, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants