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: Improve Connection Line Styling and Cleanup Unused Code in FlowPage Components #4449

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

Cristhianzl
Copy link
Collaborator

This pull request includes changes to the ConnectionLineComponent and PageComponent in the FlowPage directory. The main focus is on improving the visual representation of connection lines and cleaning up unused code.

Changes to ConnectionLineComponent:

  • Added accentColor variable to use HSL color based on the dragging state.
  • Updated the stroke style to use accentColor instead of the direct color value.
  • Changed the stroke attribute of the circle element to use accentColor instead of the direct color value.

Changes to PageComponent:

  • Removed unused zoomIn, zoomOut, fitView, and zoom variables.

… to dynamically set stroke and accent color based on handleDragging color

♻️ (PageComponent/index.tsx): refactor code to remove unused variables zoomIn, zoomOut, fitView, and zoom to improve code readability and maintainability
@Cristhianzl Cristhianzl self-assigned this Nov 7, 2024
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Nov 7, 2024
@github-actions github-actions bot added the bug Something isn't working label Nov 7, 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 7, 2024
@italojohnny italojohnny merged commit e63cace into main Nov 7, 2024
19 of 20 checks passed
@italojohnny italojohnny deleted the cz/fix-handle-drag-color branch November 7, 2024 15:53
joaoguilhermeS pushed a commit that referenced this pull request Nov 7, 2024
…age Components (#4449)

✨ (ConnectionLineComponent/index.tsx): introduce accentColor variable to dynamically set stroke and accent color based on handleDragging color
♻️ (PageComponent/index.tsx): refactor code to remove unused variables zoomIn, zoomOut, fitView, and zoom to improve code readability and maintainability

Co-authored-by: Mike Fortman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants