From ea89c4d399d73e851066314885db72f5873368d2 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 5 May 2026 13:51:32 +0000 Subject: [PATCH] ui(gui): say 'window' instead of 'browser tab' in shutdown copy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the Close page intro, the shutdown overlay, and the toast so they all read "you can close this window" — clearer for users running the app in a dedicated browser window rather than a tab. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/gui/components/_legacy.py | 4 ++-- src/gui/pages/99_Close.py | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gui/components/_legacy.py b/src/gui/components/_legacy.py index 4a06989..0317995 100644 --- a/src/gui/components/_legacy.py +++ b/src/gui/components/_legacy.py @@ -105,7 +105,7 @@ _FAREWELL_SCRIPT = """ 'border-radius:12px;background:#161922;max-width:480px;">' + '

' + 'DataTools has shut down

' + - '

You can close this browser tab.

' + + '

You can close this window.

' + ''; return overlay; } @@ -143,7 +143,7 @@ def quit_button(label: str = "Quit app", *, key: str = "quit_app_button") -> Non if st.session_state.get("_app_shutting_down"): from streamlit.components.v1 import html as _components_html _components_html(_FAREWELL_SCRIPT, height=0) - st.success("Shutting down… you can close this browser tab.") + st.success("Shutting down… you can close this window.") st.stop() if st.button(label, key=key, type="secondary"): diff --git a/src/gui/pages/99_Close.py b/src/gui/pages/99_Close.py index 241b73e..a3beeb9 100644 --- a/src/gui/pages/99_Close.py +++ b/src/gui/pages/99_Close.py @@ -33,9 +33,8 @@ st.divider() st.markdown( "Clicking the button below will terminate the DataTools server. " - "Any unsaved work in other tools will be lost. The browser tab " - "will show a connection-error message — that's expected; you can " - "close the tab once it appears." + "Any unsaved work in other tools will be lost. Once the app shuts " + "down you can close this window." ) st.write("")