diff --git a/client/__tests__/e2e/__snapshots__/e2e.test.js.snap b/client/__tests__/e2e/__snapshots__/e2e.test.js.snap index e7207fb7..d33b3262 100644 --- a/client/__tests__/e2e/__snapshots__/e2e.test.js.snap +++ b/client/__tests__/e2e/__snapshots__/e2e.test.js.snap @@ -1,5 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`did launch page launched 1`] = `"pbmc3kc3k"`; +exports[`did launch page launched 1`] = `"pbmc3kc3k"`; -exports[`metadata loads categories and values from dataset appear 1`] = `"
louvainvain
tint
"`; +exports[`metadata loads categories and values from dataset appear 1`] = `"
louvainvain
tint
"`; diff --git a/client/__tests__/e2e/__snapshots__/e2eAnnotations.test.js.snap b/client/__tests__/e2e/__snapshots__/e2eAnnotations.test.js.snap index 67b743ce..01ed89a8 100644 --- a/client/__tests__/e2e/__snapshots__/e2eAnnotations.test.js.snap +++ b/client/__tests__/e2e/__snapshots__/e2eAnnotations.test.js.snap @@ -2,22 +2,22 @@ exports[`annotations stacked bar graph renders 1`] = ` Array [ - "
TEST-LABELLABEL
0
", - "
unassignedigned
2133
", + "
TEST-LABELLABEL
0
", + "
unassignedigned
2133
", ] `; exports[`annotations stacked bar graph renders 2`] = ` Array [ - "
TEST-LABELLABEL
0
", - "
unassignedigned
2638
", + "
TEST-LABELLABEL
0
", + "
unassignedigned
2638
", ] `; -exports[`annotations truncate midpoint whitespace 1`] = `"123 456 456"`; +exports[`annotations truncate midpoint whitespace 1`] = `"123 456 456"`; -exports[`annotations truncate midpoint whitespace 2`] = `"123 456 456"`; +exports[`annotations truncate midpoint whitespace 2`] = `"123 456 456"`; -exports[`annotations truncate single character 1`] = `"T"`; +exports[`annotations truncate single character 1`] = `"T"`; -exports[`annotations truncate single character 2`] = `"T"`; +exports[`annotations truncate single character 2`] = `"T"`; diff --git a/client/src/components/infoDrawer/infoFormat.js b/client/src/components/infoDrawer/infoFormat.js index 8361b6de..eacaa406 100644 --- a/client/src/components/infoDrawer/infoFormat.js +++ b/client/src/components/infoDrawer/infoFormat.js @@ -1,6 +1,8 @@ import { H3, H1, UL, Classes } from "@blueprintjs/core"; import React from "react"; +import Truncate from "../util/truncate"; + const renderContributors = (contributors, affiliations, skeleton) => { // eslint-disable-next-line no-constant-condition -- Temp removed contributor section to avoid publishing PII if (!contributors || contributors.length === 0 || true) return null; @@ -79,23 +81,56 @@ const renderOrganism = (organism, skeleton) => { ); }; +const ONTOLOGY_KEY = "ontology_term_id"; +const CAT_WIDTH = "30%"; +const VAL_WIDTH = "35%"; // Render list of metadata attributes found in categorical field -// Ignores categories with empty or null values const renderSingleValueCategories = (singleValueCategories, skeleton) => { if (singleValueCategories.size === 0) return null; return ( <>

Dataset Metadata

); diff --git a/client/src/components/leftSidebar/topLeftLogoAndTitle.js b/client/src/components/leftSidebar/topLeftLogoAndTitle.js index f2346593..6224c1a1 100644 --- a/client/src/components/leftSidebar/topLeftLogoAndTitle.js +++ b/client/src/components/leftSidebar/topLeftLogoAndTitle.js @@ -2,7 +2,6 @@ import React from "react"; import { connect } from "react-redux"; import { Button } from "@blueprintjs/core"; -import { IconNames } from "@blueprintjs/icons"; import * as globals from "../../globals"; import Logo from "../framework/logo"; @@ -60,7 +59,6 @@ class LeftSideBar extends React.Component {