Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: video status badge translation #438

Merged

Conversation

CefBoud
Copy link
Contributor

@CefBoud CefBoud commented Dec 16, 2023

This PR is related to:

The changes are minimal:

  • TODO Comments are removed.
  • The usage of the status field is replaced by the new status_nontranslated field (introduced in the PR above).
  • The display of a video's status in the status badge is done through FormattedMessage instead of a plain render to handle translation within React.

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Dec 16, 2023
@openedx-webhooks
Copy link

Thanks for the pull request, @CefBoud! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@CefBoud CefBoud force-pushed the CefBoud/video-status-translation branch 2 times, most recently from b8a98b9 to 8cd7225 Compare December 17, 2023 16:14
Copy link

codecov bot commented Dec 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.58%. Comparing base (dedcb14) to head (2f8e96c).
Report is 1 commits behind head on main.

❗ Current head 2f8e96c differs from pull request most recent head 3006641. Consider uploading reports for the commit 3006641 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #438      +/-   ##
==========================================
+ Coverage   89.25%   90.58%   +1.32%     
==========================================
  Files         246      227      -19     
  Lines        4475     4130     -345     
  Branches      917      831      -86     
==========================================
- Hits         3994     3741     -253     
+ Misses        454      369      -85     
+ Partials       27       20       -7     

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

@mphilbrick211
Copy link

Hi @openedx/teaching-and-learning! This is ready for review. Thanks!

@mphilbrick211 mphilbrick211 requested a review from a team December 18, 2023 14:52
@CefBoud CefBoud force-pushed the CefBoud/video-status-translation branch 2 times, most recently from 938c06c to b3ebe6f Compare December 22, 2023 10:22
@tecoholic tecoholic added the jira:2u We want an issue in the 2U Jira instance label Dec 25, 2023
@openedx-webhooks
Copy link

I've created issue TNL-11332 in the private 2U Jira.

@tecoholic
Copy link

@CefBoud 👍 Just left a small nit and a question.

defaultMessage: 'Any status',
description: 'Dropdown label for no filter (any status)',
description: 'label for video status (any status)',

Choose a reason for hiding this comment

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

Nit:

Suggested change
description: 'label for video status (any status)',
description: 'Label for video status (any status)',

// Filter Dropdown
filterByVideoStatusAny: {
id: 'authoring.selectvideomodal.filter.videostatusnone.label',
// Video status labels

Choose a reason for hiding this comment

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

I like that it is a bit more generic now 👍, as it can be reused in other places. However, I still see it only being used in filterMessages. So, I am curious about the motivation behind this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is used in the status badge display.

Choose a reason for hiding this comment

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

Ah! Cool. :)

@CefBoud CefBoud force-pushed the CefBoud/video-status-translation branch from b3ebe6f to 2f8e96c Compare December 25, 2023 09:54
@mphilbrick211
Copy link

Hi @openedx/2u-tnl! Would someone be able to please review / merge this for us? If so, we can work on the branch conflicts. Thanks!

@mphilbrick211 mphilbrick211 added the waiting for eng review PR is ready for review. Review and merge it, or suggest changes. label Feb 21, 2024
@mphilbrick211 mphilbrick211 requested a review from a team March 21, 2024 01:42
@mphilbrick211
Copy link

Hi @openedx/2u-tnl! Would someone be able to please review / merge this for us? If so, we can work on the branch conflicts. Thanks!

Friendly ping on this, @openedx/2u-tnl!

@farhaanbukhsh
Copy link
Member

@mphilbrick211 any updates here?

@mphilbrick211
Copy link

@mphilbrick211 any updates here?

Hi @openedx/2u-tnl - is someone able to review this please? Thanks!

@KristinAoki
Copy link
Member

@CefBoud conflicts need to be resolved before this can be merged

@CefBoud CefBoud force-pushed the CefBoud/video-status-translation branch from 2f8e96c to 3006641 Compare May 13, 2024 17:26
@CefBoud
Copy link
Contributor Author

CefBoud commented May 13, 2024

@KristinAoki Thanks for the review. Fixed.

@KristinAoki KristinAoki merged commit 3315205 into openedx:main May 13, 2024
5 checks passed
@openedx-webhooks
Copy link

@CefBoud 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.

@CefBoud CefBoud deleted the CefBoud/video-status-translation branch May 13, 2024 19:27
@itsjeyd itsjeyd removed the waiting for eng review PR is ready for review. Review and merge it, or suggest changes. label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira:2u We want an issue in the 2U Jira instance 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.

7 participants