Skip to content

Commit

Permalink
[DUOS-2672] Restore a subset of dataset statistics (#2343)
Browse files Browse the repository at this point in the history
* feat: restore link to dataset statistics

* fix: remove research finding summary and status
  • Loading branch information
fboulnois authored Oct 4, 2023
1 parent 5142da3 commit e8fc999
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 35 deletions.
6 changes: 5 additions & 1 deletion src/pages/DatasetCatalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,11 @@ export default function DatasetCatalog(props) {
id: trIndex + '_datasetName', name: 'datasetName',
className: `${style['cell-size']} ` + (!isVisible(dataset) ? style['dataset-disabled'] : ''),
style: tableBody
}, dataset.name),
}, [
a({
href: `/dataset_statistics/${dataset.dataSetId}`,
}, dataset.name)
]),

td({
id: trIndex + '_dac', name: 'dac',
Expand Down
34 changes: 0 additions & 34 deletions src/pages/DatasetStatistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,36 +122,6 @@ export default function DatasetStatistics(props) {
])
])
]),
div({style: Styles.SUB_HEADER}, ['Summary of Research Findings to Date']),
div({style: {display: 'flex'}}, [
div({style: Styles.SQUARE_BOX}, [
div({style: {...Styles.MINOR_HEADER, textAlign: 'center'}}, ['Data Access Requests']),
LINE,
div({style: Styles.JUMBO}, [dars?.length])
]),
div({style: Styles.DESCRIPTION_BOX}, [
div({style: {...Styles.MINOR_HEADER, paddingLeft:'10px'}}, ['DAR Project Titles:']),
LINE,
div({style: {fontSize: Theme.font.size.small, padding: '1rem'}}, [
dars?.map((dar) => a({style: {display: 'block'}, href: `#${dar.darCode}`}, [dar.projectTitle]))
])
]),
div({style: Styles.SQUARE_BOX}, [
div({style: {...Styles.MINOR_HEADER, textAlign: 'center'}}, ['DARs Approved']),
LINE,
div({style: Styles.JUMBO}, [darsApproved?.length])
]),
div({style: Styles.SQUARE_BOX}, [
div({style: {...Styles.MINOR_HEADER, textAlign: 'center'}}, ['DARs Denied']),
LINE,
div({style: Styles.JUMBO}, [darsDenied?.length])
]),
div({style: Styles.SQUARE_BOX}, [
div({style: {...Styles.MINOR_HEADER, textAlign: 'center'}}, ['DARs Open, Canceled, Unreviewed']),
LINE,
div({style: Styles.JUMBO}, [darsOpen?.length + darsCanceled?.length + darsUnreviewed?.length])
]),
]),
div({style: Styles.SUB_HEADER}, ['Data Access Requests - Research Statements']),
dars?.map((dar) =>
div({style: Styles.READ_MORE, id: `${dar.darCode}` }, [
Expand All @@ -173,10 +143,6 @@ export default function DatasetStatistics(props) {
div({style: Styles.SMALL_BOLD}, ['Last Updated: ']),
div({style: Styles.SMALL_BOLD}, [formatDate(dar.updateDate)]),
]),
div({style: {display: 'flex'}}, [
div({style: Styles.SMALL_BOLD}, ['Status: ']),
div({style: Styles.SMALL_BOLD}, [getDisplayStatusForDar(dar.referenceId)]),
])
]),
div({style: {backgroundColor: 'white'}}, [
div({style: Styles.SMALL_BOLD}, ['NonTechnical Summary:']),
Expand Down

0 comments on commit e8fc999

Please sign in to comment.