-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add more information for users on invalid files #987
Merged
cosa65
merged 21 commits into
hms-dbmi-cellenics:master
from
biomage-org:6107548889-more-info-parse-upload
Feb 29, 2024
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e37af30
Allow files not in DGE_unfiltered or DGE_filtered
cosa65 6169fd0
More permissive file filter, now it also looks, as last resort, into …
cosa65 e6a576c
Add comments
cosa65 a8f6eee
Add invalid files returned to filterFiles
cosa65 a6ccceb
Add takeRight to handle case splitFilePath being size 2 or 3 in one line
cosa65 f8b10d2
Add invalid to filesList since valid and invalid will always be updat…
cosa65 89585ab
Rename setFilesList to setFiles, it is no longer a list
cosa65 6c47c97
Add files.invalid section
cosa65 1a18e6b
Add expandable section with errored out files
cosa65 e6a50ae
Update coment
cosa65 8e6d9c7
Add reject reasons for files considered invalid for parse and add dis…
cosa65 def382c
Fix and add handling for rejectReason for non-parse files
cosa65 abb135f
Update comment
cosa65 78356c6
Singular/plural check
cosa65 70f4829
No collapse
cosa65 4feeaf6
Trim
cosa65 d43cd78
Add test to check for invalid files handling
cosa65 350eefc
Expand test, check for invalid files
cosa65 b3e5df4
Fix merge conflicts
cosa65 9d5e742
Add pagination for invalid files list
cosa65 0631ba4
Add cursor pointer
cosa65 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React, { useState } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
const Expandable = (props) => { | ||
const { expandedContent, collapsedContent } = props; | ||
|
||
const [isExpanded, setIsExpanded] = useState(false); | ||
|
||
return ( | ||
// eslint-disable-next-line jsx-a11y/click-events-have-key-events | ||
<span | ||
onClick={() => { | ||
if (!isExpanded) { | ||
setIsExpanded(true); | ||
} | ||
}} | ||
> | ||
{!isExpanded ? collapsedContent | ||
: ( | ||
<> | ||
{expandedContent} | ||
</> | ||
)} | ||
</span> | ||
); | ||
}; | ||
|
||
Expandable.propTypes = { | ||
expandedContent: PropTypes.node.isRequired, | ||
collapsedContent: PropTypes.node.isRequired, | ||
}; | ||
|
||
Expandable.defaultProps = {}; | ||
|
||
export default Expandable; |
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are always obtained and updated together, so it seemed to make sense to put
invalid
in the sameuseState