Skip to content

Commit f135f69

Browse files
authored
Enable Build Tree for Perf Pipeline (adoptium#1063)
Replaced link to /buildDetail with BuildStatus inside renderBuild when value.tests is null. Fixes: adoptium#1048 Signed-off-by: Matthew Wei <mwei2@andrew.cmu.edu>
1 parent 89ffd2c commit f135f69

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

test-result-summary-client/src/Build/TopLevelBuildTable.jsx

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -167,26 +167,15 @@ function TopLevelBuildTable(props) {
167167
);
168168
}
169169
} else {
170-
// Return a link to the build detail page
170+
// Return a JSX element with a 'BuildStatus' and 'renderPublishName' component, passing in relevant props.
171171
return (
172172
<div>
173-
<Link
174-
to={{
175-
pathname: '/buildDetail',
176-
search: params({ parentId: value._id }),
177-
}}
178-
style={{
179-
color:
180-
result === 'SUCCESS'
181-
? '#2cbe4e'
182-
: result === 'FAILURE'
183-
? '#f50'
184-
: '#DAA520',
185-
}}
186-
>
187-
{' '}
188-
Build #{value.buildNum}
189-
</Link>
173+
<BuildStatus
174+
status={value.buildResult}
175+
id={value._id}
176+
buildNum={value.buildNum}
177+
/>
178+
{renderPublishName(value)}
190179
</div>
191180
);
192181
}

0 commit comments

Comments
 (0)