From ea28e8bd066ae9c4b9afbd73d57a7628e9305500 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sun, 23 Jun 2024 15:33:05 -0300 Subject: [PATCH] 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`. --- src/backend/base/langflow/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/base/langflow/__main__.py b/src/backend/base/langflow/__main__.py index b1898f1ef..730d31ea7 100644 --- a/src/backend/base/langflow/__main__.py +++ b/src/backend/base/langflow/__main__.py @@ -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)