Skip to content

feat(UI): add some features#1248

Merged
benjamin-747 merged 2 commits into
gitmono-dev:mainfrom
liuyangjuncong20202570:mega
Jul 21, 2025
Merged

feat(UI): add some features#1248
benjamin-747 merged 2 commits into
gitmono-dev:mainfrom
liuyangjuncong20202570:mega

Conversation

@liuyangjuncong20202570

Copy link
Copy Markdown
Contributor

移除了antd组件库
重写code相关布局代码
注释CodeContent中与dropdown相关代码
移除open | close持久化逻辑
分离pagination中close | open存储对象
修复issue mr列表中白屏问题
重写issuelist item显示UI(评论数量与是否显示assignee)

@vercel

vercel Bot commented Jul 20, 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 20, 2025 8:08am

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 removes Ant Design components library and rewrites code-related layout components to use custom/Radix UI components instead. Key changes include removing Ant Design dependency, refactoring layout components to use Flexbox/CSS classes, and improving issue/MR list pagination with separate state management for open/closed items.

  • Removed Ant Design (antd) library dependency from workspace and package.json
  • Rewrote code view layouts replacing Ant Design's Layout and Flex components with native CSS classes
  • Refactored pagination system to separate open/closed state management for issues and merge requests

Reviewed Changes

Copilot reviewed 15 out of 18 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
pnpm-workspace.yaml Removed antd catalog entry and fixed quote consistency
package.json Removed @ant-design/icons and antd dependencies
[org]/mr/[id].tsx Added comment-aware close/reopen functionality and styling fixes
code/tree/[...path]/index.tsx Replaced Ant Design Layout/Flex with native CSS classes
code/blob/[...path].tsx Replaced Ant Design components with native div elements
components/MrView/index.tsx Enhanced pagination with separate state for open/closed MRs
Issues/utils/store.tsx Added separate pagination atoms for different states
Issues/Pagenation.tsx Made Pagination component generic with configurable state
Issues/IssuesContent.tsx Implemented separate pagination state management
Issues/IssueDetailPage.tsx Added comment-aware issue close functionality
CodeView/BlobView/CodeContent.tsx Replaced Ant Design components with react-hot-toast
Files not reviewed (1)
  • moon/pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)

Comment thread moon/apps/web/pages/[org]/mr/[id].tsx
Comment thread moon/apps/web/components/Issues/IssueDetailPage.tsx
Comment thread moon/apps/web/components/Issues/utils/store.tsx
Comment thread moon/apps/web/components/CodeView/BlobView/CodeContent.tsx
Comment thread moon/apps/web/components/Issues/Pagenation.tsx
@benjamin-747
benjamin-747 added this pull request to the merge queue Jul 21, 2025
Merged via the queue into gitmono-dev:main with commit dd1d252 Jul 21, 2025
5 checks passed
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.

3 participants