Skip to content
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

fix summary #328

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions src/Runner.Server/actions-service-webapp/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ function List({ fullscreen } : { fullscreen?: boolean }) {
{jobs.map(val => (
<NavLink key={val.jobId} to={encodeURIComponent(val.jobId)} className={({isActive})=> isActive ? 'btn btn-outline-secondary w-100 text-start active' : 'btn btn-outline-secondary w-100 text-start'}><span style={{fontSize: 20}}>{val.name}</span><br/><span style={{fontSize: 12}}>{!params.runid ? (<>repo:&nbsp;{val.repo} workflow:&nbsp;{val.workflowname} runid:&nbsp;{val.runid} </>) : (<></>)}attempt:&nbsp;{val.attempt} result:&nbsp;<TimelineStatus status={val.result ?? "inprogress"}/></span></NavLink>
))}
{ loading ? <span>Loading...</span> : error ? <span>{error}</span> : <></> }
{ loading ?
<div className="spinner-border" role="status">
<span className="visually-hidden">Loading...</span>
</div> : error ? <span>{error}</span> : <></> }
</span>);
};

Expand Down Expand Up @@ -215,7 +218,10 @@ const GenericList = <T, >(param : GenericListProps<T>) => {
{(param.actions && param.actions(val, params)) || ""}
</div>
))}
{ loading ? <span>Loading...</span> : error ? <span>{error}</span> : <></> }
{ loading ?
<div className="spinner-border" role="status">
<span className="visually-hidden">Loading...</span>
</div> : error ? <span>{error}</span> : <></> }
</div>);
};

Expand Down Expand Up @@ -716,7 +722,7 @@ function JobPage() {
setSummaries([]);
var signal = new AbortController();
(async() => {
for(var summary of artifacts.filter(artifact => artifact.files !== undefined && /Attachment_[^_]+_[^_]+_Checks\.Step\.Summary/.test(artifact.name)).flatMap((container: ArtifactResponse) => (container.files || []).filter(f => f.itemType === "file").map(file => file.contentLocation))) {
for(var summary of artifacts.filter(artifact => artifact.files !== undefined && artifact.name.startsWith("Attachment_")).flatMap((container: ArtifactResponse) => (container.files || []).filter(f => f.itemType === "file" && f.path.includes("_Checks.Step.Summary_")).map(file => file.contentLocation))) {
if(signal.signal.aborted) return;
var resp = await fetch(summary, { signal: signal.signal })
if(signal.signal.aborted) return;
Expand Down Expand Up @@ -828,7 +834,10 @@ function JobPage() {
}
})()
}
{ loading ? <span>Loading...</span> : error ? <span>{error}</span> : <></> }
{ loading ?
<div className="spinner-border" role="status">
<span className="visually-hidden">Loading...</span>
</div> : error ? <span>{error}</span> : <></> }
{(() => {
if((timeline?.length || 0) > 1) {
return (<>{timeline?.map((timelineEntry, i) => (<Collapsible key={timelineEntry.id} timelineEntry={timelineEntry} registerLiveLog={(recordId, callback) => eventHandler.set(recordId, callback)} unregisterLiveLog={recordId => eventHandler.delete(recordId)}></Collapsible>))}</>);
Expand Down
6 changes: 3 additions & 3 deletions src/Runner.Server/wwwroot/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"files": {
"main.css": "/static/css/main.4758f308.css",
"main.js": "/static/js/main.985f3c99.js",
"main.js": "/static/js/main.7457c726.js",
"static/js/787.0500ceb2.chunk.js": "/static/js/787.0500ceb2.chunk.js",
"index.html": "/index.html",
"main.4758f308.css.map": "/static/css/main.4758f308.css.map",
"main.985f3c99.js.map": "/static/js/main.985f3c99.js.map",
"main.7457c726.js.map": "/static/js/main.7457c726.js.map",
"787.0500ceb2.chunk.js.map": "/static/js/787.0500ceb2.chunk.js.map"
},
"entrypoints": [
"static/css/main.4758f308.css",
"static/js/main.985f3c99.js"
"static/js/main.7457c726.js"
]
}
2 changes: 1 addition & 1 deletion src/Runner.Server/wwwroot/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.1.0/github-markdown.css"><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="View workflow runs, jobs and download artifacts"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Actions Service</title><script defer="defer" src="/static/js/main.985f3c99.js"></script><link href="/static/css/main.4758f308.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.1.0/github-markdown.css"><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="View workflow runs, jobs and download artifacts"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><title>Actions Service</title><script defer="defer" src="/static/js/main.7457c726.js"></script><link href="/static/css/main.4758f308.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
2 changes: 1 addition & 1 deletion src/Runner.Server/wwwroot/static/css/main.4758f308.css.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/Runner.Server/wwwroot/static/js/main.7457c726.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/Runner.Server/wwwroot/static/js/main.985f3c99.js.map

This file was deleted.

Loading