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

feat: [DHIS2-16125] hide program stage under certain circumstances #3735

Merged

Conversation

henrikmv
Copy link
Contributor

@henrikmv henrikmv commented Jul 28, 2024

DHIS2-16125

  • Checked if program rule Prevent adding new events to stage is in effect when no events are in stage. If so, the program stage is hidden.
  • Change variable names for readability
  • Removed ConditionalTooltip and disabled prop for the scenario where there are no events, because there are no use cases where this button can be disabled.
  • Changed Cypress to verify that the stage is hidden (under the certain circumstances) instead of looking after the disabled button in the hidden program stage

@henrikmv henrikmv marked this pull request as ready for review July 28, 2024 19:09
@henrikmv henrikmv requested a review from a team as a code owner July 28, 2024 19:09
@henrikmv
Copy link
Contributor Author

Thank you for the review, @simonadomnisoru! I have committed the changes suggested now

@henrikmv
Copy link
Contributor Author

henrikmv commented Jul 29, 2024

@simonadomnisoru, I had a Cypress test breaking because the test was looking for a disabled button in a stage that is now hidden due to the changes implemented in this branch. Do you also want to look at the Cypress changes? Thank you!

Copy link

Copy link
Contributor

@simonadomnisoru simonadomnisoru left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link

@geethaalwan geethaalwan left a comment

Choose a reason for hiding this comment

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

Tested successfully on 2.42,2.41.1,.2.40.5,2.39.7 versions

@henrikmv henrikmv merged commit c6b6dc0 into master Aug 7, 2024
46 checks passed
@henrikmv henrikmv deleted the hv/feat/DHIS2-16125_HideProgramStageUnderCertainCircumstances branch August 7, 2024 08:15
dhis2-bot added a commit that referenced this pull request Aug 7, 2024
# [100.73.0](v100.72.0...v100.73.0) (2024-08-07)

### Features

* [DHIS2-16125] hide program stage under certain circumstances ([#3735](#3735)) ([c6b6dc0](c6b6dc0))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 100.73.0 🎉

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants