Skip to content

refactor: convert AccordionLinks to functional component - #3411

Closed
VedantMadane wants to merge 7 commits into
jaegertracing:mainfrom
VedantMadane:refactor-accordionlinks-functional
Closed

refactor: convert AccordionLinks to functional component#3411
VedantMadane wants to merge 7 commits into
jaegertracing:mainfrom
VedantMadane:refactor-accordionlinks-functional

Conversation

@VedantMadane

Copy link
Copy Markdown

Summary

  • refactor AccordionLinks from class-based PureComponent to functional component
  • preserve default props and wrap with React.memo

Testing

  • not run (local Node/tooling not available)

Screenshots

  • not included (no UI environment available)

Fixes #3364

@VedantMadane
VedantMadane requested a review from a team as a code owner January 14, 2026 20:17
@VedantMadane
VedantMadane requested review from mahadzaryab1 and removed request for a team January 14, 2026 20:17
@jkowall jkowall added the changelog:refactoring Internal, non-functional code improvements label Jan 14, 2026
@jkowall
jkowall requested a review from Copilot January 14, 2026 23:37

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 refactors the AccordionLinks component from a class-based PureComponent to a functional component with React.memo for performance optimization.

Changes:

  • Converted class-based component to functional component with destructured props
  • Replaced static defaultProps with default parameter values in function signature
  • Wrapped export with React.memo to preserve PureComponent behavior

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jkowall

jkowall commented Jan 14, 2026

Copy link
Copy Markdown
Contributor

@VedantMadane please sign the DCO and follow those instructions. Thanks!

Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
@VedantMadane
VedantMadane force-pushed the refactor-accordionlinks-functional branch from 8d5100c to 79f737f Compare January 15, 2026 04:04
@yurishkuro yurishkuro added the waiting-for-author PR is waiting for author to respond to maintainer's comments label Jan 19, 2026
@github-actions github-actions Bot removed the waiting-for-author PR is waiting for author to respond to maintainer's comments label Jan 20, 2026
…Links

Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
@VedantMadane
VedantMadane force-pushed the refactor-accordionlinks-functional branch from 67f3f75 to 72b3034 Compare January 20, 2026 17:20
…r/SpanDetail/AccordionLinks.tsx

Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
@yurishkuro

Copy link
Copy Markdown
Member

not run (local Node/tooling not available)

this is not an acceptable way to contribute

@yurishkuro yurishkuro closed this Feb 3, 2026
@github-actions github-actions Bot added the waiting-for-author PR is waiting for author to respond to maintainer's comments label Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:refactoring Internal, non-functional code improvements waiting-for-author PR is waiting for author to respond to maintainer's comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI Refactor] Migrate AccordionLinks to Functional Component

4 participants