Skip to content

Commit

Permalink
feat: add version info to footer for HCA Data Explorer (#4261) (#4282)
Browse files Browse the repository at this point in the history
* feat: add version info to footer (#4261)

* feat: linting (#4264)

---------

Co-authored-by: Fran McDade <[email protected]>
  • Loading branch information
frano-m and Fran McDade authored Nov 20, 2024
1 parent 48965a0 commit e32d084
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion site-config/hca-dcp/cc-ma-dev/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ const BROWSER_URL =
"https://ma-pilot.explore.data.humancellatlas.dev.clevercanary.com";
const CATALOG = "dcp3";
const DATA_URL = "https://service.dev.singlecell.gi.ucsc.edu";
const GIT_HUB_REPO_URL = "https://github.com/DataBiosphere/data-browser";
const PORTAL_URL = "https://data.humancellatlas.dev.clevercanary.com";

const config: SiteConfig = {
...makeManagedAccessConfig(
makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL, CATALOG)
makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL, GIT_HUB_REPO_URL, CATALOG)
),
};

Expand Down
8 changes: 6 additions & 2 deletions site-config/hca-dcp/dev/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ import { floating } from "./layout/floating";
const APP_TITLE = "HCA Data Explorer";
const CATALOG = "dcp43";
const BROWSER_URL = "https://explore.data.humancellatlas.dev.clevercanary.com";
export const DATA_URL = "https://service.azul.data.humancellatlas.org";
export const EXPORT_TO_TERRA_URL = "https://app.terra.bio";
const DATA_URL = "https://service.azul.data.humancellatlas.org";
const EXPORT_TO_TERRA_URL = "https://app.terra.bio";
const FONT_FAMILY_DIN = "'din-2014', sans-serif";
const GIT_HUB_REPO_URL = "https://github.com/DataBiosphere/data-browser";
const HOME_PAGE_PATH = "/projects";
const ORG_URL = "https://www.humancellatlas.org";
const PAGINATION_PAGE_SIZE = "25";
Expand All @@ -38,6 +39,7 @@ export function makeConfig(
browserUrl: string,
portalUrl: string,
dataUrl: string,
gitHubUrl: string = GIT_HUB_REPO_URL,
catalog: string = CATALOG
): SiteConfig {
return {
Expand Down Expand Up @@ -66,6 +68,7 @@ export function makeConfig(
explorerTitle: "Explore Data",
export: exportConfig,
exportToTerraUrl: EXPORT_TO_TERRA_URL,
gitHubUrl,
layout: {
floating,
footer: {
Expand Down Expand Up @@ -95,6 +98,7 @@ export function makeConfig(
url: `${portalUrl}/contact`,
},
],
versionInfo: true,
},
header: {
announcements,
Expand Down
3 changes: 2 additions & 1 deletion site-config/hca-dcp/ma-dev/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import { makeConfig } from "../dev/config";
const BROWSER_URL = "https://explore.dev.singlecell.gi.ucsc.edu";
const CATALOG = "dcp3";
export const DATA_URL = "https://service.dev.singlecell.gi.ucsc.edu";
const GIT_HUB_REPO_URL = "https://github.com/DataBiosphere/data-browser";
export const PORTAL_URL = "https://dev.singlecell.gi.ucsc.edu";

const config: SiteConfig = {
...makeManagedAccessConfig(
makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL, CATALOG)
makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL, GIT_HUB_REPO_URL, CATALOG)
),
};

Expand Down
3 changes: 2 additions & 1 deletion site-config/hca-dcp/ma-prod/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import { getAuthenticationConfig } from "./authentication/authentication";
const BROWSER_URL = "https://explore.data.humancellatlas.org";
const CATALOG = "dcp43";
const DATA_URL = "https://service.azul.data.humancellatlas.org";
const GIT_HUB_REPO_URL = "https://github.com/DataBiosphere/data-browser";
const PORTAL_URL = "https://data.humancellatlas.org";

const config: SiteConfig = {
...makeManagedAccessConfig(
makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL, CATALOG)
makeConfig(BROWSER_URL, PORTAL_URL, DATA_URL, GIT_HUB_REPO_URL, CATALOG)
),
};

Expand Down

0 comments on commit e32d084

Please sign in to comment.