feat: improve and integrate label related functions#1290
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR integrates label functionality across merge request and issue pages, implementing a complete label management system. The key changes include adding label selectors to issue and MR detail pages, creating a new label dialog, and establishing label-related API hooks.
- Added label selection functionality to both issue and MR detail pages with proper state management
- Created a new label creation dialog with color picker and real-time preview
- Integrated label list management with improved UI and data handling
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
pages/[org]/mr/[link]/[id].tsx |
Added label selector integration to MR detail page with useLabelsSelector hook |
pages/[org]/labels/index.tsx |
Refactored labels page with new label dialog, improved search, and better UI |
hooks/usePostMRLabels.ts |
New hook for updating MR labels via API |
hooks/usePostLabelNew.ts |
New hook for creating labels via API |
hooks/usePostIssueLabels.ts |
New hook for updating issue labels via API |
hooks/useGetLabelList.ts |
New hook for fetching label list with caching |
components/MrView/index.tsx |
Integrated label list from API instead of static data |
components/MrView/TimelineItems.tsx |
Added label event handling in timeline |
components/Labels/NewLabelDialog.tsx |
New dialog component for creating labels with color picker |
components/Issues/utils/sideEffect.tsx |
Added useLabelsSelector hook and updated label utilities |
components/Issues/IssuesContent.tsx |
Updated to use dynamic label list from API |
components/Issues/IssueDetailPage.tsx |
Added label selector to issue detail page |
Comments suppressed due to low confidence (1)
moon/apps/web/pages/[org]/mr/[link]/[id].tsx:65
- [nitpick] The variable name 'mrAssignees' should be 'mrAssignees' for consistency, but the original typo 'mrAssgnees' was fixed. However, consider a more descriptive name like 'updateMrAssignees' to better indicate it's a mutation function.
const { mutate: mrAssignees } = usePostMRAssignees()
benjamin-747
approved these changes
Jul 31, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#1148
feat: add New Label
feat: integrate labelList into issue & mr page
feat(UI): complete label selector for issue & mr detail page