Skip to content

feat: [FC-86] Added DataTable for Course Catalog page#31

Merged
brian-smith-tcril merged 2 commits intoopenedx:masterfrom
raccoongang:Peter_Kulko/catalog-page-datatable-component
Oct 8, 2025
Merged

feat: [FC-86] Added DataTable for Course Catalog page#31
brian-smith-tcril merged 2 commits intoopenedx:masterfrom
raccoongang:Peter_Kulko/catalog-page-datatable-component

Conversation

@PKulkoRaccoonGang
Copy link
Contributor

@PKulkoRaccoonGang PKulkoRaccoonGang commented Oct 7, 2025

Important

The purpose of this PR is to introduce the necessary UI for the Course Catalog page. The filtering and search functionality will be implemented in upcoming PRs.

Description

A Paragon DataTable component has been added to the Course Catalog page to display course cards. Also added a Paragon Form.Control component that will be used for searching on this page.

Useful information

Figma design

Initial setup

  1. Clone and install the tutor-mfe plugin from the draft PR that adds support for Catalog MFE.
  2. Go to http://apps.local.openedx.io:1998/catalog/courses

How Has This Been Tested?

  1. Go to Course Catalog page (http://apps.local.openedx.io:1998/catalog/courses).
  2. When loading the page, a loader (spinner) is displayed.
  3. If there are no courses, an alert is displayed with information about this.
image
  1. Course cards are displayed inside the DataTable component (logic related to filtering courses will be provided later).
  2. The SearchField component is displayed correctly (search logic will be added later)
  3. The page is displayed correctly on mobile screens.
  4. If an error occurred while loading the page content - an error message is displayed (message taken from LearnerDashboard MFE).
image
  1. Create a new course from Studio.
  2. Check the display of the course card on the new Course Catalog page.
  3. If there is no course image, the default image is displayed.

image

  1. Through the Schedule and Details page, load the course image and check on the Course Catalog page that the image is displayed.
  2. By clicking on the course card, the New Course About page opens (http://apps.local.openedx.io:1998/catalog/courses/<course_id>/about) without full page reloading (React Router).

@PKulkoRaccoonGang PKulkoRaccoonGang self-assigned this Oct 7, 2025
@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Oct 7, 2025
@openedx-webhooks
Copy link

openedx-webhooks commented Oct 7, 2025

Thanks for the pull request, @PKulkoRaccoonGang!

This repository is currently maintained by @openedx/committers-frontend.

Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review.

🔘 Get product approval

If you haven't already, check this list to see if your contribution needs to go through the product review process.

  • If it does, you'll need to submit a product proposal for your contribution, and have it reviewed by the Product Working Group.
    • This process (including the steps you'll need to take) is documented here.
  • If it doesn't, simply proceed with the next step.
🔘 Provide context

To help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:

  • Dependencies

    This PR must be merged before / after / at the same time as ...

  • Blockers

    This PR is waiting for OEP-1234 to be accepted.

  • Timeline information

    This PR must be merged by XX date because ...

  • Partner information

    This is for a course on edx.org.

  • Supporting documentation
  • Relevant Open edX discussion forum threads
🔘 Get a green build

If one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green.

Details
Where can I find more information?

If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources:

When can I expect my changes to be merged?

Our goal is to get community contributions seen and reviewed as efficiently as possible.

However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:

  • The size and impact of the changes that it introduces
  • The need for product review
  • Maintenance status of the parent repository

💡 As a result it may take up to several weeks or months to complete a review and merge your PR.

@codecov
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.24%. Comparing base (3d12ca1) to head (39b04a2).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #31      +/-   ##
==========================================
+ Coverage   96.96%   97.24%   +0.28%     
==========================================
  Files          46       47       +1     
  Lines         362      363       +1     
  Branches       59       58       -1     
==========================================
+ Hits          351      353       +2     
+ Misses         11       10       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@PKulkoRaccoonGang PKulkoRaccoonGang force-pushed the Peter_Kulko/catalog-page-datatable-component branch 2 times, most recently from 125361a to a74f6f7 Compare October 7, 2025 17:11
@PKulkoRaccoonGang PKulkoRaccoonGang force-pushed the Peter_Kulko/catalog-page-datatable-component branch from a74f6f7 to 39b04a2 Compare October 7, 2025 17:14
})}
<Container className="container-xl pt-5.5 mb-6">
<SubHeader
title={intl.formatMessage(messages.exploreCourses)}
Copy link
Contributor Author

@PKulkoRaccoonGang PKulkoRaccoonGang Oct 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[inform]: Changing the title according to search parameters (legacy functionality) will be added in PRs.

itemCount={totalCourses}
initialState={{ pageSize: DEFAULT_PAGE_SIZE, pageIndex: DEFAULT_PAGE_INDEX }}
data={transformResultsForTable(courseData!.results)}
columns={[
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[inform]: The filtering logic for the DataTable will be added in upcoming PRs. For now, we’re focusing solely on building the UI.

@PKulkoRaccoonGang PKulkoRaccoonGang changed the title feat: added DataTable for Catalog page feat: [FC-86] Added DataTable for Course Catalog page Oct 7, 2025
@PKulkoRaccoonGang PKulkoRaccoonGang marked this pull request as ready for review October 7, 2025 17:38
Copy link
Contributor

@brian-smith-tcril brian-smith-tcril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks great!

I left a couple comments with some small questions but this is super close to ready to merge!

Copy link
Contributor

@brian-smith-tcril brian-smith-tcril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!

Thank you so much for the detailed answers to my questions!

@brian-smith-tcril brian-smith-tcril merged commit 5356743 into openedx:master Oct 8, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from Needs Triage to Done in Contributions Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

open-source-contribution PR author is not from Axim or 2U

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants