Skip to content

Align the exercise side menus with the shared student workflow - #72

Merged
sonukapoor merged 1 commit into
mainfrom
fix/consistent-lesson-navigation
Nov 30, 2026
Merged

sonukapoor merged 1 commit into
mainfrom
fix/consistent-lesson-navigation

Conversation

@sonukapoor

@sonukapoor sonukapoor commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

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

  • 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.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

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.

Changes: Student lesson and navigation

Layer / File(s) Summary
Shared guided outline labels
website/scripts/guided-content.mjs, website/src/components/GuidedLesson.js, website/tests/guided-content.test.mjs, website/scripts/browser-smoke.mjs
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.
Student resource navigation
website/scripts/navigation.mjs, website/tests/navigation.test.mjs, website/scripts/browser-smoke.mjs
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.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

Suggested reviewers: vianmangal

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed [#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 Passed 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.

Share

Recent review info

Run configuration

Commits

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.

@sonukapoor
sonukapoor merged commit 707ae91 into main Nov 30, 2026
7 checks passed
@sonukapoor
sonukapoor deleted the fix/consistent-lesson-navigation branch November 30, 2026 19:04
@coderabbitai coderabbitai Bot mentioned this pull request Nov 30, 2026
2 tasks done
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.

Align the student sidebar and lesson outline across comparable exercises

1 participant