refactor(plexus): migrate SvgEdges to functional component (#3397)#3518
Conversation
|
Hi @hharshhsaini, thanks for your contribution! To ensure quality reviews, we limit how many concurrent open PRs new contributors can open. This PR is currently on hold (Status: 3/1 open). We will automatically move this into the review queue once your existing PRs are merged or closed. Please see our Contributing Guidelines for details on our tiered quota policy. |
|
PR quota unlocked! @hharshhsaini, this PR has been moved out of the waiting room and into the active review queue. Thank you for your patience. Current Status: 8/2 open. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
The CI failure is a TypeScript error at The issue is the final cast Fix by casting through -}) as typeof SvgEdges;
+}) as unknown as typeof SvgEdges;This is the standard pattern for generic memoized components. Note that |
…cing#3397) - Convert class component to functional component using React hooks - Replace shouldComponentUpdate with React.memo custom comparison - Preserve exact same update logic using custom areEqual function - Wrap component with React.memo to maintain performance optimization - All existing tests passing - No breaking changes to public API Signed-off-by: hharshhsaini <sainiharsh3311@gmail.com>
94fce0a to
620d801
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3518 +/- ##
==========================================
+ Coverage 88.60% 88.69% +0.08%
==========================================
Files 299 300 +1
Lines 9484 9559 +75
Branches 2500 2535 +35
==========================================
+ Hits 8403 8478 +75
+ Misses 1078 1077 -1
- Partials 3 4 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@jkowall The TypeScript casting error ( CI should be passing now. Please let me know if there's anything else. |
|
@jkowall sir , did the desired changes I think its ready to merge , PTAL. |
|
@jkowall Thanks for the approval sir. |
Which problem is this PR solving?
Resolves #3397
Part of the larger refactoring effort tracked in #2610 to modernize Jaeger UI codebase by migrating class components to functional components
Description of the changes
Migration details:
How was this change tested?
Checklist
I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
I have signed all commits
I have added unit tests for the new functionality (N/A - existing tests cover functionality)
I have run lint and test steps successfully
for jaeger-ui: 'npm run lint' and 'npm run test'