The course bar selects no tab in courseware
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Start with CourseTabsNavigation and findActiveTab in frontend-base, then compare their URL matching with the Learning routes and the activeTabSlug behavior described in the issue. The issue leaves open how pages should identify their tab, so first resolve that design question with maintainers. Done when courseware pages, including course exit, consistently select the intended Course tab.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The course bar selects no tab in courseware. On Learning's master, the Course tab is selected there.
Found while porting Learning's courseware container to frontend-base (openedx/frontend-app-learning#2195, part of openedx/frontend-app-learning#1905). Related to #332.
[!NOTE]
The details below were generated by Claude (Claude Code) and reviewed before posting.
Claude Plan
How the course bar picks the selected tab
CourseTabsNavigationmarks as active the tab thatfindActiveTab(resolvedTabs, location.pathname)returns.findActiveTab"Returns the tab whose URL pathname is the longest prefix match againstpathname, or null if none match."- The tabs and their URLs come from the
course_metadataresponse. The Course tab (CoursewareTab, typecourseware) links todefault_course_url, which by default isget_learning_mfe_home_url(course_key, url_fragment='home'): Learning's course home,…/learning/course/<course>/home. - Learning's courseware pages are at
…/learning/course/<course>,…/<sequence>and…/<sequence>/<unit>, with the same under…/learning/preview/course/<course>, and its course exit page is at…/learning/course/<course>/course-end(routes.tsxon Learning'sfrontend-basebranch). None of those addresses is under a tab's URL, sofindActiveTabreturns null and no tab is marked.
What Learning does on master
- Each page names its tab. The courseware container renders its tab page with
activeTabSlug="courseware", and so does the course exit page. isActiveTabmarks the tab whose id equals that slug. The Course tab's id is its type,courseware(xmodule/tabs.py:tab_dict.get('tab_id', getattr(self, 'tab_id', self.type))), so the Course tab is selected on every courseware page. The course home passesoutline, which the same function maps to the Course tab: "Users see one "Course" tab."
How it was seen
- 2026-11-18, on the branch that ports Learning's courseware container (openedx/frontend-app-learning#2195), against Tutor dev: on a unit's page the course bar showed no tab as selected. On the course home, the same course bar shows the Course tab as selected.
- It is the first Learning page on frontend-base whose address is under none of the tabs' URLs; until that port the courseware routes rendered a placeholder.
Questions
- Which tab, if any, should the course bar mark on a course page whose address is under no tab's URL?
- What tells the course bar which tab a page belongs to: the tabs' URLs, something the page's app declares, or the tab data?
- Ngôn ngữ chính
- TypeScript
- Star
- 4
- Fork
- 13
- Merge trung bình
- 3 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của openedx/frontend-base
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
openedx/frontend-base#357 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
openedx/frontend-base#355 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Export `SkipLink` componentĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
openedx/frontend-base#330 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
openedx/frontend-base#327 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
openedx/frontend-base#210 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của openedx/frontend-base
Issue tương tự
-
type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
db-ux-design-system/core-web#8856 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
'!' breaking change is lost when the commit also has an empty BREAKING CHANGE footerCó thể đã có người làm @wittdennis đã nhận hôm nay. Đang mởpriority: p3 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
googleapis/release-please#2971 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 87/100
Maintainer thường phản hồi trong vòng 1 ngày
-
🛠️ dette technique
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 61/100
betagouv/mon-entreprise#4752 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày