-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(console): assessment results generation (#744)
* feat(console): assessment-results updates * feat(console): assessment-results tables * feat(console): assessment-results detail * feat(console): added observation details, refactor * feat(console): summary, table keys * feat(console): validations detail * fix: minor cleanups * feat(console): add validation detail, reorg, tests * fix: yaml dep * fix: testdata * feat(console): add support for multiple input files * fix: test updates * fix: doc updates * fix: updated organization, small bugs * fix: assessment updates * feat(console): initial work on adding validate workflow * feat(console): validate model * feat(console): update validate model+validation workflow * fix: minor cleanups * feat(console): assessment results with compare * feat(console): compare updates, tests * fix: testdata * fix: file save workflow * fix: duplicate observations during compare * fix: updated tests for consistency * feat(console): view updates, small fixes * feat(console): event cleanup, tests * feat(console): validation execution * feat(console): docs * fix: assessment testdata update * feat(console): event cleanup, tests, docs * fix: testdata * docs: cli docs * docs: cleanup * fix: handle race cond? * fix: small mods in component * fix: golangci-lint errs * fix: styles consts * fix: detail scale issues * fix: spacing, testdata * docs: clarity around write
- Loading branch information
1 parent
fedb0c9
commit 6cb5933
Showing
57 changed files
with
3,209 additions
and
865 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Output images/assessment-results-console-compare.gif | ||
|
||
Require lula | ||
Set FontSize 14 | ||
Set Width 1850 | ||
Set Height 925 | ||
Set Framerate 24 | ||
Set Padding 5 | ||
|
||
Hide | ||
Type "lula console -f ./src/test/unit/common/oscal/valid-assessment-results-multi.yaml" Enter | ||
Sleep 1s | ||
Tab | ||
Sleep 500ms | ||
Show | ||
|
||
# Select comparison result | ||
Sleep 1s | ||
Right | ||
Sleep 500ms | ||
Right | ||
Sleep 500ms | ||
Enter | ||
Sleep 1s | ||
Down | ||
Sleep 500ms | ||
Enter | ||
Sleep 500ms | ||
|
||
# Navigate to findings, observations | ||
Right | ||
Sleep 500ms | ||
Right | ||
Sleep 500ms | ||
Down | ||
Sleep 500ms | ||
Up | ||
Sleep 500ms | ||
Left | ||
Sleep 1s | ||
|
||
# Show findings comparison detail | ||
Type "d" | ||
Sleep 2s | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Output images/assessment-results-console.gif | ||
|
||
Require lula | ||
Set FontSize 14 | ||
Set Width 1850 | ||
Set Height 925 | ||
Set Framerate 24 | ||
Set Padding 5 | ||
|
||
Hide | ||
Type "lula console -f ./src/test/unit/common/oscal/valid-assessment-results-multi.yaml" Enter | ||
Sleep 1s | ||
Tab | ||
Sleep 500ms | ||
Show | ||
|
||
# Show results picker | ||
Sleep 1s | ||
Right | ||
Sleep 500ms | ||
Enter | ||
Sleep 1s | ||
Down | ||
Sleep 500ms | ||
Enter | ||
Sleep 500ms | ||
|
||
# Navigate to findings, filter | ||
Right | ||
Sleep 500ms | ||
Right | ||
Sleep 500ms | ||
Down | ||
Sleep 500ms | ||
Up | ||
Sleep 500ms | ||
Type "/" | ||
Sleep 500ms | ||
Type "ID-1" | ||
Sleep 500ms | ||
Enter | ||
Sleep 1s | ||
|
||
# Navigate to observations | ||
Right | ||
Sleep 500ms | ||
Type "d" | ||
Sleep 2s | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Output images/component-defn-console-validate.gif | ||
|
||
Require lula | ||
Set FontSize 14 | ||
Set Width 1850 | ||
Set Height 925 | ||
Set Framerate 24 | ||
Set Padding 5 | ||
|
||
Hide | ||
Type "lula console -f ./src/test/unit/common/oscal/valid-multi-component-validations.yaml -a tmp.yaml" Enter | ||
Sleep 1s | ||
Show | ||
|
||
# Select the framework | ||
Sleep 500ms | ||
Right | ||
Sleep 500ms | ||
Right | ||
Sleep 500ms | ||
Enter | ||
Sleep 500ms | ||
Down | ||
Sleep 500ms | ||
Down | ||
Sleep 500ms | ||
Enter | ||
Sleep 1s | ||
|
||
# Run Validate | ||
Ctrl+v | ||
Sleep 2s | ||
Enter | ||
Sleep 6s | ||
|
||
Hide | ||
Ctrl+c | ||
Sleep 50ms | ||
Enter | ||
Sleep 50ms | ||
Type "rm tmp.yaml" Enter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Output images/component-defn-console-validation-detail.gif | ||
|
||
Require lula | ||
Set FontSize 14 | ||
Set Width 1850 | ||
Set Height 925 | ||
Set Framerate 24 | ||
Set Padding 5 | ||
|
||
Hide | ||
Type "lula console -f ./src/test/unit/common/oscal/valid-multi-component-validations.yaml" Enter | ||
Sleep 1s | ||
Show | ||
|
||
# Navigate to a control and select | ||
Right | ||
Sleep 500ms | ||
Right | ||
Sleep 500ms | ||
Right | ||
Sleep 500ms | ||
Enter | ||
Sleep 1s | ||
Right | ||
Sleep 500ms | ||
Right | ||
Sleep 500ms | ||
Right | ||
Sleep 500ms | ||
Type "d" | ||
Sleep 1s | ||
Down | ||
Sleep 500ms | ||
Down | ||
Sleep 1s | ||
Up | ||
Sleep 500ms | ||
Up | ||
Sleep 1s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Assessment Results | ||
|
||
The Assessment Result view provides the Console user with an interactive experience of the OSCAL Assessment Results model. The view supports navigation between the different results contained in the Assessment Results model, as well as the ability to view Findings and Observations in tabular and filterable formats. Additional `detail` views are available to view the raw OSCAL model data for selected Findings/Observations. | ||
|
||
## Usage | ||
|
||
The Assessment Results model supports the following views: | ||
* [Result View](./assessment-results.md#result-view) | ||
* [Result Comparison View](./assessment-results.md#result-comparison-view) | ||
|
||
## Keys | ||
|
||
The Assessment Results model responds to the following keys for navigation and interaction (some widgets have additional key response, see respective help views for more information): | ||
|
||
| Key | Description | | ||
|-----|-------------| | ||
| `?` | Toggle help | | ||
| `ctrl+c` | Quit | | ||
| `tab` | Tab right between models | | ||
| `shift+tab` | Tab left between models | | ||
| `←`/`h` | Navigate left across widgets in model| | ||
| `→`/`l` | Navigate right across widgets model | | ||
| `↑`/`k` | Move up in table OR scroll up in panel | | ||
| `↓`/`j` | Move down in table OR scroll up in panel | | ||
| `/` | Filter table | | ||
| `↳` | Select available item | | ||
| `d` | Detail available item (findings and observations) | | ||
| `esc` | Close OR esc filtering | | ||
|
||
During console viewing, the top-right corner will display the help keys availble in the context of the selected widget. When an overlay is open, the help keys will be displayed in the overlay. | ||
|
||
## Views | ||
|
||
### Result View | ||
|
||
<img align="right" src="../../images/assessment-results-console.gif" alt="assessment results console" style="width:100%; height:auto;"> | ||
<div style="clear: both;"></div> | ||
|
||
### Result Comparison View | ||
|
||
<img align="right" src="../../images/assessment-results-console-compare.gif" alt="assessment results console comparison" style="width:100%; height:auto;"> | ||
<div style="clear: both;"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.