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

Improvements to the React GUI for builders and workers #7458

Open
wants to merge 10 commits into
base: 3.11.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions newsfragments/build-time-info.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Display Information about when build completed, instead of just when it started
18 changes: 14 additions & 4 deletions www/react-base/src/components/BuildsTable/BuildsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,26 @@ export const BuildsTable = observer(({builds, builders}: BuildsTableProps) => {
)
: <></>;

const buildStartedCompletedElement = build.complete
? (
<span title={dateFormat(build.complete_at!)}>
{durationFormat(build.complete_at! - build.started_at)}
YngveNPettersen marked this conversation as resolved.
Show resolved Hide resolved
</span>
)
: (
<span title={dateFormat(build.started_at)}>
{durationFromNowFormat(build.started_at, now)}
YngveNPettersen marked this conversation as resolved.
Show resolved Hide resolved
</span>
);

return (
<tr key={build.id}>
{builderNameElement}
<td>
<BuildLinkWithSummaryTooltip build={build}/>
</td>
<td>
<span title={dateFormat(build.started_at)}>
{durationFromNowFormat(build.started_at, now)}
</span>
{buildStartedCompletedElement}
</td>
<td>
{buildCompleteInfoElement}
Expand Down Expand Up @@ -98,7 +108,7 @@ export const BuildsTable = observer(({builds, builders}: BuildsTableProps) => {
<tr>
{ builders !== null ? <td width="200px">Builder</td> : <></> }
<td width="100px">#</td>
<td width="150px">Started At</td>
<td width="150px">Completed At</td>
<td width="150px">Duration</td>
<td width="200px">Owners</td>
<td width="150px">Worker</td>
Expand Down