Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add UI for Managing Required Reports for Phases #1205

Open
wants to merge 15 commits into
base: development
Choose a base branch
from

Conversation

stalgiag
Copy link
Contributor

@stalgiag stalgiag commented Aug 27, 2024

This PR is a migration of the work completed by @Paul-Clue in #774. Thanks Paul!

There are significant differences between that PR and this one due to changing practices in the repo and structural shifts since that PR was opened. I chose to squash all of the functional work into a single PR to retain attribution where it is due.

see #683


@stalgiag stalgiag marked this pull request as ready for review August 28, 2024 18:01
@stalgiag stalgiag requested a review from howard-e August 28, 2024 19:43
Copy link
Contributor

@howard-e howard-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stalgiag thanks for restoring this work! I've left some inline comments, but also acknowledging that this wasn't originally created by you (and it's been quite some time). So if you'd like to discuss anything further first, we certainly can

server/graphql-schema.js Outdated Show resolved Hide resolved
Comment on lines 1369 to 1372
enum RequiredReportPhase {
IS_CANDIDATE
IS_RECOMMENDED
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this could reuse the TestPlanVersionPhase enum instead of introducing a new enum to reduce noise?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I wasn't sure the logic behind the IS_X pattern but since the previous PR was accepted for that I decided to keep it. Can modify.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 1f7db13

</PhasePill>
</td>
<td>{at.name}</td>
<td>{browser.name}</td>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

browser.name isn't coming through for the rows on the Data Management page (which also affects the edit and delete functions on that page)

screenshot showing the browser name is missing for all rows

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh interesting. I wasn't testing on the Data Management page but realizing now that this disclosure wasn't intended to exist on that page and a boolean prop in ManageTestQueue was being used to exclude it previously. I'll do that.

return (
<>
<DisclosureContainer data-testid="manage-required-reports-disclosure">
<span>Add required reports for a specific AT and Browser pair</span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<span>Add required reports for a specific AT and Browser pair</span>
<span>Update which assistive technology and browser combinations require reports for the Candidate and Recommended phases</span>

May need some workshopping but this is for a bit more clarity

Comment on lines 129 to 139
<Dropdown.Menu className="drop-down-div" as={CustomMenu}>
{['Candidate', 'Recommended'].map(phase => (
<Dropdown.Item
key={phase}
className="phase-option"
onClick={() => handleInputChange('phase', phase)}
>
{phase}
</Dropdown.Item>
))}
</Dropdown.Menu>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This custom menu might be a bit much for just this as I'm not seeing a major advantage to highlighting the selected option's color. It also feels a bit out of place given this and the connected disclosures' options. This feels like a case where simplicity may be better, with a native <select>.

Copy link
Contributor Author

@stalgiag stalgiag Sep 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is another case where I agree but didn't want to deviate from the pattern that was previously used. I knew that you and Alex were pairing on the code so I didn't want to be too presumptuous about what was discardable. I assume this custom menu was being used to replicate the original mockups as closely as possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 43df566

@stalgiag stalgiag changed the title Add UI for Managing Required Reports for Phases feat: Add UI for Managing Required Reports for Phases Sep 5, 2024
@stalgiag
Copy link
Contributor Author

stalgiag commented Sep 11, 2024

I believe that all of the feedback was addressed. The PR is much better for it. Thanks for that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants