-
Notifications
You must be signed in to change notification settings - Fork 11
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
Display Parties Contact Information #576
Conversation
12ac3ed
to
156d45c
Compare
Looks like you got a good start to this issue! I think I like the idea of using Also, I think we should still display the secondary information, which I believe was the role title, we had previously underneath the party name at all times, while the additional metadata appears after selecting the |
For consistency in the UI, I'd rather not hide sections. I think having "This contact has no phone numbers" or whatever (with better wording) would be good. And I think if there aren't any contact details, then we just don't provide the button. See https://material.io/design/communication/empty-states.html. I am not sure if MUI provides helpers for this; however, it's still something we can work on building. |
This makes further customizations to a metadata party a lot easier to deal with.
5cc874b
to
8dfc4f1
Compare
Rather than having the parent components of OSCALMetadata test functionality, the tests have been rewritten to be more clear on exactly what is being tested.
8dfc4f1
to
20d1f17
Compare
89e323e
to
a2cde86
Compare
42f6174
to
0cb9ca7
Compare
0cb9ca7
to
092ae5b
Compare
I am not sure how great it looks. |
Co-authored-by: Bradley Fellstrom <35196021+Bronstrom@users.noreply.github.com>
1f5b783
to
dac2b42
Compare
2156fcc
to
00325da
Compare
Co-authored-by: Kyle Laker <klaker@easydynamics.com>
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 looks really good and is so cool! At some point, we should support location-uuid
s (or whatever that field is called) but I think that can be in another ticket (can you work on writing one up).
Thank you!!!
All requested changes were specific, not structural. Dismissing to allow future approvals to advance the PR.
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.
Like the choices that were made to the structure and the Contact Dialog box looks pretty slick!
This adds tests for EasyDynamics/oscal-react-library#576
This adds tests for EasyDynamics/oscal-react-library#576
This adds a
Contact
dialog box to metadata parties. When clicked, it opens a dialog displaying all the parties contact information. This also rewrites the tests a bit to no longer have parent components ofOSCALMetadata
test functionality.Testing file
https://raw.githubusercontent.com/EasyDynamics/oscal-demo-content/f03073fddf33b0d65d3d0e84a7ad76c74e7be6c9/system-security-plans/ssp-example.json gives a good example of party contact info to view
Reviewing / Things to look for
This pr seems a bit more complex than it actually is upon further investigation. Here is a list of what changes have been made for reviewing.
OSCALMetadata
has new sub components being used to display part contact information.npm run build-storybook && npm run storybook
will let you view it locally.closes #405