Skip to content

feat(UI):Comment box binding issue/pr interface joint debugging#1299

Merged
benjamin-747 merged 2 commits into
gitmono-dev:mainfrom
Ceron-CSS:prompt
Aug 1, 2025
Merged

feat(UI):Comment box binding issue/pr interface joint debugging#1299
benjamin-747 merged 2 commits into
gitmono-dev:mainfrom
Ceron-CSS:prompt

Conversation

@Ceron-CSS

Copy link
Copy Markdown
Contributor

No description provided.

@vercel

vercel Bot commented Aug 1, 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 Aug 1, 2025 3:43am

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 implements a unified issue and merge request suggestion system in the comment editor, allowing users to link both issues and PRs with proper type differentiation and enhanced UI functionality.

Key changes:

  • Added suggestionType attribute to the LinkIssue extension to distinguish between issues and merge requests
  • Created a new hook useGetIssueIssueSuggester for fetching issue/PR suggestions from the API
  • Enhanced the suggestion UI with better sizing, custom empty states, and type-specific icons

Reviewed Changes

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

Show a summary per file
File Description
LinkIssue.ts Added suggestionType attribute to support issue/PR differentiation
useGetIssueIssueSuggester.ts New hook for fetching issue/PR suggestions via API
SuggestionList.tsx Added disableEmptyState prop to allow custom empty state handling
LinkIssue.tsx Enhanced renderer to handle different URL patterns based on suggestion type
SlashCommand.tsx Added new slash command for linking issues/PRs with $ trigger
MentionList.tsx Replaced hardcoded data with real API integration and improved UI layout
Comments suppressed due to low confidence (1)

moon/apps/web/components/MarkdownEditor/MentionList.tsx:143

  • [nitpick] The variable name suggestionType is ambiguous in this context. Consider renaming it to linkType or entityType to better reflect that it represents the type of entity being linked.
  let suggestionType = ''

Comment thread moon/apps/web/components/MarkdownEditor/MentionList.tsx
Comment thread moon/apps/web/components/MarkdownEditor/MentionList.tsx
Comment thread moon/apps/web/components/RichTextRenderer/handlers/LinkIssue.tsx Outdated
@benjamin-747
benjamin-747 added this pull request to the merge queue Aug 1, 2025
Merged via the queue into gitmono-dev:main with commit 417787a Aug 1, 2025
4 checks passed
@Ceron-CSS
Ceron-CSS deleted the prompt branch August 19, 2025 09:36
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