@openneuro/app 4.36.2 → 4.37.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -3
- package/src/scripts/components/accordion/accordion.scss +1 -1
- package/src/scripts/components/activity-slider/ActivitySlider.tsx +4 -22
- package/src/scripts/components/activity-slider/slider.scss +1 -82
- package/src/scripts/components/button/button.scss +1 -1
- package/src/scripts/components/count-toggle/count-toggle.scss +1 -1
- package/src/scripts/components/dropdown/dropdown.scss +1 -1
- package/src/scripts/components/facets/facet.scss +5 -4
- package/src/scripts/components/footer/footer.scss +1 -1
- package/src/scripts/components/front-page/front-page.scss +1 -1
- package/src/scripts/components/header/header.scss +1 -1
- package/src/scripts/components/input/input.scss +1 -1
- package/src/scripts/components/input/term-search.scss +1 -1
- package/src/scripts/components/loading/loading.scss +1 -1
- package/src/scripts/components/modal/modal.scss +1 -1
- package/src/scripts/components/modality-cube/ModalityHexagon.tsx +29 -0
- package/src/scripts/components/modality-cube/modality-cube.scss +1 -1
- package/src/scripts/components/modality-cube/modality-hexagon.scss +93 -0
- package/src/scripts/components/page/page.scss +1 -1
- package/src/scripts/components/progress-bar/progress-bar.scss +1 -1
- package/src/scripts/components/radio/radio.scss +2 -2
- package/src/scripts/components/range/TwoHandleRange.scss +3 -3
- package/src/scripts/components/read-more/read-more.scss +1 -1
- package/src/scripts/components/scss/upload-modal.scss +1 -1
- package/src/scripts/components/tooltip/tooltip.scss +1 -1
- package/src/scripts/dataset/__tests__/__snapshots__/snapshot-container.spec.tsx.snap +132 -128
- package/src/scripts/dataset/__tests__/draft-container.spec.tsx +136 -0
- package/src/scripts/dataset/common/follow-toggles.tsx +1 -1
- package/src/scripts/dataset/components/DatasetHeader.tsx +13 -16
- package/src/scripts/dataset/components/DatasetToolButton.tsx +6 -7
- package/src/scripts/dataset/components/DatasetTools.tsx +6 -2
- package/src/scripts/dataset/draft-container.tsx +30 -24
- package/src/scripts/dataset/files/{file-display.jsx → file-display.tsx} +32 -19
- package/src/scripts/dataset/routes/tab-routes-draft.tsx +6 -1
- package/src/scripts/dataset/routes/tab-routes-snapshot.tsx +5 -1
- package/src/scripts/dataset/snapshot-container.tsx +37 -43
- package/src/scripts/scss/dataset/dataset-page.scss +44 -120
- package/src/scripts/scss/variables.scss +65 -13
- package/src/scripts/{components/search-page → search}/__tests__/NuerobagelSearch.spec.tsx +1 -1
- package/src/scripts/search/components/DatasetsRadioTabs.tsx +103 -0
- package/src/scripts/{components/search-page → search/components}/FilterListItem.tsx +1 -1
- package/src/scripts/{components/search-page → search/components}/FiltersBlock.tsx +5 -8
- package/src/scripts/search/components/MetaListItemList.tsx +31 -0
- package/src/scripts/{components/search-page → search/components}/SearchPage.tsx +15 -8
- package/src/scripts/search/components/SearchResultDetails.tsx +167 -0
- package/src/scripts/{components/search-page → search/components}/SearchResultItem.tsx +57 -173
- package/src/scripts/search/components/SearchResultsList.tsx +45 -0
- package/src/scripts/{components/search-page → search/components}/SearchSort.tsx +2 -2
- package/src/scripts/search/filters-block-container.tsx +1 -1
- package/src/scripts/search/inputs/index.ts +0 -4
- package/src/scripts/search/inputs/sliding-radio-group.tsx +127 -0
- package/src/scripts/search/inputs/sort-by-select.tsx +1 -1
- package/src/scripts/{components/search-page → search/scss}/filters-block.scss +1 -1
- package/src/scripts/{components/search-page → search/scss}/search-page.scss +123 -92
- package/src/scripts/search/scss/search-result-details.scss +70 -0
- package/src/scripts/{components/search-page → search/scss}/search-result.scss +29 -56
- package/src/scripts/{components/search-page → search/scss}/search-sort.scss +1 -1
- package/src/scripts/search/scss/sliding-radio-group.scss +115 -0
- package/src/scripts/search/search-container.tsx +90 -24
- package/src/scripts/search/use-search-results.tsx +3 -0
- package/src/scripts/users/github-auth-button.tsx +1 -1
- package/src/scripts/components/scss/_variables.scss +0 -245
- package/src/scripts/components/search-page/SearchResultsList.tsx +0 -29
- package/src/scripts/dataset/files/index.tsx +0 -6
- package/src/scripts/search/inputs/admin-allDatasets-toggle.tsx +0 -47
- package/src/scripts/search/inputs/show-datasets-radios.tsx +0 -74
- /package/src/scripts/{components/search-page → search/components}/CommunityHeader.tsx +0 -0
- /package/src/scripts/{components/search-page → search/components}/FacetBlockContainerExample.tsx +0 -0
- /package/src/scripts/{components/search-page → search/components}/FilterDateItem.tsx +0 -0
- /package/src/scripts/{components/search-page → search/components}/ModalityHeader.tsx +0 -0
- /package/src/scripts/{components/search-page → search/components}/NeurobagelSearch.tsx +0 -0
- /package/src/scripts/{components/search-page → search/components}/SearchSortContainerExample.tsx +0 -0
- /package/src/scripts/{components/search-page → search/components}/TermListItem.tsx +0 -0
- /package/src/scripts/{components/search-page → search/components}/neurobagel_logo.svg +0 -0
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import React, { useContext } from "react"
|
|
2
|
-
import type { FC } from "react"
|
|
3
|
-
import { SearchParamsCtx } from "../search-params-ctx"
|
|
4
|
-
import { RadioGroup } from "../../components/radio/RadioGroup"
|
|
5
|
-
import { FacetSelect } from "../../components/facets/FacetSelect"
|
|
6
|
-
import { useCookies } from "react-cookie"
|
|
7
|
-
import { getUnexpiredProfile } from "../../authentication/profile"
|
|
8
|
-
import { AccordionTab } from "../../components/accordion/AccordionTab"
|
|
9
|
-
import { AccordionWrap } from "../../components/accordion/AccordionWrap"
|
|
10
|
-
|
|
11
|
-
const ShowDatasetsRadios: FC = () => {
|
|
12
|
-
const [cookies] = useCookies()
|
|
13
|
-
const loggedOut = !getUnexpiredProfile(cookies)
|
|
14
|
-
|
|
15
|
-
const { searchParams, setSearchParams } = useContext(SearchParamsCtx)
|
|
16
|
-
|
|
17
|
-
const {
|
|
18
|
-
datasetType_available,
|
|
19
|
-
datasetType_selected,
|
|
20
|
-
datasetStatus_available,
|
|
21
|
-
datasetStatus_selected,
|
|
22
|
-
} = searchParams
|
|
23
|
-
|
|
24
|
-
const setShowSelected = (datasetType_selected) => {
|
|
25
|
-
setSearchParams((prevState) => ({
|
|
26
|
-
...prevState,
|
|
27
|
-
datasetType_selected,
|
|
28
|
-
datasetStatus_selected: datasetType_selected === "My Datasets"
|
|
29
|
-
? prevState.datasetStatus_selected
|
|
30
|
-
: undefined,
|
|
31
|
-
}))
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const setShowMyUploadsSelected = (datasetStatus_selected) => {
|
|
35
|
-
setSearchParams((prevState) => ({
|
|
36
|
-
...prevState,
|
|
37
|
-
datasetStatus_selected,
|
|
38
|
-
}))
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return loggedOut ? null : (
|
|
42
|
-
<>
|
|
43
|
-
<div
|
|
44
|
-
className={datasetType_selected.replace(/\s/g, "") +
|
|
45
|
-
" btn-group-wrapper facet-radio"}
|
|
46
|
-
>
|
|
47
|
-
<RadioGroup
|
|
48
|
-
radioArr={datasetType_available}
|
|
49
|
-
layout="btn-group"
|
|
50
|
-
name="show-datasets"
|
|
51
|
-
selected={datasetType_selected}
|
|
52
|
-
setSelected={setShowSelected}
|
|
53
|
-
/>
|
|
54
|
-
</div>
|
|
55
|
-
{datasetType_selected === "My Datasets" && (
|
|
56
|
-
<AccordionWrap className="facet-accordion">
|
|
57
|
-
<AccordionTab
|
|
58
|
-
accordionStyle="plain"
|
|
59
|
-
label="My Datasets Status"
|
|
60
|
-
startOpen={true}
|
|
61
|
-
>
|
|
62
|
-
<FacetSelect
|
|
63
|
-
selected={datasetStatus_selected}
|
|
64
|
-
setSelected={setShowMyUploadsSelected}
|
|
65
|
-
items={datasetStatus_available}
|
|
66
|
-
/>
|
|
67
|
-
</AccordionTab>
|
|
68
|
-
</AccordionWrap>
|
|
69
|
-
)}
|
|
70
|
-
</>
|
|
71
|
-
)
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export default ShowDatasetsRadios
|
|
File without changes
|
/package/src/scripts/{components/search-page → search/components}/FacetBlockContainerExample.tsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/scripts/{components/search-page → search/components}/SearchSortContainerExample.tsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|