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: missing labels in report period selector #388

Merged

Conversation

alaa-yahia
Copy link
Member

@alaa-yahia alaa-yahia commented Apr 30, 2024

Implements DHIS2-16199

@alaa-yahia alaa-yahia requested review from a team as code owners April 30, 2024 20:22
@dhis2-bot
Copy link
Contributor

dhis2-bot commented Apr 30, 2024

🚀 Deployed on https://pr-388--dhis2-reports.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify April 30, 2024 20:25 Inactive
Copy link
Member

@tomzemp tomzemp 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 @alaa-yahia !

I think it might be helpful to also reduce this problem in the future by falling back to the backend name if we do not have translations. This would mean changing the line here:

displayName: fixedPeriodTranslations[periodType.name],

to
displayName: fixedPeriodTranslations[periodType.name] ?? periodType.name,

@dhis2-bot dhis2-bot temporarily deployed to netlify May 7, 2024 20:28 Inactive
Copy link
Member

@tomzemp tomzemp 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!

@karolinelien
Copy link

Looks great from a functional testing side too!

@tomzemp tomzemp merged commit 3cc9fdc into master Jun 26, 2024
8 checks passed
@tomzemp tomzemp deleted the DHIS2-16199-report-period-selector-in-reports-app-missing-labe branch June 26, 2024 07:18
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 100.0.57 🎉

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
Development

Successfully merging this pull request may close these issues.

None yet

4 participants