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

Added % sign to 2 columns that contain percentage values. #1435

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

saleem-latif
Copy link
Contributor

Forgot to push a commit as part of #1434 details are on that PR.

For all changes

  • Ensure adequate tests are in place (or reviewed existing tests cover changes)

Only if submitting a visual change

  • Ensure to attach screenshots
  • Ensure to have UX team confirm screenshots

@@ -121,7 +121,9 @@ const ModuleActivityReport = ({ enterpriseId }) => {
defaultMessage: '% Activities Complete',
description: 'Header for the percentage of activities completed column in the module activity report table',
}),
accessor: 'percentage_completed_activities',
Cell: ({ row }) => (
`${row.original.percentage_completed_activities} %`
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we also apply the isNumber check here before appending %?

Copy link
Contributor Author

@saleem-latif saleem-latif Feb 26, 2025

Choose a reason for hiding this comment

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

Nope, this one is being sent by the server in string form so isNumber always returns false.

@saleem-latif saleem-latif force-pushed the saleem-latif/ENT-10021-update branch from 0fa78d6 to 28214a1 Compare February 26, 2025 09:04
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 86.41%. Comparing base (ffcf685) to head (28214a1).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/components/Admin/tabs/ModuleActivityReport.jsx 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1435      +/-   ##
==========================================
- Coverage   86.42%   86.41%   -0.02%     
==========================================
  Files         660      660              
  Lines       14932    14934       +2     
  Branches     3162     3168       +6     
==========================================
  Hits        12905    12905              
- Misses       1957     1959       +2     
  Partials       70       70              

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

@saleem-latif saleem-latif merged commit c79ab87 into master Feb 26, 2025
4 of 6 checks passed
@saleem-latif saleem-latif deleted the saleem-latif/ENT-10021-update branch February 26, 2025 09:41
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