Skip to content

Conversation

ahtesham-quraish
Copy link
Contributor

@ahtesham-quraish ahtesham-quraish commented Aug 7, 2025

Description

Replace of injectIntl with useIntl() part 8 #2288 #2357

Supporting information

Link to other information about the change, such as GitHub issues, or Discourse discussions.
Be sure to check they are publicly readable, or if not, repeat the information here.

Testing instructions

Please provide detailed step-by-step instructions for manually testing this change.

Other information

Include anything else that will help reviewers and consumers understand the change.

  • Does this change depend on other changes elsewhere?
  • Any special concerns or limitations? For example: deprecations, migrations, security, or accessibility.

Best Practices Checklist

We're trying to move away from some deprecated patterns in this codebase. Please
check if your PR meets these recommendations before asking for a review:

  • Any new files are using TypeScript (.ts, .tsx).
  • Deprecated propTypes, defaultProps, and injectIntl patterns are not used in any new or modified code.
  • Tests should use the helpers in src/testUtils.tsx (specifically initializeMocks)
  • Do not add new fields to the Redux state/store. Use React Context to share state among multiple components.
  • Use React Query to load data from REST APIs. See any apiHooks.ts in this repo for examples.
  • All new i18n messages in messages.ts files have a description for translators to use.
  • Imports avoid using ../. To import from parent folders, use @src, e.g. import { initializeMocks } from '@src/testUtils'; instead of from '../../../../testUtils'

Copy link

codecov bot commented Aug 7, 2025

Codecov Report

❌ Patch coverage is 95.45455% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 94.51%. Comparing base (0e1550a) to head (b273094).
⚠️ Report is 19 commits behind head on master.

Files with missing lines Patch % Lines
src/files-and-videos/generic/FileMenu.jsx 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2357      +/-   ##
==========================================
+ Coverage   94.44%   94.51%   +0.06%     
==========================================
  Files        1169     1171       +2     
  Lines       25102    25158      +56     
  Branches     5473     5375      -98     
==========================================
+ Hits        23708    23777      +69     
+ Misses       1328     1318      -10     
+ Partials       66       63       -3     

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

@ahtesham-quraish
Copy link
Contributor Author

@jacobo-dominguez-wgu @bradenmacdonald I have refactored the components but facing code coverage issue for the code which I did not touch what should we do in this case?

@bradenmacdonald
Copy link
Contributor

@ahtesham-quraish Sorry for the delayed reply. It would be ideal if you can find a way to update the tests to cover those lines, but if not then just ignore them using the directive I mentioned at #2358 (comment)

@ahtesham-quraish
Copy link
Contributor Author

@bradenmacdonald you can merge this PR. Thanks

Copy link
Contributor

@bradenmacdonald bradenmacdonald left a comment

Choose a reason for hiding this comment

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

Looks good - thanks!

@bradenmacdonald bradenmacdonald merged commit 87af7e8 into openedx:master Aug 20, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants