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

Custom Component "display_name" from the code is not displayed in UI #5361

Closed
rodolfo3 opened this issue Dec 19, 2024 · 2 comments
Closed

Custom Component "display_name" from the code is not displayed in UI #5361

rodolfo3 opened this issue Dec 19, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@rodolfo3
Copy link

Bug Description

Set "display_name" prop on python code does not show the component name on the UI

Reproduction

  1. create a new flow
  2. click on "New Custom Component" on the bottom left
  3. into the new component added to the flow, click "code"
  4. Change the class attributes "display_name" and "name"
  5. click "Check & Save" button

The UI keep showing the "Custom Component" as title

Expected behavior

The UI should respect the "display_name" from the code (not only when it is changed by clicking on the title).

Who can help?

No response

Operating System

debian testing

Langflow Version

1.1.1

Python Version

None

Screenshot

No response

Flow File

No response

@rodolfo3 rodolfo3 added the bug Something isn't working label Dec 19, 2024
Copy link

dosubot bot commented Dec 19, 2024

Hey @rodolfo3! I'm here to help you with any bugs, questions, or contributions. Let's tackle this issue together!

I found a similar discussion that might help with your issue. In the thread "How do I rename I custom component that I adjusted?," it was noted that the display_name attribute might not be properly utilized or referenced in the code that renders the component on the canvas. The solution involved ensuring that the JSON configuration for the component is updated to reflect the correct display_name and checking the rendering logic in the UI code to ensure it correctly accesses and displays the display_name attribute from the component class [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@carlosrcoelho carlosrcoelho self-assigned this Dec 20, 2024
@carlosrcoelho
Copy link
Contributor

Hey @rodolfo3

This has already been adjusted and will be available in the next release, around mid-January.

In the meantime, the option you can use is to double-click where it says Custom Component and change it to whatever name you want.

Screen.Recording.2024-12-19.at.15.00.34.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants