You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Align the exercise side menus with the shared student workflow - #72
The student sidebar now starts with Submission and Student worksheet in every exercise. Every lab with a safety document labels it Safety. The lookup activities, package-manager tracks and instructor resources retain their destinations.
Exercise 12, Exercise 1 and the other labs with the same seven actions use matching labels in the numbered outline. The lesson pane keeps the specific instructions for the selected action. For example, Observe the result opens Compare scan reports in Exercise 12.
Verification
Reproduced both differences on the published site. The new navigation tests failed before the fix and passed afterward. All 313 website and tooling tests passed.
Passed the exercise validator, production website build, rendered SEO checks and all 24 published download-link checks.
Compared the outlines of Exercises 1, 11 and 12 in Chrome, checked the expanded desktop and mobile resource menus, followed the mobile Safety link, and entered the Exercise 12 practice with the keyboard. Checked the 320-pixel layout. Desktop · Mobile
Checklist
Linked the issue and reviewed CONTRIBUTING.md.
Verified student navigation and existing instructor navigation tests.
Recorded browser and regression checks.
Summary by CodeRabbit
Improvements
Lesson outlines now use consistent stage labels across guided exercises.
Student navigation prioritizes submission templates and worksheets, and labels safety resources “Safety.”
The mobile Safety link is verified to be visible, clickable, and open the Safety page.
Tests
Added checks for lesson outline labels, resource ordering, and desktop and mobile navigation.
No actionable comments were generated in the recent review.
Walkthrough
The changes align guided-stage labels and student resource navigation across comparable exercises. Lesson construction assigns shared outline labels, the outline displays them, and navigation orders student resources. Tests and browser smoke checks cover the lesson outlines and desktop and mobile menus.
Shared labels are assigned to mapped stages and used for non-lookup outline entries. Tests check the labels for seven lessons. The browser smoke test compares outlines in exercises 11 and 12 with exercise 01.
Safety resources receive the title “Safety.” Submission templates and worksheets appear before other guides. Tests check resource order and titles. Browser smoke checks resource labels in desktop and mobile menus and verifies that the mobile Safety link opens the Safety page.
Merge Risk: Minimal · up to 588e1 · assessed changes only
Path filters excluded changed files. This rating applies only to the assessed changes.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title states the main change: the exercise side menus are aligned with the shared student workflow. The summary confirms that every exercise now starts with Submission and Student worksheet, Safet…
Description check
The description follows the template. It links the issue (Closes #71), and it has a Summary that explains the changes, the affected exercises (1, 11, 12 and other labs with the same seven actions), an…
Linked Issues check
[#71] Requirement 1: Consistent labels and ordering for common sidebar resources. In website/scripts/navigation.mjs, studentCategories now places available submission templates and worksheets first, t…
Out of Scope Changes check
All changed code maps to #71. The changes are in navigation ordering and labels, shared stage outline labels, the outline renderer, and tests for those behaviors. The browser smoke test extension veri…
Full details: Title check
Explanation
The title states the main change: the exercise side menus are aligned with the shared student workflow. The summary confirms that every exercise now starts with Submission and Student worksheet, Safety labels are applied, and outline labels match across exercises. The title is concise and specific enough for a teammate scanning history.
Full details: Description check
Explanation
The description follows the template. It links the issue (Closes #71), and it has a Summary that explains the changes, the affected exercises (1, 11, 12 and other labs with the same seven actions), and what stays unchanged. The Verification section lists the test results, the browser checks, and the screenshots. The checklist is filled in. The template asks for limitations and for instructor-material review, and the description does not address either. The checklist also omits the lesson-change and accessibility items. These gaps are minor, so the description is mostly complete.
Full details: Linked Issues check
Explanation
[#71] Requirement 1: Consistent labels and ordering for common sidebar resources. In website/scripts/navigation.mjs, studentCategories now places available submission templates and worksheets first, then guides. Track README items follow the guides. studentResourceTitle labels /safety.md files as "Safety". The new test in website/tests/navigation.test.mjs asserts this ordering and title.
[#71] Requirement 2: Consistent labels for equivalent guided actions. In website/scripts/guided-content.mjs, stage IDs scan, observe, investigate, understand, repair and verify receive a shared outlineLabel. GuidedLesson.js uses item.outlineLabel for stages without a lookup part. Lookup stages keep their title-prefix cleanup. The new test in website/tests/guided-content.test.mjs checks that seven lessons expose matching outline labels in the expected order. The CVE lookup lesson keeps its stage without an outlineLabel. This addresses the Exercise 12 labels named in the issue.
[#71] Requirement 3: Preserve lesson-specific instructions, destinations, optional activities and instructor resources. The PR description and objectives state these are kept. The diff sets labels only and does not change lesson body content or destinations. The PR states that lookup, package-manager and instructor destinations are retained.
[#71] Requirement 4: Check rendered desktop and mobile menus. The browser smoke test in website/scripts/browser-smoke.mjs now checks Exercise 12 labels in the desktop sidebar and mobile navigation, captures menu screenshots and verifies the mobile Safety link. The PR reports manual Chrome checks at 320 pixels. The screenshots are excluded files, so the visual result is not independently verified.
No coding requirement is unmet on the available evidence. The exact seventh action label used in the Exercise 12 outline is not visible in the summary. The outlineLabel map lists six stage IDs. The test covers seven lessons, so the seventh label is covered by existing title logic.
Full details: Out of Scope Changes check
Explanation
All changed code maps to #71. The changes are in navigation ordering and labels, shared stage outline labels, the outline renderer, and tests for those behaviors. The browser smoke test extension verifies rendered menus, which #71 asks for. The two PNG screenshots are referenced by the PR description. They are excluded from review, so their content was not inspected. No change alters lesson content, destinations, optional activities or instructor resources. No unrelated change is evident in the summary.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Reviewing files that changed from the base of the PR and between 0b17ad1 and 588e1b4.
Files ignored due to path filters: 2
assets/scan-report-practice/desktop.png is excluded by !**/*.png
assets/scan-report-practice/resource-menu-mobile.png is excluded by !**/*.png
Files selected for processing: 6
website/scripts/browser-smoke.mjs
website/scripts/guided-content.mjs
website/scripts/navigation.mjs
website/src/components/GuidedLesson.js
website/tests/guided-content.test.mjs
website/tests/navigation.test.mjs
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked issue
Closes #71.
Summary
The student sidebar now starts with Submission and Student worksheet in every exercise. Every lab with a safety document labels it Safety. The lookup activities, package-manager tracks and instructor resources retain their destinations.
Exercise 12, Exercise 1 and the other labs with the same seven actions use matching labels in the numbered outline. The lesson pane keeps the specific instructions for the selected action. For example, Observe the result opens Compare scan reports in Exercise 12.
Verification
Checklist
Summary by CodeRabbit