Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize method binding patterns in OpenTracesWidget #1174

Conversation

williamsyang-work
Copy link
Contributor

What it does

Modernizes method binding patterns in OpenedTracesWidget as part of #1173 .

How to test

  1. Run the existing test suite
  2. Verify OpenedTracesWidget functionality remains unchanged
  3. Review code changes to confirm all delegation patterns and .bind(this) calls have been replaced with arrow functions

Follow-ups

No technical debt introduced. This PR reduces existing technical debt by simplifying the codebase.

Review checklist

  • As an author, I have thoroughly tested my changes and carefully followed the instructions in this template

Removes 'react-tooltip' dependency and adds an in-house tooltip impl.
Simplifies the rendering of tooltips inside of all available views.
Fixes some UI bugs with tooltips.
Fixes the bugged hourglass bug.

Signed-off-by: Will Yang <william.yang@ericsson.com>
Remove redundant method delegation patterns and explicit .bind(this)
usage in favor of arrow functions. This modernization aligns with
TypeScript best practices and reduces unnecessary code complexity while
maintaining identical functionality.

Changes:

Replace method delegation pattern with direct arrow function implementation
Remove explicit .bind(this) calls where arrow functions are used
Maintain existing behavior and functionality
Improve code readability

Related to eclipse-cdt-cloud#1173

Signed-off-by: Will Yang <william.yang@ericsson.com>
@williamsyang-work williamsyang-work deleted the cleanup-context-binding branch February 11, 2025 19:45
@williamsyang-work
Copy link
Contributor Author

Accidentally created this branch off of a feature branch. Deleting and creating a new one.

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.

1 participant