Course side panel navigation component
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
Create the course side panel navigation component that displays the unit header, lessons list with locked states, and resources within the active lesson. This component is passed to ResourceLayout's sidePanel slot.
Complexity: Medium
Context
Gets passed to ResourceLayout's sidePanel slot by CourseUnitView. May have subcomponents for lesson items, resource items.
Goal: Create an understandable and testable set of components. Implementation approach (pure props/events vs provide/inject) left to implementer's judgment.
The Change
New side panel navigation component(s):
Display:
- Unit title as header
- List of lessons (expandable/collapsible)
- Resources within expanded lesson
- Current lesson expanded by default
- Current resource highlighted
- Pre/post test items in the unit list alongside lessons
Behavior:
- Currently active resource is not clickable
- Disabled/locked lessons are not clickable
- Clicking an enabled lesson expands or collapses it
- Clicking an enabled resource causes navigation to that resource
States:
- Lesson: enabled, locked (not yet available due to sequential completion)
- Resource: enabled, active (currently viewing)
- Test: completed (submitted, shows "Completed" label, disabled), not active (displayed but disabled), not yet available (displayed but disabled)
- After pre-test completion, current unit's lesson resources become visible but remain locked until each preceding resource is completed
Design Spec
Out of Scope
- Displaying resources in the main content area (follow-up task: ContentViewer integration)
- Resume/redirect logic when navigating (follow-up task)
- Practice quiz side panel takeover (follow-up task)
Acceptance Criteria
- [ ] Component displays unit title as header
- [ ] Component displays list of lessons with locked/enabled states
- [ ] Current lesson expanded by default, showing resources
- [ ] Clicking enabled lesson expands/collapses it
- [ ] Locked lessons are not clickable
- [ ] Clicking enabled resource causes navigation
- [ ] Currently active resource is not clickable and visually highlighted
- [ ] Component integrates with CourseUnitView via ResourceLayout's
sidePanelslot - [ ] Pre/post test items appear in the side panel unit list alongside lessons
- [ ] Completed tests display a "Completed" label and are disabled
- [ ] Tests that are not currently active are displayed but disabled
- [ ] Post-tests that are not yet available are displayed but disabled
- [ ] After pre-test completion, current unit's lesson resources become visible but locked until preceding resources are completed
- [ ] Disabled test items use appropriate disabled states for accessibility
Testing
- Unit tests for side panel navigation component(s)
🤖 This issue was written with AI assistance, under supervision, review and final edits by [@rtibbles] 🤖
@MisRob , can i work in this issue, i have setted up the environment in my system from past 1-2 months and have well understood the project, but didn't assigned any issue yet
Hi! 👋
Thanks so much for your interest! This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues. If there are no unassigned 'help wanted' issues available, please wait until new ones are added.
We really appreciate your willingness to help. 😊
Are you preparing for Google Summer of Code? See our GSoC guidelines.
Hii @curiouscoder-cmd, Thanks for showing interest but right now this is not open to contributors(❌ This issue is not open for contribution. ), you can checkout 'Help Wanted and unassigned' issues.
Fixed in #14145