-
Notifications
You must be signed in to change notification settings - Fork 152
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
feat(nav-bar-functionality): Store expanded nav state in AssessmentStore and toggle nav link expansion state #2768
Conversation
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
@@ -70,6 +70,7 @@ export interface TestStepResult { | |||
export interface AssessmentNavState { | |||
selectedTestSubview: RequirementName | GettingStarted; | |||
selectedTestType: VisualizationType; | |||
expandedTestType?: VisualizationType; |
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.
Why is this optional?
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 can be null or undefined if nothing is currently expanded
Description of changes
When the test's heading nav link is clicked, store that test as the currently expanded test in AssessmentStore and toggle the expanded state of the nav link. All links will start as collapsed by default.
Styling to highlight the expanded portion of the nav will be added in a later PR.
Pull request checklist
yarn fastpass
yarn test
)<rootDir>/test-results/unit/coverage
fix:
,chore:
,feat(feature-name):
,refactor:
). SeeCONTRIBUTING.md
.