feat: Update welcome panel with telemetry information

The welcome panel in the `__main__.py` module has been updated to include information about telemetry data collection. This change adds a new line of text explaining that anonymous usage data is collected to improve Langflow, and provides instructions on how to opt-out by setting the `DO_NOT_TRACK` environment variable to `true`.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-23 15:33:05 -03:00
commit ea28e8bd06

View file

@ -381,10 +381,11 @@ def print_banner(host: str, port: int):
styled_package_name = stylize_text(package_name, package_name, any("pre-release" in notice for notice in notices))
title = f"[bold]Welcome to :chains: {styled_package_name}[/bold]\n"
info_text = "Collaborate, and contribute at our [bold][link=https://github.com/langflow-ai/langflow]GitHub Repo[/link][/bold] :rocket:"
info_text = "Collaborate, and contribute at our [bold][link=https://github.com/langflow-ai/langflow]GitHub Repo[/link][/bold] :star2:"
telemetry_text = "We collect anonymous usage data to improve Langflow.\nYou can opt-out by setting [bold]DO_NOT_TRACK=true[/bold] in your environment."
access_link = f"Access [link=http://{host}:{port}]http://{host}:{port}[/link]"
panel_content = "\n\n".join([title, *styled_notices, info_text, access_link])
panel_content = "\n\n".join([title, *styled_notices, info_text, telemetry_text, access_link])
panel = Panel(panel_content, box=box.ROUNDED, border_style="blue", expand=False)
rprint(panel)