From 3fbb8817fc9ceece765e9b445294f52f3fc9e298 Mon Sep 17 00:00:00 2001 From: Fran McDade Date: Wed, 20 Nov 2024 18:29:03 +1000 Subject: [PATCH] feat: add version info to footer (#166) (#185) Co-authored-by: Fran McDade --- package-lock.json | 8 ++++---- package.json | 2 +- site-config/brc-analytics/local/config.ts | 9 ++++++--- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 08c4b53..c62da75 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "brc-analytics", "version": "0.0.0", "dependencies": { - "@databiosphere/findable-ui": "15.0.0", + "@databiosphere/findable-ui": "15.0.2", "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", "@mdx-js/loader": "^3.0.1", @@ -1383,9 +1383,9 @@ } }, "node_modules/@databiosphere/findable-ui": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@databiosphere/findable-ui/-/findable-ui-15.0.0.tgz", - "integrity": "sha512-5fnEu/0kTz5KkUeRTVWmpLw8PPZVaTSl139XkoR/7eI2dic9CDp/BJGiNC4WxpTZaEXBvASwmFR5lZfpWdpLPg==", + "version": "15.0.2", + "resolved": "https://registry.npmjs.org/@databiosphere/findable-ui/-/findable-ui-15.0.2.tgz", + "integrity": "sha512-q6ANGEVeYmF8XjCAAiXadIva6tYZ4sO29grgQYAdcewgw1B7BxbiP7OXlQ9jAhSVGILZelWH8jqgFIR09lCrBw==", "engines": { "node": "20.10.0" }, diff --git a/package.json b/package.json index 5ab21cc..28ee298 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "build-brc-db": "esrun files/build-catalog.ts" }, "dependencies": { - "@databiosphere/findable-ui": "15.0.0", + "@databiosphere/findable-ui": "15.0.2", "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", "@mdx-js/loader": "^3.0.1", diff --git a/site-config/brc-analytics/local/config.ts b/site-config/brc-analytics/local/config.ts index a27e969..aac56f2 100644 --- a/site-config/brc-analytics/local/config.ts +++ b/site-config/brc-analytics/local/config.ts @@ -9,11 +9,12 @@ import { genomeEntityConfig } from "./index/genomeEntityConfig"; const LOCALHOST = "http://localhost:3000"; const APP_TITLE = "BRC Analytics"; const BROWSER_URL = LOCALHOST; +const GIT_HUB_REPO_URL = "https://github.com/galaxyproject/brc-analytics"; /** * Make site config object. * @param browserUrl - Browser URL. - * + * @param gitHubUrl - GitHub URL. * @remarks * The `genomeEntityConfig` is typecast to `EntityConfig` * because the `SiteConfig` interface from the `@databiosphere/findable-ui` package expects @@ -25,7 +26,7 @@ const BROWSER_URL = LOCALHOST; * * @returns site config. */ -export function makeConfig(browserUrl: string): SiteConfig { +export function makeConfig(browserUrl: string, gitHubUrl: string): SiteConfig { return { appTitle: APP_TITLE, browserURL: browserUrl, @@ -34,6 +35,7 @@ export function makeConfig(browserUrl: string): SiteConfig { }, entities: [genomeEntityConfig as EntityConfig], explorerTitle: APP_TITLE, + gitHubUrl, layout: { floating, footer: { @@ -48,6 +50,7 @@ export function makeConfig(browserUrl: string): SiteConfig { url: "https://pathogendatanetwork.org/", }, ], + versionInfo: true, }, header: { logo: C.Logo({ @@ -72,6 +75,6 @@ export function makeConfig(browserUrl: string): SiteConfig { }; } -const config: SiteConfig = makeConfig(BROWSER_URL); +const config: SiteConfig = makeConfig(BROWSER_URL, GIT_HUB_REPO_URL); export default config;