Skip to content

Commit

Permalink
Merge pull request #1217 from w3c/releases: September 18, 2024 Produc…
Browse files Browse the repository at this point in the history
…tion Release

Includes changes recently included in the [releases branch](https://github.com/w3c/aria-at-app/tree/releases) through #1216.

[Latest CHANGELOG.md update: v1.8.0](https://github.com/w3c/aria-at-app/blob/releases/CHANGELOG.md#180-2024-09-18)
  • Loading branch information
howard-e authored Sep 18, 2024
2 parents d8f58cc + 84ea7dd commit 862cb25
Show file tree
Hide file tree
Showing 38 changed files with 1,911 additions and 225 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
## [1.8.0](https://github.com/w3c/aria-at-app/compare/v1.7.0...v1.8.0) (2024-09-18)


### Features

* Allows testers' results to be publicly viewable ([#1209](https://github.com/w3c/aria-at-app/issues/1209)) ([afede8d](https://github.com/w3c/aria-at-app/commit/afede8d9dae02e963cdd21e5fd950ba2de390017))
* Enhanced conflict review ([#1195](https://github.com/w3c/aria-at-app/issues/1195)) ([fbae626](https://github.com/w3c/aria-at-app/commit/fbae626e2e3905b558a40dd1cb8d2285741b3eb2)), closes [#975](https://github.com/w3c/aria-at-app/issues/975)


### Bug Fixes

* Conditionally present 'conflict' or 'conflicts' on TestQueue Status column ([#1215](https://github.com/w3c/aria-at-app/issues/1215)) ([4e51862](https://github.com/w3c/aria-at-app/commit/4e51862244670fbac9aef72c55ccd7a3911e80ed))
* Vendor review approval modal content edit and close button fix ([#1206](https://github.com/w3c/aria-at-app/issues/1206)) ([733f446](https://github.com/w3c/aria-at-app/commit/733f44691e71eadacff3ef778b2b345c626bfb3b)), closes [#1202](https://github.com/w3c/aria-at-app/issues/1202) [#1203](https://github.com/w3c/aria-at-app/issues/1203)


### Reverts

* Revert "Move from `express` v5-beta to `express` v5 (#1210)" ([08b2a91](https://github.com/w3c/aria-at-app/commit/08b2a9101e86c621dce96f6846bbd6ac71128540)), closes [#1210](https://github.com/w3c/aria-at-app/issues/1210)

## [1.7.0](https://github.com/w3c/aria-at-app/compare/v1.6.0...v1.7.0) (2024-08-26)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,41 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faCheck } from '@fortawesome/free-solid-svg-icons';
import PropTypes from 'prop-types';
import '../common.css';
import './ThankYouModal.css';

const ThankYouModal = ({ handleAction = () => {}, githubUrl = '#' }) => {
const ApprovedModal = ({ handleAction = () => {}, githubUrl = '#' }) => {
return (
<BasicModal
show={true}
centered={true}
closeButton={false}
content={
<>
<p className="thank-you-content">Your Review has been submitted!</p>
<p className="thank-you-share">Do you have anything else to share?</p>
<p className="thank-you-issue">
<p className="review-confirmation-content">
Your Review has been submitted!
</p>
<p className="review-confirmation-share">
Do you have anything else to share?
</p>
<p className="review-confirmation-issue">
<a href={githubUrl} target="_blank" rel="noreferrer">
Open a GitHub issue
</a>{' '}
to leave more feedback{' '}
</p>
</>
}
dialogClassName="thank-you"
dialogClassName="review-confirmation"
actions={[
{
label: 'Close',
onClick: handleAction
}
]}
title={
<div className="thank-you-title">
<div className="review-confirmation-title">
<FontAwesomeIcon
icon={faCheck}
className="thank-you-check"
className="review-confirmation-check"
color="green"
/>
<h1>Thank you!</h1>
Expand All @@ -45,9 +48,9 @@ const ThankYouModal = ({ handleAction = () => {}, githubUrl = '#' }) => {
);
};

ThankYouModal.propTypes = {
ApprovedModal.propTypes = {
handleAction: PropTypes.func,
githubUrl: PropTypes.string
};

export default ThankYouModal;
export default ApprovedModal;
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import React from 'react';
import BasicModal from '../../../common/BasicModal';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons';
import PropTypes from 'prop-types';
import '../common.css';

const NotApprovedModal = ({ handleAction = () => {}, githubUrl = '#' }) => {
return (
<BasicModal
show={true}
centered={true}
closeButton={false}
content={
<>
<p className="review-confirmation-content">Thank you for reviewing</p>
<p className="review-confirmation-share">
if you haven’t opened any issues yet, please{' '}
<a href={githubUrl} target="_blank" rel="noreferrer">
open an issue describing why this is not approved.
</a>
</p>
</>
}
dialogClassName="review-confirmation"
actions={[
{
label: 'Close',
onClick: handleAction
}
]}
title={
<div className="review-confirmation-title">
<FontAwesomeIcon
icon={faExclamationTriangle}
className="review-confirmation-check"
color="orange"
/>
<h1>Thank you!</h1>
</div>
}
/>
);
};

NotApprovedModal.propTypes = {
handleAction: PropTypes.func,
githubUrl: PropTypes.string
};

export default NotApprovedModal;
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const ProvideFeedbackModal = ({
show={true}
centered={true}
cancelButton={false}
useOnHide={true}
handleHide={handleHide}
content={
<div className="feedback-content">
Expand Down

This file was deleted.

53 changes: 53 additions & 0 deletions client/components/CandidateReview/CandidateModals/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,56 @@
.modal-header {
border-bottom: none;
}

.review-confirmation {
justify-content: center;
}

.review-confirmation .modal-content {
align-items: center;
width: 360px;
padding-top: 2em;
padding-bottom: 2em;
}

.review-confirmation-check {
font-size: 100px;
margin-right: 0 !important;
margin-bottom: 20px;
}

.review-confirmation-title {
text-align: center;
}

.review-confirmation-title h1 {
border-bottom: none;
font-size: 1.5em;
}

.review-confirmation-content {
font-weight: bold;
text-align: center;
}

.review-confirmation-share {
margin-bottom: 0;
}

.review-confirmation-issue {
text-align: center;
font-size: 12px;
margin-bottom: 0;
}

.review-confirmation .modal-header {
padding-bottom: 0;
}

.review-confirmation .modal-footer {
padding-bottom: 30px;
}

.review-confirmation .modal-footer .btn {
width: 100px;
}
42 changes: 24 additions & 18 deletions client/components/CandidateReview/CandidateTestPlanRun/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ import '../../App/App.css';
import { useMediaQuery } from 'react-responsive';
import TestPlanResultsTable from '../../common/TestPlanResultsTable';
import ProvideFeedbackModal from '../CandidateModals/ProvideFeedbackModal';
import ThankYouModal from '../CandidateModals/ThankYouModal';
import ApprovedModal from '../CandidateModals/ApprovedModal';
import FeedbackListItem from '../FeedbackListItem';
import DisclosureComponent from '../../common/DisclosureComponent';
import createIssueLink, {
getIssueSearchLink
} from '../../../utils/createIssueLink';
import RunHistory from '../../common/RunHistory';
import { useUrlTestIndex } from '../../../hooks/useUrlTestIndex';
import NotApprovedModal from '../CandidateModals/NotApprovedModal';

const CandidateTestPlanRun = () => {
const { atId, testPlanVersionId } = useParams();
Expand Down Expand Up @@ -63,7 +64,7 @@ const CandidateTestPlanRun = () => {
const [isFirstTest, setIsFirstTest] = useState(true);
const [isLastTest, setIsLastTest] = useState(false);
const [feedbackModalShowing, setFeedbackModalShowing] = useState(false);
const [thankYouModalShowing, setThankYouModalShowing] = useState(false);
const [confirmationModal, setConfirmationModal] = useState(null);
const [showInstructions, setShowInstructions] = useState(false);
const [showBrowserBools, setShowBrowserBools] = useState([]);
const [showRunHistory, setShowRunHistory] = useState(false);
Expand Down Expand Up @@ -151,9 +152,27 @@ const CandidateTestPlanRun = () => {
const submitApproval = async (status = '') => {
if (status === 'APPROVED') {
updateVendorStatus(true);
setConfirmationModal(
<ApprovedModal
handleAction={async () => {
setConfirmationModal(null);
navigate('/candidate-review');
}}
githubUrl={generalFeedbackUrl}
/>
);
} else {
setConfirmationModal(
<NotApprovedModal
handleAction={async () => {
setConfirmationModal(null);
navigate('/candidate-review');
}}
githubUrl={generalFeedbackUrl}
/>
);
}
setFeedbackModalShowing(false);
setThankYouModalShowing(true);
};

useEffect(() => {
Expand Down Expand Up @@ -631,7 +650,7 @@ const CandidateTestPlanRun = () => {
</Row>
</Col>
</Row>
{feedbackModalShowing ? (
{feedbackModalShowing && (
<ProvideFeedbackModal
at={at}
show={true}
Expand All @@ -654,21 +673,8 @@ const CandidateTestPlanRun = () => {
handleAction={submitApproval}
handleHide={() => setFeedbackModalShowing(false)}
/>
) : (
<></>
)}
{thankYouModalShowing ? (
<ThankYouModal
show={true}
handleAction={async () => {
setThankYouModalShowing(false);
navigate('/candidate-review');
}}
githubUrl={generalFeedbackUrl}
/>
) : (
<></>
)}
{!!confirmationModal && confirmationModal}
</Container>
);
};
Expand Down
44 changes: 22 additions & 22 deletions client/components/TestQueue/Actions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ const Actions = ({
);
};

const openResultsLabel = isAdmin ? 'Open run as...' : 'View Results for...';

return (
<LoadingStatus message={loadingMessage}>
<ActionContainer>
Expand All @@ -248,28 +250,26 @@ const Actions = ({
: 'Start Testing'}
</Button>
)}
{isAdmin && (
<Dropdown focusFirstItemOnShow>
<Dropdown.Toggle
variant="secondary"
disabled={!nonSelfAssignedRuns.length}
>
<FontAwesomeIcon icon={faFileImport} />
Open run as...&nbsp;
</Dropdown.Toggle>
<Dropdown.Menu role="menu">
{nonSelfAssignedRuns.map(testPlanRun => (
<Dropdown.Item
key={testPlanRun.id}
role="menuitem"
href={`/run/${testPlanRun.id}?user=${testPlanRun.tester.id}`}
>
{testPlanRun.tester.username}
</Dropdown.Item>
))}
</Dropdown.Menu>
</Dropdown>
)}
<Dropdown focusFirstItemOnShow>
<Dropdown.Toggle
variant="secondary"
disabled={!nonSelfAssignedRuns.length}
>
<FontAwesomeIcon icon={faFileImport} />
{openResultsLabel}
</Dropdown.Toggle>
<Dropdown.Menu role="menu">
{nonSelfAssignedRuns.map(testPlanRun => (
<Dropdown.Item
key={testPlanRun.id}
role="menuitem"
href={`/run/${testPlanRun.id}?user=${testPlanRun.tester.id}`}
>
{testPlanRun.tester.username}
</Dropdown.Item>
))}
</Dropdown.Menu>
</Dropdown>
{isAdmin && assignedBotRun && (
<ManageBotRunDialogWithButton
testPlanRun={assignedBotRun}
Expand Down
Loading

0 comments on commit 862cb25

Please sign in to comment.