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

feat: add new .env variable "LANGFLOW_MVP_COMPONENTS" to show/hide integration sidebar components #4253

Closed
wants to merge 11 commits into from

Conversation

Cristhianzl
Copy link
Member

Description
This pull request introduces a new .env variable: LANGFLOW_MVP_COMPONENTS. This variable will allow for the dynamic control of displaying or hiding the integration sidebar components based on the environment configuration.

Key Changes
Added a new environment variable LANGFLOW_MVP_COMPONENTS.
Updated logic in the sidebar component to check the value of LANGFLOW_MVP_COMPONENTS and conditionally display integration components.
Updated documentation to include instructions for using the new .env variable.

How to Use
Add LANGFLOW_MVP_COMPONENTS=true or LANGFLOW_MVP_COMPONENTS=false to your .env file.
When set to true, the integration sidebar components will be visible.
When set to false, the integration sidebar components will be hidden.

…rect visibility of integrations in the sidebar based on the value of mvp_components.
…nding setter function setMvpComponents to manage MVP components in the application.
…orresponding setter function setMvpComponents to manage MVP components in the utility store.
…n the extra sidebar to enhance functionality and user experience.
…nents configuration option in useGetConfig hook
…de-supported package to clean up unnecessary information
@Cristhianzl Cristhianzl self-assigned this Oct 23, 2024
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. documentation Improvements or additions to documentation enhancement New feature or request labels Oct 23, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request documentation Improvements or additions to documentation labels Oct 23, 2024
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Oct 23, 2024
Copy link
Contributor

@ogabrielluiz ogabrielluiz left a comment

Choose a reason for hiding this comment

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

Hey @Cristhianzl

We have FeatureFlags (

) this fits better there

@Cristhianzl
Copy link
Member Author

Hey @Cristhianzl

We have FeatureFlags (

) this fits better there

@ogabrielluiz

However, this needs to be controlled on the frontend. Does the feature flag added to the backend have the capability to influence frontend behavior?

📝 (endpoints.py): modify get_config function to include feature_flags in the response
📝 (feature_flags.py): add mvp_components field to FeatureFlags settings
📝 (schemas.py): add feature_flags field to ConfigResponse schema
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Oct 24, 2024
@Cristhianzl
Copy link
Member Author

Cristhianzl commented Oct 24, 2024

Please follow up the PR #427

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants