From 61d34e1a6f6372456000decadb7fcc64bbdb1926 Mon Sep 17 00:00:00 2001 From: Khoroshevskyi Date: Wed, 21 Jan 2026 08:39:06 -0500 Subject: [PATCH 1/3] Updated ui while connection is lost --- ui/package.json | 2 +- ui/src/components/common/connection-banner.tsx | 18 ++++++++++++++++++ ui/src/components/layout.tsx | 3 +++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 ui/src/components/common/connection-banner.tsx diff --git a/ui/package.json b/ui/package.json index b32c1c53..0e3044a3 100644 --- a/ui/package.json +++ b/ui/package.json @@ -1,7 +1,7 @@ { "name": "bedhost-ui-2", "private": true, - "version": "0.12.0", + "version": "0.12.2", "type": "module", "scripts": { "dev": "vite", diff --git a/ui/src/components/common/connection-banner.tsx b/ui/src/components/common/connection-banner.tsx new file mode 100644 index 00000000..540856ab --- /dev/null +++ b/ui/src/components/common/connection-banner.tsx @@ -0,0 +1,18 @@ +import { useServiceInfo } from '../../queries/useServiceInfo'; + +export const ConnectionBanner = () => { + const { data, isLoading, isError } = useServiceInfo(); + + // Show banner only when there's an error or no data (and not loading) + const showBanner = !isLoading && (isError || !data); + + if (!showBanner) { + return null; + } + + return ( +
+ Sorry, BedBase is currently experiencing connection issues. Some features may be unavailable. +
+ ); +}; diff --git a/ui/src/components/layout.tsx b/ui/src/components/layout.tsx index a91cfc96..02f29d4a 100644 --- a/ui/src/components/layout.tsx +++ b/ui/src/components/layout.tsx @@ -3,6 +3,7 @@ import { useServiceInfo } from '../queries/useServiceInfo'; import { StatusCircle } from './badges/status-circles'; import { SEO } from './seo'; import { Nav } from './nav/nav'; +import { ConnectionBanner } from './common/connection-banner'; type LayoutProps = { children: React.ReactNode; @@ -78,6 +79,7 @@ export const Layout = (props: LayoutProps) => {
+
{children}
@@ -95,6 +97,7 @@ export const Layout = (props: LayoutProps) => {
+
From e88f7871a6cc6db02e9b3fdb200ae6c235957ba0 Mon Sep 17 00:00:00 2001 From: Khoroshevskyi Date: Wed, 21 Jan 2026 08:41:00 -0500 Subject: [PATCH 2/3] fixed Bedbase name in a message --- ui/src/components/common/connection-banner.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/common/connection-banner.tsx b/ui/src/components/common/connection-banner.tsx index 540856ab..fc091054 100644 --- a/ui/src/components/common/connection-banner.tsx +++ b/ui/src/components/common/connection-banner.tsx @@ -12,7 +12,7 @@ export const ConnectionBanner = () => { return (
- Sorry, BedBase is currently experiencing connection issues. Some features may be unavailable. + Sorry, BEDbase is currently experiencing connection issues. Some features may be unavailable.
); }; From 26917bf57e71b97562375b4a634bade7e33af672 Mon Sep 17 00:00:00 2001 From: Khoroshevskyi Date: Wed, 21 Jan 2026 15:10:53 -0500 Subject: [PATCH 3/3] Updated versions of bedboss --- bedhost/_version.py | 2 +- requirements/requirements-all.txt | 3 ++- ui/src/components/common/connection-banner.tsx | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bedhost/_version.py b/bedhost/_version.py index 76da4a98..8e1395bd 100644 --- a/bedhost/_version.py +++ b/bedhost/_version.py @@ -1 +1 @@ -__version__ = "0.12.2" +__version__ = "0.12.3" diff --git a/requirements/requirements-all.txt b/requirements/requirements-all.txt index 7fe617d4..b4602c17 100644 --- a/requirements/requirements-all.txt +++ b/requirements/requirements-all.txt @@ -12,4 +12,5 @@ psycopg[binary,pool] python-multipart>=0.0.9 APScheduler>=3.11.0 cachetools>=4.2.4 -bedboss>=0.8.5 +bedboss>=0.8.6 +#bedboss @ git+https://github.com/databio/bedboss.git@dev#egg=bedboss diff --git a/ui/src/components/common/connection-banner.tsx b/ui/src/components/common/connection-banner.tsx index fc091054..2665a84f 100644 --- a/ui/src/components/common/connection-banner.tsx +++ b/ui/src/components/common/connection-banner.tsx @@ -12,7 +12,7 @@ export const ConnectionBanner = () => { return (
- Sorry, BEDbase is currently experiencing connection issues. Some features may be unavailable. + 🛠️ Sorry, the BEDbase team is performing maintenance. Some features may be unavailable. 🛠️
); };