-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
198 add publicprivate button for user owned studiesdatasetsannotations (
#751) * feat: update react router * feat: added readonly annotations table and project owner * add spaces * [ENH] allow "post" to annotation-analysis endpoint (#742) * allow "post" to annotation-analysis endpoint * fix f string * test more and fix formatting * update openapi to main * [FIX] match input study by either doi and/or pmid (#744) * match input study by either doi and/or pmid * black * fix: e2e tests * fix: update openapi version * fix: sdk update * fix: correct sdk version * fix: openapi version * chore: add tests for public private button * fix: resolve merge conflicts * feat: better loading text support * fix: update codespell * chore: remove only warn for codespell * fix: added back exclude glob * fix: try singlequote * fix: try again --------- Co-authored-by: James Kent <[email protected]>
- Loading branch information
Showing
8 changed files
with
905 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
711 changes: 711 additions & 0 deletions
711
compose/neurosynth-frontend/cypress/fixtures/projects/projectPut.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 38 additions & 14 deletions
52
compose/neurosynth-frontend/src/pages/CurationPage/ProjectIsLoadingText.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,48 @@ | ||
import { Box, Typography } from '@mui/material'; | ||
import { useUpdateProjectIsLoading } from 'pages/Projects/ProjectPage/ProjectStore'; | ||
import { | ||
useProjectMetadataHasUnsavedchanges, | ||
useUpdateProjectIsLoading, | ||
} from 'pages/Projects/ProjectPage/ProjectStore'; | ||
|
||
const ProjectIsLoadingText: React.FC<{ isLoading?: boolean }> = (props) => { | ||
const updateProjectIsLoading = useUpdateProjectIsLoading(); | ||
const projectMetadataHasUnsavedchanges = useProjectMetadataHasUnsavedchanges(); | ||
|
||
const isLoading = updateProjectIsLoading || props.isLoading; | ||
|
||
return ( | ||
<Box sx={{ marginLeft: '2rem' }}> | ||
<Typography | ||
sx={{ | ||
color: 'muted.main', | ||
fontSize: '1.5rem', | ||
display: isLoading ? 'inline' : 'none', | ||
}} | ||
> | ||
updating... | ||
</Typography> | ||
</Box> | ||
); | ||
if (isLoading) { | ||
return ( | ||
<Box sx={{ marginLeft: '2rem' }}> | ||
<Typography | ||
sx={{ | ||
color: 'muted.main', | ||
fontSize: '1.25rem', | ||
display: 'inline', | ||
}} | ||
> | ||
updating... | ||
</Typography> | ||
</Box> | ||
); | ||
} | ||
|
||
if (projectMetadataHasUnsavedchanges) { | ||
return ( | ||
<Box sx={{ marginLeft: '2rem' }}> | ||
<Typography | ||
sx={{ | ||
color: 'muted.main', | ||
fontSize: '1.25rem', | ||
display: 'inline', | ||
}} | ||
> | ||
unsaved changes | ||
</Typography> | ||
</Box> | ||
); | ||
} | ||
|
||
return <></>; | ||
}; | ||
|
||
export default ProjectIsLoadingText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.