Skip to content

feat(UI):sse logs complete & dynamic import of cmps#1369

Merged
benjamin-747 merged 3 commits into
gitmono-dev:mainfrom
liuyangjuncong20202570:feat-sse
Aug 25, 2025
Merged

feat(UI):sse logs complete & dynamic import of cmps#1369
benjamin-747 merged 3 commits into
gitmono-dev:mainfrom
liuyangjuncong20202570:feat-sse

Conversation

@liuyangjuncong20202570

Copy link
Copy Markdown
Contributor

完善sse日志需求
分离conversation、checks、filechange渲染逻辑

@vercel

vercel Bot commented Aug 23, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mega Ready Ready Preview Comment Aug 24, 2025 8:52am

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 completes SSE (Server-Sent Events) logs functionality and refactors the MR view with dynamic component imports. The main purpose is to improve performance through code splitting and enhance the logging system for real-time task monitoring.

  • Refactors MR detail page to use dynamic imports and tab-based navigation
  • Enhances SSE logging with better duplicate detection and HTTP log fetching
  • Consolidates SSE request functions into a centralized module

Reviewed Changes

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

Show a summary per file
File Description
moon/apps/web/pages/[org]/mr/[link]/index.tsx Refactors to use dynamic imports and tab-based layout for better code splitting
moon/apps/web/hooks/SSE/useRequest.ts Removes old request function, replaced by consolidated module
moon/apps/web/hooks/SSE/useGetTaskStatus.ts Adds new hook for fetching individual task status
moon/apps/web/hooks/SSE/useGetMrTaskStatus.ts Adds new hook for fetching MR-level task status with polling
moon/apps/web/hooks/SSE/useGetMrTask.ts Updates to use consolidated request module
moon/apps/web/hooks/SSE/useGetHTTPLog.ts Adds new hook for HTTP log fetching
moon/apps/web/hooks/SSE/ssmRequest.ts Consolidates all SSE-related API requests
moon/apps/web/components/MrView/hook/useSSM.ts Improves duplicate log detection and data structure
moon/apps/web/components/MrView/components/Checks/index.tsx Enhances with better log management and status handling
moon/apps/web/components/MrView/components/Checks/cpns/store.ts Updates status enum and atom types
moon/apps/web/components/MrView/components/Checks/cpns/Task.tsx Refactors task rendering with improved status handling
moon/apps/web/components/Layout/TabLayout.tsx Adds new tab navigation component
moon/apps/web/components/Issues/utils/store.tsx Renames buildId atom for consistency
moon/apps/web/components/Issues/IssueDetailPage.tsx Updates to use link instead of issueDetail.id

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@benjamin-747
benjamin-747 added this pull request to the merge queue Aug 25, 2025
Merged via the queue into gitmono-dev:main with commit c9d4104 Aug 25, 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.

4 participants