Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v2.3.1 #524

Merged
merged 34 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
c984edf
Increase version numbers
rlreamy Apr 1, 2024
f55f36c
Merge pull request #515 from KPMP/KPMP-5208_VersionNumbers
zwright Apr 3, 2024
9cee038
added target to citation link in explorer page
HaneenT Apr 9, 2024
a927980
KPMP-5226: adjusted search box to match other box
HaneenT Apr 9, 2024
232e407
added rel noreferrer attribute
HaneenT Apr 9, 2024
0d3047a
Merge pull request #517 from KPMP/KPMP-5226_adjust_search_box_height
Dert1129 Apr 10, 2024
d3804c0
Merge pull request #516 from KPMP/KPMP-5247_open_citation_in_new_tab
Dert1129 Apr 10, 2024
d8ac8d8
logging
Dert1129 Apr 15, 2024
9e55eb7
use getDataTypeSummaryInformation for getSummaryData endpoint
Dert1129 Apr 15, 2024
8ec38be
log state
Dert1129 Apr 15, 2024
91eec07
log spatial summary after manipulation and log explorerSummary
Dert1129 Apr 15, 2024
fc0de42
disable filter to see what happens
Dert1129 Apr 15, 2024
6865c34
redirect to spatial viewer when clicking on imc
Dert1129 Apr 16, 2024
ff5a830
remove dev-atlas portion of the link
Dert1129 Apr 16, 2024
ff860bb
remove console logging
Dert1129 Apr 16, 2024
2fd37b1
remove endpoint to see what happens
Dert1129 Apr 16, 2024
0cf99a6
Update SamplesByDataTypeTable.js
rlreamy Apr 16, 2024
480a45d
Merge pull request #518 from KPMP/KPMP-5248_put-imc-in-spatial-viewer…
rlreamy Apr 16, 2024
b9a2ed4
add imc to handleDataTypeClick event
Dert1129 Apr 17, 2024
a9ea05c
increment kpmp-common-components
Dert1129 Apr 17, 2024
12d74aa
Revert "increment kpmp-common-components"
Dert1129 Apr 17, 2024
6f29a74
upgrae kpmp-common-components
Dert1129 Apr 17, 2024
40e09fc
Merge pull request #520 from KPMP/KPMP-5246_increment-kpmp-common-com…
HaneenT Apr 18, 2024
85935ca
Merge pull request #519 from KPMP/KPMP-5251_add-imc-into-explorer-table
HaneenT Apr 18, 2024
7b56b3c
KPMP-5224: adjusted homepage containers to align their edges
HaneenT Apr 24, 2024
273cabe
remove unused import
HaneenT Apr 24, 2024
2748366
Merge pull request #521 from KPMP/KPMP-5224_fix_dashboard_alignment
rlreamy Apr 25, 2024
77775c3
KPMP-5224: adjusted styling based on screen width
HaneenT May 3, 2024
0a68d05
Merge pull request #522 from KPMP/KPMP-5224_align_homepage_box
zwright May 6, 2024
59fe932
KMPP-5253: added cellxgene v1.5 link
HaneenT May 14, 2024
da22dc9
update link
HaneenT May 14, 2024
e658551
Merge pull request #523 from KPMP/KPMP-5253_new_cellxgene_link
rlreamy May 14, 2024
541767a
Update package.json to reflect release version
rlreamy May 17, 2024
cd8c9d3
Merge pull request #525 from KPMP/rlreamy-patch-1
rlreamy May 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pegasus-web",
"version": "1.7.0",
"version": "2.3.1",
"private": true,
"homepage": "/",
"dependencies": {
Expand Down Expand Up @@ -32,7 +32,7 @@
"history": "5.0.0",
"html-react-parser": "1.4.0",
"isomorphic-unfetch": "3.1.0",
"kpmp-common-components": "1.2.13",
"kpmp-common-components": "1.2.14",
"kpmp-common-styles": "1.0.13",
"material-table": "1.69.3",
"npm-run-all": "4.1.5",
Expand Down
3 changes: 3 additions & 0 deletions src/actions/DataType/dataTypeActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ export const setDataTypeAndRedirect = (dataType, props) => {
case "st":
window.open('/spatial-viewer/?size=n_20_n&filters[0][field]=datatype&filters[0][values][0]=Spatial Transcriptomics&filters[0][type]=any', '_self')
break
case "imc":
window.open("/spatial-viewer/?size=n_20_n&filters%5B0%5D%5Bfield%5D=datatype&filters%5B0%5D%5Bvalues%5D%5B0%5D=Imaging%20Mass%20Cytometry&filters%5B0%5D%5Btype%5D=any", "_self")
break;
case "sm":
window.open('https://metaspace2020.eu/datasets?prj=0d9a6710-8389-11eb-96db-73c89a357a89&q=_SM_', '_blank');
break
Expand Down
6 changes: 3 additions & 3 deletions src/components/DataViz/CellXGeneDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ class CellXGeneDropdown extends Component {
<Dropdown isOpen={this.state.dropdownOpen} toggle={this.toggle} direction="down" className="cellxgene-dropdown">
<DropdownToggle caret className='float-end' color='primary'>View DiffEx in CellXGene</DropdownToggle>
<DropdownMenu>
<DropdownItem tag="a" target="_blank" rel="noopener noreferrer" href={this.props.v1_5}>
Version 1.5
</DropdownItem>
<DropdownItem tag="a" target="_blank" rel="noopener noreferrer" href={this.props.v1}>
Version 1.0 (Nature 2023)
</DropdownItem>
<DropdownItem disabled>
Version 1.5 (Coming Soon)
</DropdownItem>
</DropdownMenu>
</Dropdown>
)
Expand Down
6 changes: 4 additions & 2 deletions src/components/DataViz/DataTypeSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,12 @@ class DataTypeSelector extends Component {
: <span className="a-button" onClick={this.toggleDataset}>Hide dataset details <FontAwesomeIcon icon={faChevronUp} /></span>
}
{(this.props.dataType === 'sc' ) &&
<CellXGeneDropdown v1="https://cellxgene.cziscience.com/e/32b9bdce-2481-4c85-ba1b-6ad5fcea844c.cxg/"/>
<CellXGeneDropdown v1="https://cellxgene.cziscience.com/e/32b9bdce-2481-4c85-ba1b-6ad5fcea844c.cxg/"
v1_5="https://cellxgene.cziscience.com/e/dea717d4-7bc0-4e46-950f-fd7e1cc8df7d.cxg/"/>
}
{ (this.props.dataType === 'sn') &&
<CellXGeneDropdown v1="https://cellxgene.cziscience.com/e/07854d9c-5375-4a9b-ac34-fa919d3c3686.cxg/"/>
<CellXGeneDropdown v1="https://cellxgene.cziscience.com/e/07854d9c-5375-4a9b-ac34-fa919d3c3686.cxg/"
v1_5="https://cellxgene.cziscience.com/e/a12ccb9b-4fbe-457d-8590-ac78053259ef.cxg/"/>
}
</div>
}
Expand Down
5 changes: 3 additions & 2 deletions src/components/Explorer/SamplesByDataTypeTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ class SamplesByDataTypeTable extends Component {
'Spatial Metabolomics': 'sm',
'Spatial Lipidomics': 'sl',
'Spatial N-glycomics': 'sng',
'Spatial Transcriptomics': 'st'
'Spatial Transcriptomics': 'st',
"Imaging Mass Cytometry": 'imc',
};
if (dataLinkageMapping[dataType]) {
this.props.setSelectedConcept(dataLinkageMapping[dataType], this.props);
Expand Down Expand Up @@ -158,7 +159,7 @@ class SamplesByDataTypeTable extends Component {
</Row>
<Row>
<Col xs='12'>
<small><span style={{color: 'red'}}>*</span> Additional information available in <a rel='noreferrer' target='_blank' href='https://cellxgene.cziscience.com/collections/bcb61471-2a44-4d00-a0af-ff085512674c'>cellxgene</a></small>
<small><span style={{color: 'red'}}>*</span> Additional information available in <a rel='noreferrer' target='_blank' href='https://cellxgene.cziscience.com/collections/0f528c8a-a25c-4840-8fa3-d156fa11086f?utm_campaign=partner&utm_source=publisher'>cellxgene</a></small>
</Col>
</Row>
</article>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Home/DataSummary.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class DataSummary extends Component {
return (
<Container className="landing mt-3 mb-4 rounded border p-3 shadow-sm">
<Row><h2 className="data-summary">Atlas Data Summary</h2></Row>
<Row><p>IMPORTANT: Please follow this <a href="https://www.kpmp.org/help-docs/study-overview?tabname=citingkpmpdata">citation guideline</a> when presenting or publishing data from the Kidney Tissue Atlas.</p></Row>
<Row><p>IMPORTANT: Please follow this <a href="https://www.kpmp.org/help-docs/study-overview?tabname=citingkpmpdata" target="_blank" rel='noreferrer'>citation guideline</a> when presenting or publishing data from the Kidney Tissue Atlas.</p></Row>

<h3 className="centered kpmp-color-dark"><span><FontAwesomeIcon className='kpmp-color-dark pe-2' icon={faPerson} /></span>PARTICIPANTS</h3>
<ParticipantSummary/>
Expand Down
2 changes: 2 additions & 0 deletions src/components/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class Home extends Component {
<Col md='12' lg='12'>
<TopContent/>
</Col>
</Row>
<Row>
<Col md='12' lg='4'>
<LeftContent />
</Col>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Home/LeftContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import { Container, Row, Button } from 'reactstrap';
import { Container, Button } from 'reactstrap';
import { handleGoogleAnalyticsEvent } from '../../helpers/googleAnalyticsHelper';

class LeftContent extends Component {
Expand All @@ -13,7 +13,7 @@ class LeftContent extends Component {
}
render() {
return (
<Row>
<div id="leftcontent">
<Container className="mt-3 rounded border p-3 shadow-sm">
<h5>Explorer</h5>
<div>
Expand Down Expand Up @@ -60,7 +60,7 @@ class LeftContent extends Component {
<Button className="w-100" color='primary' href='https://www.kpmp.org/collaboration' size='lg' block onClick={() => { this.handleGoogleAnalyticsEvent('Atlas Home', 'Navigation', 'collaborate') }}>Collaborate with us</Button>
</div>
</Container>
</Row>
</div>
);
}
}
Expand Down
6 changes: 4 additions & 2 deletions src/components/Home/SamplesByDataTypeTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ class SamplesByDataTypeTable extends Component {
'Spatial Metabolomics': 'sm',
'Spatial Lipidomics': 'sl',
'Spatial N-glycomics': 'sng',
'Spatial Transcriptomics': 'st'
'Spatial Transcriptomics': 'st',
'Imaging Mass Cytometry': 'imc'
};
if (dataLinkageMapping[dataType]) {
this.props.setDataType(dataLinkageMapping[dataType], this.props);
Expand All @@ -67,6 +68,7 @@ class SamplesByDataTypeTable extends Component {
}

formatDataTypeCell(row) {

let value = row.dataType;
if (value === 'Explorer' || value === 'Spatial Viewer') {
return (
Expand Down Expand Up @@ -184,4 +186,4 @@ class SamplesByDataTypeTable extends Component {
}
}

export default SamplesByDataTypeTable;
export default SamplesByDataTypeTable;
13 changes: 9 additions & 4 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ tr.MuiTableRow-root:nth-child(even) {
}

.expanded-search-container {
height: 94%;
height: 97.5%;
}

.buttonhref {
Expand All @@ -457,9 +457,8 @@ tr.MuiTableRow-root:nth-child(even) {

#homepage {
@media (min-width: 990px) {
.container-expanded {
max-width: 98.75%;
margin-left: 15px;
.container {
max-width: 100%;
}
}
@media (max-width: 635px) {
Expand Down Expand Up @@ -958,4 +957,10 @@ tr.MuiTableRow-root:nth-child(even) {

.cellxgene-dropdown {
margin-top: -21px;
}

#leftcontent {
@media (min-width: 992px) {
margin-right: 15px;
}
}
Loading