@openneuro/app 4.2.4 → 4.3.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/jestsetup.ts +0 -5
- package/package.json +7 -12
- package/src/scripts/common/forms/__tests__/__snapshots__/warn-button.spec.jsx.snap +26 -26
- package/src/scripts/common/forms/__tests__/warn-button.spec.jsx +7 -5
- package/src/scripts/datalad/dataset/dataset-query-fragments.js +6 -0
- package/src/scripts/datalad/subscriptions/__tests__/__snapshots__/files-subscription.spec.jsx.snap +1 -159
- package/src/scripts/datalad/subscriptions/__tests__/files-subscription.spec.jsx +6 -3
- package/src/scripts/errors/errorRoute.jsx +4 -23
- package/src/scripts/faq/__tests__/__snapshots__/faq.spec.jsx.snap +183 -154
- package/src/scripts/faq/__tests__/faq.spec.jsx +3 -3
- package/src/scripts/refactor_2021/admin/admin.jsx +1 -7
- package/src/scripts/refactor_2021/dataset/comments/__tests__/__snapshots__/comments.spec.jsx.snap +12 -110
- package/src/scripts/refactor_2021/dataset/comments/__tests__/comments.spec.jsx +7 -5
- package/src/scripts/refactor_2021/dataset/dataset-query.jsx +2 -4
- package/src/scripts/refactor_2021/dataset/dataset-routes.jsx +6 -11
- package/src/scripts/refactor_2021/dataset/download/__tests__/__snapshots__/download-command-line.spec.jsx.snap +8 -9
- package/src/scripts/refactor_2021/dataset/download/__tests__/__snapshots__/download-link.spec.jsx.snap +46 -1255
- package/src/scripts/refactor_2021/dataset/download/__tests__/__snapshots__/shell-example.spec.jsx.snap +3 -4
- package/src/scripts/refactor_2021/dataset/download/__tests__/download-command-line.spec.jsx +10 -11
- package/src/scripts/refactor_2021/dataset/download/__tests__/download-link.spec.jsx +3 -3
- package/src/scripts/refactor_2021/dataset/download/__tests__/shell-example.spec.jsx +3 -3
- package/src/scripts/refactor_2021/dataset/download/download-command-line.jsx +1 -1
- package/src/scripts/refactor_2021/dataset/draft-container.tsx +6 -23
- package/src/scripts/refactor_2021/dataset/draft-snapshot-routes.tsx +1 -6
- package/src/scripts/refactor_2021/dataset/files/__tests__/__snapshots__/file-tree.spec.jsx.snap +24 -49
- package/src/scripts/refactor_2021/dataset/files/__tests__/__snapshots__/file.spec.jsx.snap +74 -54
- package/src/scripts/refactor_2021/dataset/files/__tests__/file-tree-unloaded-directory.spec.jsx +4 -3
- package/src/scripts/refactor_2021/dataset/files/__tests__/file-tree.spec.jsx +23 -19
- package/src/scripts/refactor_2021/dataset/files/__tests__/file-viewer-type.spec.jsx +5 -3
- package/src/scripts/refactor_2021/dataset/files/__tests__/file.spec.jsx +21 -21
- package/src/scripts/refactor_2021/dataset/files/file.jsx +3 -2
- package/src/scripts/refactor_2021/dataset/files/viewers/__tests__/__snapshots__/file-viewer-json.spec.jsx.snap +85 -60
- package/src/scripts/refactor_2021/dataset/files/viewers/__tests__/file-viewer-json.spec.jsx +5 -5
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/__snapshots__/cancel-button.spec.tsx.snap +14 -6
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/__snapshots__/edit-button.spec.tsx.snap +14 -6
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/__snapshots__/save-button.spec.tsx.snap +14 -6
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/__snapshots__/select-input.spec.tsx.snap +178 -105
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/cancel-button.spec.tsx +3 -3
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/dataset-alert-draft.spec.tsx +72 -0
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/edit-button.spec.tsx +3 -3
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/edit-list.spec.jsx +0 -1
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/save-button.spec.tsx +3 -3
- package/src/scripts/refactor_2021/dataset/fragments/__tests__/select-input.spec.tsx +9 -9
- package/src/scripts/refactor_2021/dataset/fragments/dataset-alert-draft.tsx +79 -0
- package/src/scripts/refactor_2021/dataset/fragments/dataset-alert-version.tsx +24 -0
- package/src/scripts/refactor_2021/dataset/fragments/select-input.tsx +1 -1
- package/src/scripts/refactor_2021/dataset/mutations/__tests__/__snapshots__/deprecate-snapshot.spec.tsx.snap +14 -0
- package/src/scripts/refactor_2021/dataset/mutations/__tests__/__snapshots__/deprecate-version.spec.tsx.snap +14 -0
- package/src/scripts/refactor_2021/dataset/mutations/__tests__/__snapshots__/description.spec.jsx.snap +3 -277
- package/src/scripts/refactor_2021/dataset/mutations/__tests__/deprecate-snapshot.spec.tsx +71 -0
- package/src/scripts/refactor_2021/dataset/mutations/__tests__/deprecate-version.spec.tsx +71 -0
- package/src/scripts/refactor_2021/dataset/mutations/__tests__/description.spec.jsx +22 -9
- package/src/scripts/refactor_2021/dataset/mutations/deprecate-version.tsx +46 -0
- package/src/scripts/refactor_2021/dataset/mutations/description.jsx +1 -1
- package/src/scripts/refactor_2021/dataset/mutations/readme.jsx +1 -1
- package/src/scripts/refactor_2021/dataset/mutations/submit-metadata.jsx +1 -1
- package/src/scripts/refactor_2021/dataset/mutations/undo-deprecate-version.tsx +43 -0
- package/src/scripts/refactor_2021/dataset/mutations/update-file.jsx +15 -19
- package/src/scripts/refactor_2021/dataset/routes/__tests__/__snapshots__/publish.spec.jsx.snap +3 -0
- package/src/scripts/refactor_2021/dataset/routes/__tests__/publish.spec.jsx +13 -0
- package/src/scripts/refactor_2021/dataset/routes/add-metadata.jsx +0 -1
- package/src/scripts/refactor_2021/dataset/routes/deprecate-snapshot-page.tsx +46 -0
- package/src/scripts/refactor_2021/dataset/snapshot-container.tsx +19 -23
- package/src/scripts/refactor_2021/routes.tsx +9 -9
- package/src/scripts/refactor_2021/uploader/uploader-setup-routes.jsx +4 -24
- package/src/scripts/refactor_2021/uploader/uploader-status-routes.jsx +1 -6
- package/src/scripts/common/forms/__tests__/__snapshots__/input.spec.jsx.snap +0 -13
- package/src/scripts/common/forms/__tests__/input.spec.jsx +0 -25
- package/src/scripts/common/forms/input.jsx +0 -98
- package/src/scripts/datalad/routes/__tests__/__snapshots__/publish.spec.jsx.snap +0 -14
- package/src/scripts/datalad/routes/__tests__/publish.spec.jsx +0 -10
- package/src/scripts/datalad/routes/mobile-class.tsx +0 -16
- package/src/scripts/datalad/routes/publish.jsx +0 -50
- package/src/scripts/refactor_2021/dataset/dataset-query-fragments.js +0 -220
- package/src/scripts/refactor_2021/dataset/queries/dataset-query-fragments.js +0 -220
|
@@ -12,6 +12,7 @@ import Share from './routes/manage-permissions.jsx'
|
|
|
12
12
|
import Snapshot from './routes/snapshot.jsx'
|
|
13
13
|
import AddMetadata from './routes/add-metadata.jsx'
|
|
14
14
|
import DeletePage from './routes/delete-page'
|
|
15
|
+
import { DeprecateSnapshotPage } from './routes/deprecate-snapshot-page'
|
|
15
16
|
import { FileDisplay } from './files'
|
|
16
17
|
|
|
17
18
|
//TODO imports
|
|
@@ -28,13 +29,11 @@ const DatasetRoutes = ({ dataset, error }) => {
|
|
|
28
29
|
return (
|
|
29
30
|
<Switch>
|
|
30
31
|
<Route
|
|
31
|
-
name="dataset"
|
|
32
32
|
exact
|
|
33
33
|
path="/datasets/:datasetId"
|
|
34
34
|
render={() => <DraftContainer dataset={dataset} />}
|
|
35
35
|
/>
|
|
36
36
|
<Route
|
|
37
|
-
name="download"
|
|
38
37
|
exact
|
|
39
38
|
path="/datasets/:datasetId/download"
|
|
40
39
|
component={() => (
|
|
@@ -45,19 +44,16 @@ const DatasetRoutes = ({ dataset, error }) => {
|
|
|
45
44
|
)}
|
|
46
45
|
/>
|
|
47
46
|
<Route
|
|
48
|
-
name="admin"
|
|
49
47
|
exact
|
|
50
48
|
path="/datasets/:datasetId/admin-datalad"
|
|
51
49
|
component={() => <AdminDataset dataset={dataset} />}
|
|
52
50
|
/>
|
|
53
51
|
<Route
|
|
54
|
-
name="admin"
|
|
55
52
|
exact
|
|
56
53
|
path="/datasets/:datasetId/admin-exports"
|
|
57
54
|
component={() => <AdminExports dataset={dataset} />}
|
|
58
55
|
/>
|
|
59
56
|
<Route
|
|
60
|
-
name="publish"
|
|
61
57
|
exact
|
|
62
58
|
path="/datasets/:datasetId/publish"
|
|
63
59
|
component={() => (
|
|
@@ -65,7 +61,6 @@ const DatasetRoutes = ({ dataset, error }) => {
|
|
|
65
61
|
)}
|
|
66
62
|
/>
|
|
67
63
|
<Route
|
|
68
|
-
name="snapshot-create"
|
|
69
64
|
exact
|
|
70
65
|
path="/datasets/:datasetId/snapshot"
|
|
71
66
|
component={() => (
|
|
@@ -78,7 +73,6 @@ const DatasetRoutes = ({ dataset, error }) => {
|
|
|
78
73
|
)}
|
|
79
74
|
/>
|
|
80
75
|
<Route
|
|
81
|
-
name="share"
|
|
82
76
|
exact
|
|
83
77
|
path="/datasets/:datasetId/share"
|
|
84
78
|
component={() => (
|
|
@@ -90,7 +84,6 @@ const DatasetRoutes = ({ dataset, error }) => {
|
|
|
90
84
|
)}
|
|
91
85
|
/>
|
|
92
86
|
<Route
|
|
93
|
-
name="fileEdit"
|
|
94
87
|
exact
|
|
95
88
|
path="/datasets/:datasetId/file-edit"
|
|
96
89
|
component={stubComponent}
|
|
@@ -118,7 +111,6 @@ const DatasetRoutes = ({ dataset, error }) => {
|
|
|
118
111
|
}}
|
|
119
112
|
/>
|
|
120
113
|
<Route
|
|
121
|
-
name="snapshot-download"
|
|
122
114
|
exact
|
|
123
115
|
path="/datasets/:datasetId/versions/:snapshotId/download"
|
|
124
116
|
component={() => (
|
|
@@ -128,6 +120,11 @@ const DatasetRoutes = ({ dataset, error }) => {
|
|
|
128
120
|
/>
|
|
129
121
|
)}
|
|
130
122
|
/>
|
|
123
|
+
<Route
|
|
124
|
+
exact
|
|
125
|
+
path="/datasets/:datasetId/versions/:snapshotTag/deprecate"
|
|
126
|
+
component={() => <DeprecateSnapshotPage />}
|
|
127
|
+
/>
|
|
131
128
|
<Route
|
|
132
129
|
path="/datasets/:datasetId/versions/:snapshotTag/file-display/:filePath"
|
|
133
130
|
render={({
|
|
@@ -145,13 +142,11 @@ const DatasetRoutes = ({ dataset, error }) => {
|
|
|
145
142
|
}}
|
|
146
143
|
/>
|
|
147
144
|
<Route
|
|
148
|
-
name="metadata"
|
|
149
145
|
exact
|
|
150
146
|
path="/datasets/:datasetId/metadata"
|
|
151
147
|
component={() => <AddMetadata dataset={dataset} />}
|
|
152
148
|
/>
|
|
153
149
|
<Route
|
|
154
|
-
name="delete"
|
|
155
150
|
exact
|
|
156
151
|
path="/datasets/:datasetId/delete"
|
|
157
152
|
component={() => <DeletePage dataset={dataset} />}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`dataset/download DownloadSampleCommand component renders successfully 1`] = `
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</Styled(pre)>
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<pre
|
|
6
|
+
class="css-xak41w"
|
|
7
|
+
role="figure"
|
|
8
|
+
>
|
|
9
|
+
openneuro download --draft ds000001 ds000001-download/
|
|
10
|
+
</pre>
|
|
11
|
+
</DocumentFragment>
|
|
13
12
|
`;
|