Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
howard-e committed Aug 29, 2023
1 parent 4402381 commit 4e073db
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 26 deletions.
36 changes: 15 additions & 21 deletions client/components/DataManagement/DataManagementRow/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ const DataManagementRow = ({
// "active"
insertActivePhaseForTestPlan(latestVersion);
return (
<PhaseCell role="list">
<PhaseCell role="list" aria-setsize={isAdmin ? 2 : 1}>
<VersionString
role="listitem"
date={latestVersionDate}
Expand All @@ -526,7 +526,6 @@ const DataManagementRow = ({
/>
{isAdmin && (
<Button
role="listitem"
ref={ref => setFocusRef(ref)}
className="advance-button"
variant="secondary"
Expand Down Expand Up @@ -655,7 +654,7 @@ const DataManagementRow = ({
// Phase is "active"
insertActivePhaseForTestPlan(latestVersion);
return (
<PhaseCell role="list">
<PhaseCell role="list" aria-setsize={isAdmin ? 3 : 2}>
<VersionString
role="listitem"
date={latestVersionDate}
Expand All @@ -665,7 +664,6 @@ const DataManagementRow = ({
/>
{isAdmin && (
<Button
role="listitem"
ref={ref => setFocusRef(ref)}
className="advance-button"
variant="secondary"
Expand Down Expand Up @@ -707,10 +705,11 @@ const DataManagementRow = ({
Advance to Candidate
</Button>
)}
<TestPlanReportStatusDialogWithButton
role="listitem"
testPlanVersionId={latestVersion.id}
/>
<span role="listitem">
<TestPlanReportStatusDialogWithButton
testPlanVersionId={latestVersion.id}
/>
</span>
</PhaseCell>
);
}
Expand Down Expand Up @@ -877,8 +876,7 @@ const DataManagementRow = ({
return (
<PhaseCell
role="list"
aria-level="1"
aria-setsize={shouldShowAdvanceButton ? 4 : 3}
aria-setsize={shouldShowAdvanceButton ? 5 : 4}
>
<VersionString
role="listitem"
Expand All @@ -889,7 +887,6 @@ const DataManagementRow = ({
/>
{shouldShowAdvanceButton && (
<Button
role="listitem"
ref={ref => setFocusRef(ref)}
className="advance-button"
variant="secondary"
Expand Down Expand Up @@ -918,17 +915,17 @@ const DataManagementRow = ({
Advance to Recommended
</Button>
)}
<TestPlanReportStatusDialogWithButton
role="listitem"
testPlanVersionId={latestVersion.id}
/>
<span role="list" className="more" aria-level="2">
<span role="listitem">
<TestPlanReportStatusDialogWithButton
testPlanVersionId={latestVersion.id}
/>
</span>
<span className="more">
<span
role="listitem"
className="more-issues-container"
>
<ReportStatusDot className="issues" />
&nbsp;
{issuesCount} Open Issue
{`${issuesCount === 1 ? '' : 's'}`}
{`${
Expand All @@ -937,10 +934,7 @@ const DataManagementRow = ({
: ''
}`}
</span>
<span
role="listitem"
className="target-days-container"
>
<span className="target-days-container">
{isAdmin ? (
<button
ref={updateTargetRef}
Expand Down
6 changes: 1 addition & 5 deletions client/components/TestPlanReportStatusDialog/WithButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ const TestPlanReportStatusDialogButton = styled(Button)`
margin-top: auto;
`;

const TestPlanReportStatusDialogWithButton = ({
testPlanVersionId,
...restProps
}) => {
const TestPlanReportStatusDialogWithButton = ({ testPlanVersionId }) => {
const {
data: { testPlanVersion } = {},
refetch,
Expand Down Expand Up @@ -139,7 +136,6 @@ const TestPlanReportStatusDialogWithButton = ({
<TestPlanReportStatusDialogButton
ref={buttonRef}
onClick={() => setShowDialog(true)}
{...restProps}
>
{buttonLabel}
</TestPlanReportStatusDialogButton>
Expand Down

0 comments on commit 4e073db

Please sign in to comment.