Skip to content

Commit a324e70

Browse files
authored
Merge pull request #186 from MetaCell/feature/185
Feature/185
2 parents b08a72b + 2128f1a commit a324e70

7 files changed

Lines changed: 33 additions & 807 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"axios": "^0.21.1",
2525
"fs": "^0.0.1-security",
2626
"gh-pages": "^3.2.3",
27-
"jest": "27.5.1",
27+
"jest": "26.6.0",
2828
"jest-image-snapshot": "4.5.1",
2929
"jest-puppeteer": "6.1.0",
3030
"material-ui-dropzone": "^3.5.0",

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"
3939
rel="stylesheet"
4040
/>
41-
<title>SDS Viewer</title>
41+
<title>SPARC Dataset (SDS) Viewer</title>
4242
</head>
4343
<body>
4444
<noscript>You need to enable JavaScript to run this app.</noscript>

public/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"short_name": "SDS Viewer",
3-
"name": "SDS Viewer",
2+
"short_name": "SPARC Dataset (SDS) Viewer",
3+
"name": "SPARC Dataset (SDS) Viewer",
44
"icons": [
55
{
66
"src": "favicon.ico",

src/components/Sidebar/Footer.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Plus from '../../images/plus.svg';
22
import { ADD_DATASET } from '../../constants';
3-
import { Box, Button, Typography } from '@material-ui/core';
3+
import { Box, Button, Typography, Link } from '@material-ui/core';
44
import config from "./../../config/app.json";
55

66
const SidebarFooter = (props) => {
@@ -27,8 +27,11 @@ const SidebarFooter = (props) => {
2727
{config.text.datasetsButtonText}
2828
</Button>
2929
</Box>
30-
<Box display="flex" justifyContent="space-between">
31-
<Typography align="center" className='no-instance' variant='h6'><a style={{"color" : "white" }} align="center" href={config.docs_url} target="_blank">User manual</a></Typography>
30+
<Box display="flex" justifyContent="center">
31+
<Typography variant='body1'><Link href={config.docs_url}>User manual</Link></Typography>
32+
</Box>
33+
<Box display="flex" justifyContent="center">
34+
<Typography variant='caption'>Powered by MetaCell</Typography>
3235
</Box>
3336
</Box>
3437
);

src/utils/Splinter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class Splinter {
220220
if ( !existingLing ) {
221221
const a = this.nodes.get( link.source );
222222
const b = this.nodes.get( link.target );
223-
if ( a && b && ( a?.type !== rdfTypes.Award.key && b?.type !== rdfTypes.Award.key )) {
223+
if ( a && b && ( a?.type !== rdfTypes.Award.key && b?.type !== rdfTypes.Award.key ) && !((a?.type === rdfTypes.Collection.key && a.children_counter < 1 ) || ( b?.type === rdfTypes.Collection.key && b.children_counter < 1))) {
224224
!a.neighbors && (a.neighbors = []);
225225
!b.neighbors && (b.neighbors = []);
226226
if ( !a.neighbors.find( n => n.id === b.id )){

src/utils/nodesFactory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function createImage(node) {
77
img.src = "./images/graph/files/" + extension + ".svg"
88
} else {
99
if ( node.type !== "Group" ) {
10-
img.src = (rdfTypes[String(node.type)]?.image !== "") ? rdfTypes[String(node.type)].image : rdfTypes.Unknown.image
10+
img.src = (rdfTypes[String(node.type)]?.image !== "") ? rdfTypes[String(node.type)]?.image : rdfTypes.Unknown?.image
1111
}
1212
}
1313
return img;

0 commit comments

Comments
 (0)