Skip to content

Conversation

@zyd123-cmd
Copy link
Contributor

resolve flash screen and relocation issues on CL detail page

@genedna genedna requested a review from Copilot October 27, 2025 09:17
Copy link
Contributor

Copilot AI left a comment

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 refactors the CL (Change List) detail page to address flash screen and relocation issues by extracting inline components into separate files. The Conversation and FileChange components, previously defined within the main page component, have been moved to standalone ConversationTab and FileChangeTab components with React.memo optimization.

Key Changes

  • Extracted Conversation and FileChange inline components into separate memoized components
  • Removed 204 lines of inline component code from the main detail page
  • Updated imports to reflect the new component locations

Reviewed Changes

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

File Description
moon/apps/web/pages/[org]/cl/[link]/index.tsx Removed inline Conversation and FileChange components; replaced with imports and usage of ConversationTab and FileChangeTab; cleaned up unused imports
moon/apps/web/components/ClView/FileChangeTab.tsx Created new memoized FileChangeTab component wrapping FileDiff
moon/apps/web/components/ClView/ConversationTab.tsx Created new memoized ConversationTab component with all conversation UI logic and sidebar

@benjamin-747 benjamin-747 added this pull request to the merge queue Oct 27, 2025
Merged via the queue into web3infra-foundation:main with commit 9e64336 Oct 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants