Skip to content

Commit e32d084

Browse files
frano-mFran McDade
and
Fran McDade
authored
feat: add version info to footer for HCA Data Explorer (#4261) (#4282)
* feat: add version info to footer (#4261) * feat: linting (#4264) --------- Co-authored-by: Fran McDade <[email protected]>
1 parent 48965a0 commit e32d084

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

site-config/hca-dcp/cc-ma-dev/config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ const BROWSER_URL =
1212
"https://ma-pilot.explore.data.humancellatlas.dev.clevercanary.com";
1313
const CATALOG = "dcp3";
1414
const DATA_URL = "https://service.dev.singlecell.gi.ucsc.edu";
15+
const GIT_HUB_REPO_URL = "https://github.com/DataBiosphere/data-browser";
1516
const PORTAL_URL = "https://data.humancellatlas.dev.clevercanary.com";
1617

1718
const config: SiteConfig = {
1819
...makeManagedAccessConfig(
19-
makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL, CATALOG)
20+
makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL, GIT_HUB_REPO_URL, CATALOG)
2021
),
2122
};
2223

site-config/hca-dcp/dev/config.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ import { floating } from "./layout/floating";
2626
const APP_TITLE = "HCA Data Explorer";
2727
const CATALOG = "dcp43";
2828
const BROWSER_URL = "https://explore.data.humancellatlas.dev.clevercanary.com";
29-
export const DATA_URL = "https://service.azul.data.humancellatlas.org";
30-
export const EXPORT_TO_TERRA_URL = "https://app.terra.bio";
29+
const DATA_URL = "https://service.azul.data.humancellatlas.org";
30+
const EXPORT_TO_TERRA_URL = "https://app.terra.bio";
3131
const FONT_FAMILY_DIN = "'din-2014', sans-serif";
32+
const GIT_HUB_REPO_URL = "https://github.com/DataBiosphere/data-browser";
3233
const HOME_PAGE_PATH = "/projects";
3334
const ORG_URL = "https://www.humancellatlas.org";
3435
const PAGINATION_PAGE_SIZE = "25";
@@ -38,6 +39,7 @@ export function makeConfig(
3839
browserUrl: string,
3940
portalUrl: string,
4041
dataUrl: string,
42+
gitHubUrl: string = GIT_HUB_REPO_URL,
4143
catalog: string = CATALOG
4244
): SiteConfig {
4345
return {
@@ -66,6 +68,7 @@ export function makeConfig(
6668
explorerTitle: "Explore Data",
6769
export: exportConfig,
6870
exportToTerraUrl: EXPORT_TO_TERRA_URL,
71+
gitHubUrl,
6972
layout: {
7073
floating,
7174
footer: {
@@ -95,6 +98,7 @@ export function makeConfig(
9598
url: `${portalUrl}/contact`,
9699
},
97100
],
101+
versionInfo: true,
98102
},
99103
header: {
100104
announcements,

site-config/hca-dcp/ma-dev/config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ import { makeConfig } from "../dev/config";
66
const BROWSER_URL = "https://explore.dev.singlecell.gi.ucsc.edu";
77
const CATALOG = "dcp3";
88
export const DATA_URL = "https://service.dev.singlecell.gi.ucsc.edu";
9+
const GIT_HUB_REPO_URL = "https://github.com/DataBiosphere/data-browser";
910
export const PORTAL_URL = "https://dev.singlecell.gi.ucsc.edu";
1011

1112
const config: SiteConfig = {
1213
...makeManagedAccessConfig(
13-
makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL, CATALOG)
14+
makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL, GIT_HUB_REPO_URL, CATALOG)
1415
),
1516
};
1617

site-config/hca-dcp/ma-prod/config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ import { getAuthenticationConfig } from "./authentication/authentication";
77
const BROWSER_URL = "https://explore.data.humancellatlas.org";
88
const CATALOG = "dcp43";
99
const DATA_URL = "https://service.azul.data.humancellatlas.org";
10+
const GIT_HUB_REPO_URL = "https://github.com/DataBiosphere/data-browser";
1011
const PORTAL_URL = "https://data.humancellatlas.org";
1112

1213
const config: SiteConfig = {
1314
...makeManagedAccessConfig(
14-
makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL, CATALOG)
15+
makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL, GIT_HUB_REPO_URL, CATALOG)
1516
),
1617
};
1718

0 commit comments

Comments
 (0)