Skip to content

fix: repair the assignees staty status#1260

Merged
benjamin-747 merged 4 commits into
gitmono-dev:mainfrom
liuyangjuncong20202570:feat-lyjc
Jul 26, 2025
Merged

fix: repair the assignees staty status#1260
benjamin-747 merged 4 commits into
gitmono-dev:mainfrom
liuyangjuncong20202570:feat-lyjc

Conversation

@liuyangjuncong20202570

Copy link
Copy Markdown
Contributor

对接assignees接口
修复assignees状态问题

@vercel

vercel Bot commented Jul 25, 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 26, 2025 8:18am

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 fixes assignees status handling by implementing proper API integration for issue assignees functionality. The changes introduce a new assignees API endpoint, update the issue detail page to support assignee management, and fix routing to include both link and ID parameters.

  • Adds new hook for posting issue assignees updates
  • Updates issue detail page to manage assignee state and API calls
  • Fixes routing structure to include both link and ID in URLs
  • Simplifies issue detail data fetching by removing custom transformations

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
moon/apps/web/pages/[org]/issue/[link]/[id]/index.tsx Updates page component to pass both link and id parameters to detail page
moon/apps/web/hooks/issues/usePostIssueAssignees.ts Adds new hook for handling assignees API calls
moon/apps/web/hooks/issues/useGetIssueDetail.ts Simplifies hook by using generated types and removing custom data transformation
moon/apps/web/components/MrView/TimelineItems.tsx Adds support for Assignee conversation type and fixes code formatting
moon/apps/web/components/Issues/IssuesContent.tsx Updates issue navigation to include ID in URL path
moon/apps/web/components/Issues/IssueNewPage.tsx Enhances BadgeItem component with controlled/uncontrolled state management
moon/apps/web/components/Issues/IssueDetailPage.tsx Major update adding complete assignees functionality with state management

Comment thread moon/apps/web/components/Issues/IssueDetailPage.tsx Outdated
title='Assignees'
handleGroup={(selected) => handleAssignees(selected)}
open={open}
onOpenChange={(open) => handleOpneChange(open)}

Copilot AI Jul 25, 2025

Copy link

Choose a reason for hiding this comment

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

Function call has a typo. It should be 'handleOpenChange' instead of 'handleOpneChange' to match the corrected function name.

Suggested change
onOpenChange={(open) => handleOpneChange(open)}
onOpenChange={(open) => handleOpenChange(open)}

Copilot uses AI. Check for mistakes.
Comment thread moon/apps/web/components/Issues/IssueDetailPage.tsx Outdated
Comment thread moon/apps/web/components/Issues/IssueDetailPage.tsx Outdated
Comment thread moon/apps/web/components/Issues/IssueDetailPage.tsx Outdated
@benjamin-747
benjamin-747 added this pull request to the merge queue Jul 26, 2025
Merged via the queue into gitmono-dev:main with commit 50b8dde Jul 26, 2025
4 checks passed
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