Skip to content

Commit 48965a0

Browse files
frano-mFran McDade
and
Fran McDade
authored
feat: add version info to footer for AnVIL Explorer (#4259) (#4279)
* feat: add version info to footer (#4259) * chore: updated findable-ui to v15.0.1 (#4259) --------- Co-authored-by: Fran McDade <[email protected]>
1 parent 07ba9a8 commit 48965a0

File tree

7 files changed

+16
-20
lines changed

7 files changed

+16
-20
lines changed

app/components/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export {
6262
} from "@databiosphere/findable-ui/lib/components/Layout/components/BackPage/backPageView.styles";
6363
export { BackPageHero } from "@databiosphere/findable-ui/lib/components/Layout/components/BackPage/components/BackPageHero/backPageHero";
6464
export { SubTitle } from "@databiosphere/findable-ui/lib/components/Layout/components/BackPage/components/BackPageHero/components/SubTitle/subTitle";
65-
export { VersionInfo } from "@databiosphere/findable-ui/lib/components/Layout/components/Footer/components/VersionInfo/versionInfo";
6665
export { Logo } from "@databiosphere/findable-ui/lib/components/Layout/components/Header/components/Content/components/Logo/logo";
6766
export { Link } from "@databiosphere/findable-ui/lib/components/Links/components/Link/link";
6867
export { Links } from "@databiosphere/findable-ui/lib/components/Links/links";

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"check-system-status:anvil-cmg": "esrun e2e/anvil/anvil-check-system-status.ts"
3636
},
3737
"dependencies": {
38-
"@databiosphere/findable-ui": "15.0.0",
38+
"@databiosphere/findable-ui": "15.0.1",
3939
"@emotion/react": "^11.13.3",
4040
"@emotion/styled": "^11.13.0",
4141
"@mdx-js/loader": "^3.0.1",

site-config/anvil-catalog/dev/config.ts

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { VersionInfo } from "@databiosphere/findable-ui/lib/components/Layout/components/Footer/components/VersionInfo/types";
21
import * as C from "../../../app/components/index";
32
import { socialMedia } from "../../anvil/dev/socialMedia";
43
import { SiteConfig } from "../../common/entities";
@@ -17,25 +16,17 @@ import { buildNavigation } from "./layout/header/navigation/navigation";
1716
// Template constants
1817
const APP_TITLE = "AnVIL Dataset Catalog";
1918
const BROWSER_URL = "https://anvilproject.dev.clevercanary.com";
20-
const BUILD_DATE = process.env.NEXT_PUBLIC_BUILD_DATE;
2119
const EXPLORER_URL = "https://explore.anvilproject.dev.clevercanary.com";
22-
const GIT_HASH = process.env.NEXT_PUBLIC_GIT_HASH;
2320
const GIT_HUB_REPO_URL = "https://github.com/DataBiosphere/data-browser";
2421
const HOME_PAGE_PATH = ROUTES.CONSORTIA;
2522
const PORTAL_URL = "https://anvilproject.dev.clevercanary.com";
2623
const SLOGAN = "NHGRI Analysis Visualization and Informatics Lab-space";
27-
const VERSION = process.env.NEXT_PUBLIC_VERSION;
2824

2925
export function makeConfig(
3026
browserUrl: string,
3127
portalUrl: string,
3228
explorerUrl: string,
33-
gitHubUrl: string = GIT_HUB_REPO_URL,
34-
versionInfo: VersionInfo = {
35-
buildDate: BUILD_DATE,
36-
gitHash: GIT_HASH,
37-
version: VERSION,
38-
}
29+
gitHubUrl: string = GIT_HUB_REPO_URL
3930
): SiteConfig {
4031
return {
4132
analytics: {
@@ -103,7 +94,7 @@ export function makeConfig(
10394
Branding: C.ANVILBranding({ portalURL: undefined }),
10495
navLinks: buildFooterNavigation(portalUrl),
10596
socials: socialMedia.socials,
106-
versionInfo: C.VersionInfo({ versionInfo }),
97+
versionInfo: true,
10798
},
10899
header: {
109100
authenticationEnabled: false,

site-config/anvil-cmg/dev/config.ts

+4
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ import { floating } from "./layout/floating";
2323
const APP_TITLE = "AnVIL Data Explorer";
2424
const DATA_URL = "https://service.anvil.gi.ucsc.edu";
2525
const BROWSER_URL = "https://explore.anvil.gi.ucsc.edu";
26+
const GIT_HUB_REPO_URL = "https://github.com/DataBiosphere/data-browser";
2627
const PORTAL_URL = "https://anvilproject.dev.clevercanary.com";
2728

2829
export function makeConfig(
2930
browserUrl: string,
3031
portalUrl: string,
3132
dataUrl: string,
33+
gitHubUrl: string = GIT_HUB_REPO_URL,
3234
catalog: string = CATALOG_DEFAULT
3335
): SiteConfig {
3436
return {
@@ -148,6 +150,7 @@ export function makeConfig(
148150
explorerTitle: "Explore Data",
149151
export: exportConfig,
150152
exportToTerraUrl: "https://bvdp-saturn-dev.appspot.com/",
153+
gitHubUrl,
151154
layout: {
152155
floating,
153156
footer: {
@@ -162,6 +165,7 @@ export function makeConfig(
162165
url: `${browserUrl}/privacy`,
163166
},
164167
],
168+
versionInfo: true,
165169
},
166170
header: {
167171
announcements,

site-config/anvil-cmg/prod/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const config: SiteConfig = {
99
"https://explore.anvilproject.org",
1010
"https://anvilproject.org",
1111
"https://service.explore.anvilproject.org",
12+
undefined,
1213
"anvil8"
1314
),
1415
exportToTerraUrl: "https://anvil.terra.bio/",

site-config/anvil-cmg/tempdev/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const config: SiteConfig = {
77
"https://explore.temp.gi.ucsc.edu",
88
"https://anvilproject.org",
99
"https://service.temp.gi.ucsc.edu",
10+
undefined,
1011
"anvil"
1112
),
1213
exportToTerraUrl: "https://bvdp-saturn-dev.appspot.com/",

0 commit comments

Comments
 (0)