mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-19 03:49:11 +02:00
yocto_console_view: Group similar builder builds
Builds from similar builders have to be in the same <td>, compacting a bit the whole view. Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
dab2c9bb81
commit
d9bcc41cf7
|
@ -17,7 +17,7 @@ tr.bb-console-table-first-row {
|
|||
font-size: 1em;
|
||||
width: 1.5em;
|
||||
text-align: center;
|
||||
transform: rotate(-45deg) translate(.5em, 1em);
|
||||
transform: rotate(-45deg) translate(-.2em, .8em);
|
||||
transform-origin: bottom left;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
|
|
|
@ -412,14 +412,17 @@ export const ConsoleView = observer(() => {
|
|||
const changeRows = changesToShow.map(changeInfo => {
|
||||
const change = changeInfo.change;
|
||||
|
||||
const builderColumns = buildersToShow.map(builder => {
|
||||
const builds = changeInfo.buildsByBuilderId.get(builder.builderid) ?? [];
|
||||
const builderColumns = builderGroups.map((builderGroup, i) => {
|
||||
const builds: Build[] = [];
|
||||
for (const builder of builderGroup.builders) {
|
||||
const builderBuilds = changeInfo.buildsByBuilderId.get(builder.builderid) ?? []
|
||||
builds.push(...builderBuilds);
|
||||
}
|
||||
const buildLinks = builds.map(build => (
|
||||
<BuildLinkWithSummaryTooltip key={build.buildid} build={build}/>
|
||||
));
|
||||
|
||||
return (
|
||||
<td key={builder.name} title={builder.name} className="column">
|
||||
<td key={i} title={builderGroup.name} colSpan={builderGroup.colspan} className="column">
|
||||
{buildLinks}
|
||||
</td>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user