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

fix: stop taking zoom into account in tooltip render #4377

Merged
merged 14 commits into from
Nov 4, 2024
Merged

Conversation

Cristhianzl
Copy link
Member

@Cristhianzl Cristhianzl commented Nov 4, 2024

This pull request includes changes to the HandleRenderComponent in the src/frontend/src/CustomNodes/GenericNode/components/handleRenderComponent/index.tsx file. The main focus of these changes is to simplify the component structure and remove unnecessary code.

Simplification of component structure:

  • Removed the getTranslateX function and its associated logic for determining translation classes based on the zoom level.
  • Reorganized the JSX structure by moving the ShadTooltip component to wrap the Handle component directly, eliminating redundant div elements. [1] [2] [3]

…tion and simplify tooltip positioning logic to improve code readability and maintainability.
@Cristhianzl Cristhianzl self-assigned this Nov 4, 2024
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Nov 4, 2024
@dosubot dosubot bot added bug Something isn't working javascript Pull requests that update Javascript code labels Nov 4, 2024
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Nov 4, 2024
@ogabrielluiz ogabrielluiz changed the title fix: handle tooltip not rendering as expected fix: stop taking zoom into account in tooltip render Nov 4, 2024
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Nov 4, 2024
Copy link
Contributor

@anovazzi1 anovazzi1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 4, 2024
…mes for elements to be visible

⬆️ (userSettings.spec.ts): update tests to include explicit wait times for elements to be visible
…es by clicking on checkbox and deleting an item to ensure proper functionality
@Cristhianzl Cristhianzl enabled auto-merge (squash) November 4, 2024 15:20
…or clicking elements and waiting for visibility to improve code readability and maintainability

🔧 (deleteFlows.spec.ts): Refactor test to use separate functions for waiting for and interacting with elements to improve code readability and maintainability
@Cristhianzl Cristhianzl disabled auto-merge November 4, 2024 21:02
…g by tag in tests to match the actual text displayed on the page
…m running due to missing STORE_API_KEY environment variable
… prevent it from running due to missing STORE_API_KEY environment variable
…ronment variable to run, as it is not available in the test environment
@Cristhianzl Cristhianzl enabled auto-merge (squash) November 4, 2024 22:54
@Cristhianzl Cristhianzl merged commit 5a4d4c8 into main Nov 4, 2024
28 of 29 checks passed
@Cristhianzl Cristhianzl deleted the cz/fix-tooltip branch November 4, 2024 23:31
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
* 🔧 (handleRenderComponent/index.tsx): Remove unused getTranslateX function and simplify tooltip positioning logic to improve code readability and maintainability.

* ⬆️ (auto-login-off.spec.ts): update tests to include explicit wait times for elements to be visible
⬆️ (userSettings.spec.ts): update tests to include explicit wait times for elements to be visible

* ✅ (userSettings.spec.ts): update test to interact with global variables by clicking on checkbox and deleting an item to ensure proper functionality

* ✨ (store-shard-2.spec.ts): Refactor test to use a reusable function for clicking elements and waiting for visibility to improve code readability and maintainability
🔧 (deleteFlows.spec.ts): Refactor test to use separate functions for waiting for and interacting with elements to improve code readability and maintainability

* 🐛 (store-shard-2.spec.ts): fix incorrect text comparison for filtering by tag in tests to match the actual text displayed on the page

* ✅ (store-shard-2.spec.ts): mark the test as skipped to prevent it from running due to missing STORE_API_KEY environment variable

* ✅ (deleteFlows.spec.ts): skip the test case "should delete a flow" to prevent it from running due to missing STORE_API_KEY environment variable

* ✅ (store-shard-3.spec.ts): skip tests that require STORE_API_KEY environment variable to run, as it is not available in the test environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working javascript Pull requests that update Javascript code lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants