-
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 SSP Users/Personas & Inventory Items #590
Conversation
262a707
to
e412fed
Compare
|
||
export default function testOSCALSystemImplementation( |
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.
In an effort to not continue adding to our less than optimal tests, I decided to go ahead and replace this with a Describe
. It still tests the same thing, but in a more clear way.
d3cdfd1
to
7f70e89
Compare
Co-authored-by: Bradley Fellstrom <bfellstrom@easydynamics.com>
To reduce tech debt, users, components, and inventory items have been split into their own classes to be used in both the OSCAL Assessment and Implementation Layers.
I have refactored Let me know what you all think about naming these new classes prefixed with "OSCALAssessmentImplementation…". I'm not sure how much I like the name being so long, but these classes will be used in both OSCAL layers. |
I think that using |
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 have lots of new components so we need lots of new .story.js
files
const OSCALSystemImplementationTableTitle = styled(Typography)` | ||
flex: 1 1 100%; | ||
padding-top: 1em; | ||
padding-bottom: 1em; | ||
`; | ||
|
||
const StyledHeaderTableCell = styled(TableCell)(({ theme }) => ({ | ||
[`&.${tableCellClasses.head}`]: { | ||
backgroundColor: theme.palette.primary.main, | ||
color: theme.palette.common.white, | ||
}, | ||
textAlign: "left", | ||
minWidth: "10em", | ||
})); | ||
|
||
const StyledTableRow = styled(TableRow)(({ theme }) => ({ | ||
// Use hover color for even numbered rows | ||
"&:nth-of-type(even)": { | ||
backgroundColor: theme.palette.action.hover, | ||
}, | ||
})); | ||
|
||
const OSCALPropertiesSubDataHeader = styled(TableCell)` | ||
text-transform: capitalize; | ||
white-space: nowrap; | ||
padding: 0.75em 0.75em; | ||
`; |
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 seems like some of these are pretty consistent across the newly added files; can we extract these to another OSCALSystemImplementationTableStyles.js
file or something?
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.
Small refactorings for consistency and performance. The one on component
lookups is fully untested
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 is awesome! Thanks, @Bronstrom!
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 can't actually hit approve. But I do approve of the reworks @Bronstrom made
This adds a new
Users
table andInventory Items
table to theSystem Implementation
section of a System Security plan. These are fairly similar to theComponents
table, so some of the repeated functionality was extracted to functions.The
Users
table serves as a way to view data as described by the Users spec of a System Security Plan.To understand the managed inventory instances of the system, this
Inventory Items
table displays data as described here Inventory Items of a System Security Plan.Markdown support inside the
ToolTip
will be part of a future issue.Testing
Use https://raw.githubusercontent.com/EasyDynamics/oscal-demo-content/fc199b650389d749c2a87754f578101741bb6b12/system-security-plans/ssp-example.json to view a more flushed out example of users.
closes #404
Closes #224