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/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..2665a84f --- /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, the BEDbase team is performing maintenance. 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) => {
+