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-18018][DHIS2-17853] show related stages widget in view event page #3916

Merged
merged 42 commits into from
Feb 12, 2025

Conversation

simonadomnisoru
Copy link
Contributor

@simonadomnisoru simonadomnisoru commented Dec 19, 2024

DHIS2-18018

Tech summary:

  • Make the WidgetRelatedStages configurable in the enrollmentEventEditLayout page layout
  • Based on the user selected option show an action button in WidgetRelatedStages
  • use react-query to create the linked event and the relationship in useAddEventWithRelationship

Copy link

github-actions bot commented Jan 8, 2025

@simonadomnisoru simonadomnisoru marked this pull request as ready for review January 8, 2025 09:10
@simonadomnisoru simonadomnisoru requested a review from a team as a code owner January 8, 2025 09:10
Copy link
Contributor

@henrikmv henrikmv left a comment

Choose a reason for hiding this comment

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

Well done Simona removing the 409 error!

Regarding the inconsistency in the disabled button behavior, removing the disabling function appears to introduce a bug. Since the user can click the button before all required values are set, the loading spinner spins indefinitely due to the missing values.

Skjermbilde 2025-02-06 kl  17 41 24

Would you like to take a look? Thanks!

Copy link
Contributor

@henrikmv henrikmv left a comment

Choose a reason for hiding this comment

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

Well done with this feature Simona! Looks very good now. Just some NIT comments from me.

henrikmv

This comment was marked as duplicate.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5 New issues
5 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@karolinelien
Copy link
Contributor

Reviewed this from a functional/product perspective and it looks good to me. :)

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.4,2.40.8,2.39.9 versions

@simonadomnisoru simonadomnisoru merged commit b584a0c into master Feb 12, 2025
47 of 48 checks passed
@simonadomnisoru simonadomnisoru deleted the DHIS2-18018 branch February 12, 2025 17:41
dhis2-bot added a commit that referenced this pull request Feb 12, 2025
# [101.26.0](v101.25.5...v101.26.0) (2025-02-12)

### Features

* [DHIS2-18018][DHIS2-17853] show related stages widget in view event page ([#3916](#3916)) ([b584a0c](b584a0c))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 101.26.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.

6 participants