Skip to content

feat: add topic filter dropdown in course schedule and detail page#581

Merged
ahmed-arb merged 1 commit intodevelop-teakfrom
ahmed-arb/topic-filter
Dec 22, 2025
Merged

feat: add topic filter dropdown in course schedule and detail page#581
ahmed-arb merged 1 commit intodevelop-teakfrom
ahmed-arb/topic-filter

Conversation

@ahmed-arb
Copy link
Copy Markdown
Collaborator

@ahmed-arb ahmed-arb commented Dec 18, 2025

Add Topic Filter Dropdown to Course Schedule and Details Page

Summary

This PR adds a new "Topic" dropdown field to the course schedule and details page, allowing course authors to categorize courses by topic.

Changes

  • API Response Enhancement: Added topic field to course details GET response, fetched from course_block.other_course_settings
  • Settings Endpoint: Added topic_options to course settings serializer and endpoint to populate dropdown choices
  • Update Handler: Integrated topic saving in CourseDetails.update_from_json() by calling update_other_course_settings() utility function

Technical Details

  • Topic is stored in course_block.other_course_settings
  • Topic options are retrieved via get_topics() utility from the wikimedia_general app
  • All imports from custom app are lazy-loaded to prevent initialization issues

Related PRs:
openedx-wikilearn-features: wikimedia/openedx-wikilearn-features#17
frontend-app-authoring: edly-io/frontend-app-authoring#5

Ticket: #569

@ahmed-arb ahmed-arb merged commit f0ca737 into develop-teak Dec 22, 2025
11 checks passed
@ahmed-arb ahmed-arb deleted the ahmed-arb/topic-filter branch December 22, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants