-
Notifications
You must be signed in to change notification settings - Fork 3
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
GUI for multistep searches #494
base: main
Are you sure you want to change the base?
Conversation
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.
LGTM (with comments ;-))
const location = useLocation(); | ||
|
||
// Add function to check if a path is active | ||
const isPathActive = (path) => { |
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.
isRoutePathActive
?
const method = useMethod(); | ||
const theme = useTheme(); | ||
|
||
const hasLibrary = method.library.path !== ""; |
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.
should these members of method maybe be renamed (later) to what they are called in config now?
library_path
, raw_paths
, fasta_paths
?
|
||
let message = data.description; | ||
if (hasRawFiles && !hasLibrary && !hasFasta) { | ||
message = "Please select a spectral library and FASTA file to enable transfer learning."; |
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.
from the if
I would have assumed
Please select a spectral library and/or FASTA file.```
{tab === 'files' && <Files />} | ||
{tab === 'config' && <Config />} | ||
</Box> | ||
</Box> | ||
) | ||
} |
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.
{tab === 'files' && <Files />} | ||
{tab === 'config' && <Config />} | ||
</Box> | ||
</Box> | ||
) |
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.
@@ -78,7 +78,7 @@ const MultiSelect = ({ | |||
<Grid item xs={3} position={'relative'}> | |||
<Button | |||
variant="outlined" | |||
sx={{float: 'right', ml:1, minWidth: "115px"}} | |||
sx={{float: 'right', ml:1, minWidth: "130px"}} | |||
disabled={!active} | |||
onClick={handleSelect}> | |||
Select Files |
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.
Could this be "Select FASTA file(s).." ? (Likewise: "Output Folder", "Library File")
just a little less mental mapping
) | ||
} | ||
|
||
const Method = () => { |
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.
|
||
const Config = () => { |
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.
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.
LGTM
This PR introduces a GUI component for the multistep search