From 364b072d115318bd6d1cef72fc350410452a825e Mon Sep 17 00:00:00 2001 From: Abdul Baari Davids Date: Thu, 30 Oct 2025 01:00:34 +0200 Subject: [PATCH] improvements for ui --- app.py | 12 +++++++++++- .../autoresponder/templates/greeter_tab.html | 2 +- .../img/mod-log-where-to-find-channel-id.png | Bin 423066 -> 176631 bytes 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index cc67788..e4e5ee8 100644 --- a/app.py +++ b/app.py @@ -82,10 +82,20 @@ async def overview_context_provider(request: Request, ctx: PluginContext): + workspace_name = "Unknown workspace" + try: + # Fetch workspace name from Slack API + team_info = await slack_app.client.team_info() + if team_info and team_info.get("ok"): + workspace_name = team_info["team"]["name"] + except Exception: + # Fallback to env var if API call fails + workspace_name = os.getenv("SLACK_TEAM_NAME", "Unknown workspace") + return { "plugins": plugin_manager.plugins, "socket_status": "running", - "workspace": os.getenv("SLACK_TEAM_NAME", "Unknown workspace"), + "workspace": workspace_name, } diff --git a/plugins/autoresponder/templates/greeter_tab.html b/plugins/autoresponder/templates/greeter_tab.html index d52e5e4..a681cd8 100644 --- a/plugins/autoresponder/templates/greeter_tab.html +++ b/plugins/autoresponder/templates/greeter_tab.html @@ -268,7 +268,7 @@

AI-Powered Greetings

AI Configuration

-
+