-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: Add New Link Parameter Type for External Links in Node UI #3806
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…onality in inputs 📝 (inputs/input_mixin.py): Add Link field type to support linking functionality in inputs 📝 (inputs/inputs.py): Add LinkInput class to support linking functionality in inputs 📝 (io/__init__.py): Import and export LinkInput class for linking functionality in inputs 📝 (frontend/src/components/linkComponent/index.tsx): Create LinkComponent to display and handle links in frontend components 📝 (frontend/src/components/parameterRenderComponent/index.tsx): Add support for rendering LinkComponent in parameter rendering based on template type 📝 (frontend/src/constants/constants.ts): Add "link" as a supported type for LANGFLOW_SUPPORTED_TYPES 📝 (frontend/src/types/api/index.ts): Add icon and text fields to InputFieldType for link component 📝 (frontend/src/types/components/index.ts): Define LinkComponentType for passing link data to LinkComponent ✨ (linkComponent.spec.ts): Add unit test for link component interaction to ensure proper functionality and behavior 📝 (unit-test-components.spec.ts): Add template for a unit test file to be used for testing components in the frontend application
This pull request is automatically being deployed by Amplify Hosting (learn more). |
italojohnny
approved these changes
Sep 16, 2024
diogocabral
pushed a commit
to headlinevc/langflow
that referenced
this pull request
Nov 26, 2024
…flow-ai#3806) * ✨ (inputs/__init__.py): Add LinkInput class to support linking functionality in inputs 📝 (inputs/input_mixin.py): Add Link field type to support linking functionality in inputs 📝 (inputs/inputs.py): Add LinkInput class to support linking functionality in inputs 📝 (io/__init__.py): Import and export LinkInput class for linking functionality in inputs 📝 (frontend/src/components/linkComponent/index.tsx): Create LinkComponent to display and handle links in frontend components 📝 (frontend/src/components/parameterRenderComponent/index.tsx): Add support for rendering LinkComponent in parameter rendering based on template type 📝 (frontend/src/constants/constants.ts): Add "link" as a supported type for LANGFLOW_SUPPORTED_TYPES 📝 (frontend/src/types/api/index.ts): Add icon and text fields to InputFieldType for link component 📝 (frontend/src/types/components/index.ts): Define LinkComponentType for passing link data to LinkComponent ✨ (linkComponent.spec.ts): Add unit test for link component interaction to ensure proper functionality and behavior 📝 (unit-test-components.spec.ts): Add template for a unit test file to be used for testing components in the frontend application * style: apply make format * Update input_mixin.py --------- Co-authored-by: italojohnny <italojohnnydosanjos@gmail.com>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
enhancement
New feature or request
lgtm
This PR has been approved by a maintainer
size:L
This PR changes 100-499 lines, ignoring generated files.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new parameter type called link, designed to enhance the functionality of the node UI by allowing the rendering of buttons that link to external URLs. The link parameter is fully configurable and customizable, providing flexibility for users to personalize the appearance and behavior of the button.
✨ (inputs/init.py): Add LinkInput class to support linking functionality in inputs
📝 (inputs/input_mixin.py): Add Link field type to support linking functionality in inputs
📝 (inputs/inputs.py): Add LinkInput class to support linking functionality in inputs
📝 (io/init.py): Import and export LinkInput class for linking functionality in inputs
📝 (frontend/src/components/linkComponent/index.tsx): Create LinkComponent to display and handle links in frontend components
📝 (frontend/src/components/parameterRenderComponent/index.tsx): Add support for rendering LinkComponent in parameter rendering based on template type
📝 (frontend/src/constants/constants.ts): Add "link" as a supported type for LANGFLOW_SUPPORTED_TYPES
📝 (frontend/src/types/api/index.ts): Add icon and text fields to InputFieldType for link component
📝 (frontend/src/types/components/index.ts): Define LinkComponentType for passing link data to LinkComponent
✨ (linkComponent.spec.ts): Add unit test for link component interaction to ensure proper functionality and behavior
📝 (unit-test-components.spec.ts): Add template for a unit test file to be used for testing components in the frontend application