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

EGRC-406: Display of Control Parameter Constraints in Profiles #65

Merged
merged 9 commits into from
Jun 28, 2021

Conversation

rgauss
Copy link
Contributor

@rgauss rgauss commented Jun 28, 2021

  • Pulled prose handling into its own component
  • Changed to approach of split by regex to build display segments that include constraints display
  • Changed StyledTooltip to use withStyles to support additional parameters like arrow

You can see the resulting dot badge and tooltip on hover by navigating to the Profile Viewer and viewing one of the FedRAMP profiles:

Screen_Shot_2021-06-28_at_11_10_31_AM

src/OSCALControlProse.js Outdated Show resolved Hide resolved
src/OSCALControlProse.js Outdated Show resolved Hide resolved
src/OSCALControlProse.js Outdated Show resolved Hide resolved
Copy link
Contributor

@tuckerzp tuckerzp left a comment

Choose a reason for hiding this comment

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

I found a few minor things we could potentially tweak to clean up code a bit, but otherwise everything makes sense and works!

index.toString()
);
})}
{props.modificationDisplay}
Copy link
Contributor

Choose a reason for hiding this comment

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

Something to clean up in the future - Since this is its own component now, we probably don't need to pass in modificationDisplay, which is also its own discrete component. Might be cleaner to display them both from within ControlPart.

@zclarkEDC
Copy link
Member

Reviewing now.

Copy link
Member

@zclarkEDC zclarkEDC left a comment

Choose a reason for hiding this comment

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

All the implemented features work. However, I got a bug when running locally on Chrome: sometimes it will take upwards of ~15 seconds to reload the page when using the reload button and FedRamp profile.

@tuckerzp tuckerzp merged commit 6722362 into develop Jun 28, 2021
@tuckerzp tuckerzp deleted the EGRC-406 branch June 28, 2021 18:54
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.

None yet

4 participants