Skip to content

Conversation

bydawen
Copy link
Contributor

@bydawen bydawen commented Aug 21, 2025

Description

There is an issue, if open discussions in the sidebar when in course. And then choose dropdown with the actions, then report or delete, in the appeared modal focus on buttons will be overlaped on each other:

Screenshot 2025-07-28 at 12 03 48

This fix add some gap, to prevent this style issue.

Additional information

Additionally fixed styles for the comment text in the reply/post sections, currently it has wrong classes for the text-color:

Screenshot 2025-08-04 at 11 34 26

For now text in there has text-primary-500 which may have incorrect perception as it will look like the main color of the platform instead of regular text color and not being an active element.

Testing Instructions

  1. Go to the course unit
  2. Open discussions sidebar
  3. Hover on post and choose in the dropdown menu "Report" or "Delete" post
  4. Focus "Cancel" button
Screenshot 2025-07-28 at 12 08 05
  1. Check post comment text (now it has regular text-color instead of primary variant
  2. Check post author name (now it has correct white color)
Screenshot 2025-08-04 at 11 43 08

Changelog

  • Added gap between buttons in the modal-footer sections.
  • Replaced text-primary-* color clases to regular text-gray-* on text elements in the post sections.

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Aug 21, 2025
@openedx-webhooks
Copy link

Thanks for the pull request, @bydawen!

This repository is currently maintained by @openedx/edx-infinity.

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.


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.

Copy link

codecov bot commented Aug 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.36%. Comparing base (3e1c953) to head (6cde837).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #805      +/-   ##
==========================================
- Coverage   94.36%   94.36%   -0.01%     
==========================================
  Files         167      167              
  Lines        3691     3690       -1     
  Branches      991      995       +4     
==========================================
- Hits         3483     3482       -1     
  Misses        193      193              
  Partials       15       15              

☔ 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.

@mphilbrick211 mphilbrick211 moved this from Needs Triage to Ready for Review in Contributions Aug 27, 2025
@ihor-romaniuk ihor-romaniuk force-pushed the fix/discussions-sidebar-frame-buttons-gap branch from 817ba9e to cfa0570 Compare August 28, 2025 12:22
@PKulkoRaccoonGang PKulkoRaccoonGang added the create-sandbox open-craft-grove should create a sandbox environment from this PR label Sep 2, 2025
actionFunction();
}}
className={['endorse', 'unendorse'].includes(endorseIcons.id) ? 'text-dark-500' : 'text-success-500'}
className={['endorse', 'unendorse'].includes(endorseIcons.id) ? 'text-primary' : 'text-primary'}
Copy link
Contributor

Choose a reason for hiding this comment

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

[nit]: Since the condition ['endorse', 'unendorse'].includes(endorseIcons.id) always returns true or false, and in both cases the same class text-primary is assigned, the expression can be replaced with className="text-primary". What do you think about this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

[nit]: Since the condition ['endorse', 'unendorse'].includes(endorseIcons.id) always returns true or false, and in both cases the same class text-primary is assigned, the expression can be replaced with className="text-primary". What do you think about this?

✅ Good catch, thanks! I removed the redundant condition and replaced it with className="text-primary".

src/index.scss Outdated
z-index: 5000 !important;

.pgn__modal-footer .pgn__action-row {
gap: 8px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use the variable --pgn-spacing-spacer-2 instead of 8px?

Another question is more global, it seems to me that we should fix this problem not in this MFE, but in Paragon (since it is global and refers to the ActionRow component of Paragon). I tried to see how ActionRow looks on mobile screens and noticed the following

Image

Can you create a corresponding issue for this problem in Paragon? If you have other ideas, feel free to share them

Copy link
Contributor Author

@bydawen bydawen Sep 5, 2025

Choose a reason for hiding this comment

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

I think it must be fixed on the paragon side, because this problem present in that component, and will be everywhere where it will be used.

Created issue in the paragon repo:
openedx/paragon#3775

@open-craft-grove
Copy link

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@open-craft-grove
Copy link

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@bydawen bydawen force-pushed the fix/discussions-sidebar-frame-buttons-gap branch from cfa0570 to 54806e2 Compare September 5, 2025 08:22
@open-craft-grove
Copy link

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@bydawen bydawen force-pushed the fix/discussions-sidebar-frame-buttons-gap branch from 54806e2 to 6cde837 Compare September 11, 2025 09:40
@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@bydawen bydawen force-pushed the fix/discussions-sidebar-frame-buttons-gap branch from 6cde837 to 9db46d6 Compare October 3, 2025 09:42
@bydawen bydawen force-pushed the fix/discussions-sidebar-frame-buttons-gap branch from 9db46d6 to 2ec8d8b Compare October 3, 2025 09:42
@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

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

Labels

create-sandbox open-craft-grove should create a sandbox environment from this PR open-source-contribution PR author is not from Axim or 2U

Projects

Status: Ready for Review

Development

Successfully merging this pull request may close these issues.

5 participants