-
Notifications
You must be signed in to change notification settings - Fork 18
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
#2351: Org requests page - [RJM] #2720
Conversation
Not needed in this PR
<th data-sortable="last_submitted_date" scope="col" role="columnheader">Submitted</th> | ||
{% if portfolio %} | ||
<th data-sortable="creator" scope="col" role="columnheader">Created by</th> | ||
{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rachidatecs / @dave-kennedy-ecs do we need a test for this? I'm leaning toward no
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice
🥳 Successfully deployed to developer sandbox rjm. |
🥳 Successfully deployed to developer sandbox rjm. |
🥳 Successfully deployed to developer sandbox rjm. |
🥳 Successfully deployed to developer sandbox rjm. |
🥳 Successfully deployed to developer sandbox rjm. |
request.user = self | ||
has_organization_members_flag = flag_is_active(request, "organization_members") | ||
if not has_organization_members_flag: | ||
if not self.has_organization_members_flag(): | ||
return False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great that the checking for flag are moved into a method! :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I second this :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of my comments are truly on the minutia. Overall solid work!
src/registrar/assets/js/get-gov.js
Outdated
@@ -1817,6 +1884,36 @@ document.addEventListener('DOMContentLoaded', function() { | |||
}); | |||
} | |||
|
|||
function closeMoreActionMenu(accordionIsOpen) { | |||
if (accordionIsOpen.getAttribute("aria-expanded") === "true") { | |||
accordionIsOpen.click(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: "accordionIsOpen" looks like a boolean var...but it's clickable so clearly this is referring to an actual DOM element. Might want to rename to reflect its true identity. (eg. "openAccordionButton"? Like what you have later on?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about accordionThatIsOpen
? Since it grabs an open accordion element
cc: @rachidatecs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll tackle renaming in the next ticket (search)
} | ||
} | ||
|
||
document.addEventListener('focusin', function(event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(non-blocking comment)--I'm surprised this isn't already built into the controls....are we over-customizing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just making a guess but I think its due to how the default accordion works. I know this work was done before -- @rachidatecs did you have to do some heavy customization of this element to get it to behave this way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct
Co-authored-by: CuriousX <nicolle.leclair@gmail.com>
🥳 Successfully deployed to developer sandbox rjm. |
Co-authored-by: CuriousX <nicolle.leclair@gmail.com>
Co-authored-by: CuriousX <nicolle.leclair@gmail.com>
🥳 Successfully deployed to developer sandbox rjm. |
1 similar comment
🥳 Successfully deployed to developer sandbox rjm. |
…e.get.gov into rjm/2351-org-requests-page
🥳 Successfully deployed to developer sandbox rjm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM so far. I'll let Rachid/Dave make final comments on the pieces they have been tagged in
} | ||
.visible-mobile-flex { | ||
display: none!important; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thanks for the context
🥳 Successfully deployed to developer sandbox rjm. |
@asaki222 This is expected! You should see the edit button with |
I verified this behavior. Approving! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LGTM! |
🥳 Successfully deployed to developer sandbox rjm. |
Ticket
Resolves #2351
Joint ticket between @dave-kennedy-ecs / @rachidatecs / @zandercymatics
Changes
Context for reviewers
In a nutshell, this PR adds a domain request page that is similar to the domain page on portfolios.
As part of it, we will eventually need to add readonly versions of domain requests for members that do not have permissions to edit created requests. However, that will be addressed in a follow-on ticket. For now, clicking view on any request that you do not currently manage will return an error.
Like the domains page, the domain request table will return all domain requests within said portfolio. If you have the
EDIT_REQUESTS
permission, you can: 1) create new domain requests, 2) manage your created domain requests. You cannot modify requests that were not created by your user.If you only have the
VIEW_ALL_REQUESTS
permission, you should not see the start a new domain request button - and all manage links should change toview
.Likewise, if you are missing both of those requests - you will be presented with a no access page like the one we have for domains.
Important: This PR also partially resolves a session bug wherein the session would not updated when the underlying portfolio was updated. This will be refined further, but this is something to note.
Setup
You will need:
organization_feature
,organization_requests
EDIT_REQUESTS
(CalledCreate and edit requests
in /admin) andVIEW_ALL_REQUESTS
(CalledView all requests
in /admin)You will need to test:
EDIT_REQUESTS
EDIT_REQUESTS
andVIEW_ALL_REQUESTS
Code Review Verification Steps
As the original developer, I have
Satisfied acceptance criteria and met development standards
Ensured code standards are met (Original Developer)
Validated user-facing changes (if applicable)
As a code reviewer, I have
Reviewed, tested, and left feedback about the changes
Ensured code standards are met (Code reviewer)
Validated user-facing changes as a developer
New pages have been added to .pa11yci file so that they will be tested with our automated accessibility testing
Checked keyboard navigability
Meets all designs and user flows provided by design/product
Tested general usability, landmarks, page header structure, and links with a screen reader (such as Voiceover or ANDI)
Tested with multiple browsers, the suggestion is to use ones that the developer didn't (check off which ones were used)
(Rarely needed) Tested as both an analyst and applicant user
Note: Multiple code reviewers can share the checklists above, a second reviewers should not make a duplicate checklist
As a designer reviewer, I have
Verified that the changes match the design intention
Validated user-facing changes as a designer
Checked keyboard navigability
Tested general usability, landmarks, page header structure, and links with a screen reader (such as Voiceover or ANDI)
Tested with multiple browsers (check off which ones were used)
(Rarely needed) Tested as both an analyst and applicant user
Screenshots