-
Notifications
You must be signed in to change notification settings - Fork 0
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
List report.html files on job result page #33
Merged
Merged
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b0302ac
Page to show report.html files
sverhoeven 274eabe
List all report.html on job page.
sverhoeven 091a363
Open report.html in new tab
sverhoeven 4c69813
This web app is haddock3 only, remove any multi bartender application…
sverhoeven c8debb4
Link to haddock3 docs
sverhoeven 4d13240
Remove dead code
sverhoeven d11d475
Format
sverhoeven 414eb11
De-duplicate sections in workflow.cfg using new @i-vresse/[email protected]
sverhoeven c05c7fc
Input files can only be viewed once job is completed
sverhoeven 0faa6df
Make header in toml a single line
sverhoeven 1b5e133
Merge remote-tracking branch 'origin/main' into result-viewer
sverhoeven 1e220be
Also use shortname for new calls
sverhoeven c884b1b
Rewrite ListReportFiles to have single report.html per module + add u…
sverhoeven 15b3674
Format + simplify report.html name check
sverhoeven 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 |
---|---|---|
|
@@ -218,3 +218,7 @@ div.checkbox { | |
padding: 0.25rem; | ||
overflow: unset; | ||
} | ||
|
||
code .table{ | ||
@apply contents | ||
} |
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,29 @@ | ||
import { useMemo } from "react"; | ||
import type { DirectoryItem } from "~/bartender-client"; | ||
|
||
export function ListReportFiles({ files, prefix }: { files: DirectoryItem, prefix: string }) { | ||
const htmlFiles: [string, DirectoryItem[]][] = useMemo(() => { | ||
if (!files.children) { | ||
return []; | ||
} | ||
const analyisRoot = files.children.find((i) => i.name === "analysis"); | ||
if (!analyisRoot|| !analyisRoot.children) { | ||
return []; | ||
} | ||
return analyisRoot.children.map((module) => { | ||
if (!module.children) { | ||
return [module.name, []] | ||
} | ||
const htmls = module.children.filter((file) => file.name.endsWith("report.html")) | ||
.map((file) => file); | ||
return [module.name, htmls]; | ||
}); | ||
}, [files]); | ||
return ( | ||
<ul className="list-disc list-inside"> | ||
{htmlFiles.map(([module, htmls]) => { | ||
return <li key={module}><a target="_blank" rel="noreferrer" href={`${prefix}${htmls[0].path}`}>{module}</a></li>; | ||
})} | ||
</ul> | ||
); | ||
} |
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
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,4 @@ | ||
|
||
export const BARTENDER_APPLICATION_NAME = "haddock3"; | ||
export const WORKFLOW_CONFIG_FILENAME = "workflow.cfg"; | ||
export const JOB_OUTPUT_DIR = "output"; |
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
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,8 +1,7 @@ | ||
export default function About() { | ||
export default function Help() { | ||
return ( | ||
<p className="prose"> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Iusto amet iure temporibus vero dignissimos, dolorem adipisci ipsam suscipit nemo enim a magni ad ipsum. Sint iure itaque assumenda expedita debitis. | ||
</p> | ||
|
||
<main> | ||
<a href="https://www.bonvinlab.org/haddock3/">Haddock3 command line documentation</a> | ||
</main> | ||
) | ||
} |
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
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.
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.
Does
htmls
only ever contain 1 item?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.
You are right.
Each caprieval analysis module has multiple html files, but only one report.html.
We only want to show report.html for now, later each plot in report.html could link to the single plot html file.
Changed code to use map<module,report path>