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 js api code and fix tooltip z-index #4577

Merged
merged 8 commits into from
Nov 13, 2024
Merged

Conversation

lucaseduoli
Copy link
Collaborator

This pull request includes several changes to the tooltip components and the getJsApiCode function. The main updates involve refactoring tooltip usage, adjusting z-index values for tooltips, and simplifying the JavaScript API code generation.

Tooltip Component Updates:

  • Updated the z-index values for TooltipContent and TooltipContentWithoutPortal to ensure tooltips are displayed correctly above other elements. (src/frontend/src/components/shadTooltipComponent/index.tsx, src/frontend/src/components/ui/tooltip.tsx) [1] [2] [3]
  • Replaced the usage of Tooltip with ShadTooltip in the SidebarMenuButton component to streamline tooltip handling. (src/frontend/src/components/ui/sidebar.tsx) [1] [2] [3]

JavaScript API Code Generation:

  • Refactored the getJsApiCode function to use a simpler fetch-based approach for API calls, removing the LangflowClient class and related methods. (src/frontend/src/modals/apiModal/utils/get-js-api-code.tsx) [1] [2]

@lucaseduoli lucaseduoli self-assigned this Nov 13, 2024
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. javascript Pull requests that update Javascript code labels Nov 13, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 13, 2024
@github-actions github-actions bot added the bug Something isn't working label Nov 13, 2024
@ogabrielluiz ogabrielluiz enabled auto-merge (squash) November 13, 2024 19:07
@ogabrielluiz ogabrielluiz merged commit da03993 into main Nov 13, 2024
18 checks passed
@ogabrielluiz ogabrielluiz deleted the fix/js_code branch November 13, 2024 19:35
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