Browse Source

Merge "Handle long strings in build/buildsets tables"

changes/93/809293/7
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
86285fece2
  1. 8
      web/src/containers/build/BuildTable.jsx
  2. 8
      web/src/containers/build/BuildsetTable.jsx

8
web/src/containers/build/BuildTable.jsx

@ -39,6 +39,9 @@ import {
TableHeader,
TableBody,
TableVariant,
truncate,
breakWord,
cellWidth,
} from '@patternfly/react-table'
import 'moment-duration-format'
import * as moment from 'moment'
@ -58,14 +61,17 @@ function BuildTable({
{
title: <IconProperty icon={<BuildIcon />} value="Job" />,
dataLabel: 'Job',
cellTransforms: [breakWord],
},
{
title: <IconProperty icon={<CubeIcon />} value="Project" />,
dataLabel: 'Project',
cellTransforms: [breakWord],
},
{
title: <IconProperty icon={<CodeBranchIcon />} value="Branch" />,
dataLabel: 'Branch',
cellTransforms: [breakWord],
},
{
title: <IconProperty icon={<StreamIcon />} value="Pipeline" />,
@ -74,6 +80,8 @@ function BuildTable({
{
title: <IconProperty icon={<CodeIcon />} value="Change" />,
dataLabel: 'Change',
transforms: [cellWidth(10)],
cellTransforms: [truncate],
},
{
title: <IconProperty icon={<OutlinedClockIcon />} value="Duration" />,

8
web/src/containers/build/BuildsetTable.jsx

@ -37,6 +37,9 @@ import {
TableHeader,
TableBody,
TableVariant,
truncate,
breakWord,
cellWidth,
} from '@patternfly/react-table'
import { BuildResult, BuildResultWithIcon, IconProperty } from './Misc'
@ -53,18 +56,23 @@ function BuildsetTable({
{
title: <IconProperty icon={<CubeIcon />} value="Project" />,
dataLabel: 'Project',
cellTransforms: [breakWord],
},
{
title: <IconProperty icon={<CodeBranchIcon />} value="Branch" />,
dataLabel: 'Branch',
cellTransforms: [breakWord],
},
{
title: <IconProperty icon={<StreamIcon />} value="Pipeline" />,
dataLabel: 'Pipeline',
cellTransforms: [breakWord],
},
{
title: <IconProperty icon={<CodeIcon />} value="Change" />,
dataLabel: 'Change',
transforms: [cellWidth(10)],
cellTransforms: [truncate],
},
{
title: <IconProperty icon={<PollIcon />} value="Result" />,

Loading…
Cancel
Save