Skip to content

feat: small changes to improve UI - #636

Merged
arbrandes merged 9 commits into
openedx:masterfrom
WGU-Open-edX:improve-UI
Oct 6, 2026
Merged

arbrandes merged 9 commits into
openedx:masterfrom
WGU-Open-edX:improve-UI

Conversation

@jesusbalderramawgu

Copy link
Copy Markdown
Contributor

Description

This project was recently upgraded to frontend-base, and we found out that we need to make some refactors and improve the UI, Currently is not in the best shape.

in the future this repo will need a refactor to improve the code and also to have a better UI and make it match with all the new styles.

What does this PR do?

I made a small change while we work on the refactor to make the UI a little bit better, we are using this frontend application inside the instructor dashboard so it is worth it to make this small changes.

Screnshots

Before

Screenshot 2026-09-28 at 3 06 22 p m

After

Screenshot 2026-09-28 at 3 05 58 p m

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Sep 28, 2026
@openedx-webhooks

Copy link
Copy Markdown

Thanks for the pull request, @jesusbalderramawgu!

This repository is currently maintained by @farhaanbukhsh.

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.

@jesusbalderramawgu

Copy link
Copy Markdown
Contributor Author

I'm not rendering the CCX ID anymore because it is too long and I didn't consider it was necessary but let me know your thoughts on this, maybe it was there for a reasion.
Anything please let me know!

Comment thread src/components/GradebookHeader/index.jsx
Comment thread src/components/GradesView/messages.js Outdated
Comment thread src/components/GradesView/messages.js Outdated
Comment thread src/components/GradesView/index.jsx Outdated
Comment thread src/components/GradesView/index.jsx Outdated
Comment thread src/components/GradesView/index.jsx Outdated
Comment thread src/components/GradesView/index.jsx Outdated
Comment thread src/components/GradesView/index.jsx Outdated
Comment thread src/components/GradesView/index.jsx Outdated
@codecov

codecov Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.60%. Comparing base (93f7544) to head (96158d6).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #636      +/-   ##
==========================================
- Coverage   98.60%   98.60%   -0.01%     
==========================================
  Files         112      112              
  Lines        1220     1219       -1     
  Branches      209      207       -2     
==========================================
- Hits         1203     1202       -1     
  Misses         16       16              
  Partials        1        1              

☔ View full report in Codecov by Harness.
📢 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.

@jesusbalderramawgu

Copy link
Copy Markdown
Contributor Author

@arbrandes, thank you and sorry about the imports I made a rebase and I messed up the imports, sorry for the inconveniences.

I have addressed your comments, thank you@

@arbrandes arbrandes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's fine not to have the course ID in CCX, but we need to show something in the standalone gradebook to say what course the user is in. Ideas?

Also, a few further findings inline.

Comment thread src/components/GradebookHeader/index.jsx Outdated
Comment thread src/components/GradesView/index.jsx Outdated
Comment thread src/components/GradesView/index.jsx
Comment thread src/components/GradesView/index.jsx Outdated
@jesusbalderramawgu

Copy link
Copy Markdown
Contributor Author

It's fine not to have the course ID in CCX, but we need to show something in the standalone gradebook to say what course the user is in. Ideas?

Also, a few further findings inline.

well I added the courseName

It's fine not to have the course ID in CCX, but we need to show something in the standalone gradebook to say what course the user is in. Ideas?

Also, a few further findings inline.

well I added the course name, what do you think?

Screenshot 2026-09-29 at 3 05 45 p m

@mphilbrick211 mphilbrick211 added the mao-onboarding Reviewing this will help onboard devs from an Axim mission-aligned organization (MAO). label Sep 29, 2026
Comment on lines +12 to +14
const deriveCourseName = (courseId) => (
(courseId?.split(':')[1] ?? '').split('+').slice(0, 2).join(' ')
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This isn't the course name, it's org + course number: course-v1:TestU+CS101+2024 becomes "TestU CS101". Dropping the run means every run of a course shows the same label, which is the one thing a course identifier in the header should disambiguate.

Either show the real display name (the instructor dashboard gets it from its course info API, see CourseInfoSlot), or keep it simple and render the full courseId in smaller text below the heading. Long CCX ids can wrap with text-break, as before.

Comment thread src/components/GradesView/index.jsx Outdated
Comment on lines +43 to +45
<Bubble className="mr-2">1</Bubble>
<h3 className="h4 text-primary-700 my-0">
<span>{formatMessage(messages.filterStepHeading)}</span>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: now that the Bubble is outside the h3, the inner <span> does nothing and can go. Same at 58-60. The bare <div> wrapper at 47 is also left over from the ml-3 and can be dropped.

Comment on lines 1 to 4
import PropTypes from 'prop-types';

import { useIntl } from '@openedx/frontend-base';

import { Bubble } from '@openedx/paragon';
import { useFilters } from '@src/data/filtersContext';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: restore the blank lines between import groups (third-party, @src, local). The other files in this PR, including GradebookHeader/index.jsx, keep them.

@jesusbalderramawgu

jesusbalderramawgu commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor Author

thank you @arbrandes, I brought back the courseId and followed your suggestion.
Screenshot 2026-10-05 at 11 16 24 a m

@arbrandes arbrandes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok, let's get this in! Thanks!

@arbrandes
arbrandes merged commit a9158aa into openedx:master Oct 6, 2026
6 checks passed
@openedx-semantic-release-bot

Copy link
Copy Markdown

🎉 This PR is included in version 2.0.0-alpha.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mao-onboarding Reviewing this will help onboard devs from an Axim mission-aligned organization (MAO). open-source-contribution PR author is not from Axim or 2U released on @latest

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants