add missing titles/labels, remove duplicate IDs

This commit is contained in:
Keith J. Grant
2021-04-13 12:09:40 -07:00
parent 77cc3306a5
commit 1dc3b80c68
4 changed files with 7 additions and 8 deletions

View File

@@ -123,6 +123,9 @@ function PaginatedTable({
} }
onSetPage={handleSetPage} onSetPage={handleSetPage}
onPerPageSelect={handleSetPageSize} onPerPageSelect={handleSetPageSize}
titles={{
paginationTitle: t`Top Pagination`,
}}
/> />
); );

View File

@@ -248,7 +248,7 @@ function LineChart({ id, data, height, i18n, pageContext }) {
.style('fill', () => colors(0)) .style('fill', () => colors(0))
.attr('cx', d => x(d.DATE)) .attr('cx', d => x(d.DATE))
.attr('cy', d => y(d.FAIL)) .attr('cy', d => y(d.FAIL))
.attr('id', d => `success-dot-${dateFormat(d.DATE)}`) .attr('id', d => `fail-dot-${dateFormat(d.DATE)}`)
.on('mouseover', handleMouseOver) .on('mouseover', handleMouseOver)
.on('mousemove', handleMouseMove) .on('mousemove', handleMouseMove)
.on('mouseout', handleMouseOut); .on('mouseout', handleMouseOut);

View File

@@ -43,8 +43,6 @@ function ExecutionEnvironmentListItem({
setIsDisabled(false); setIsDisabled(false);
}, []); }, []);
const labelId = `check-action-${executionEnvironment.id}`;
return ( return (
<Tr id={`ee-row-${executionEnvironment.id}`}> <Tr id={`ee-row-${executionEnvironment.id}`}>
<Td <Td
@@ -56,15 +54,13 @@ function ExecutionEnvironmentListItem({
}} }}
dataLabel={i18n._(t`Selected`)} dataLabel={i18n._(t`Selected`)}
/> />
<Td id={labelId} dataLabel={i18n._(t`Name`)}> <Td id={`ee-name-${executionEnvironment.id}`} dataLabel={i18n._(t`Name`)}>
<Link to={`${detailUrl}`}> <Link to={`${detailUrl}`}>
<b>{executionEnvironment.name}</b> <b>{executionEnvironment.name}</b>
</Link> </Link>
</Td> </Td>
<Td id={labelId} dataLabel={i18n._(t`Image`)}> <Td dataLabel={i18n._(t`Image`)}>{executionEnvironment.image}</Td>
{executionEnvironment.image} <Td dataLabel={i18n._(t`Organization`)}>
</Td>
<Td id={labelId} dataLabel={i18n._(t`Organization`)}>
{executionEnvironment.organization ? ( {executionEnvironment.organization ? (
<Link <Link
to={`/organizations/${executionEnvironment?.summary_fields?.organization?.id}/details`} to={`/organizations/${executionEnvironment?.summary_fields?.organization?.id}/details`}