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-17655] Two event workspace #3726

Merged
merged 22 commits into from
Aug 14, 2024

Conversation

eirikhaugstulen
Copy link
Contributor

@eirikhaugstulen eirikhaugstulen commented Jul 23, 2024

Tech-summary:

  • Adds a new widget available in the Enrollment Edit Event page
  • The widget is self contained and checks if there are any linked events to the current event
  • If there are any events, this gets formatted and displayed as a box on top of the current event workspace
image

…-plugins-in-event-programs

# Conflicts:
#	src/core_modules/capture-core/components/Pages/ViewEvent/EventDetailsSection/EventDetailsSection.component.js
…t/DHIS2-17591-plugins-in-event-programs

# Conflicts:
#	i18n/en.pot
…t/DHIS2-17655-two-event-workspace

# Conflicts:
#	i18n/en.pot
#	src/core_modules/capture-core/components/Pages/EnrollmentEditEvent/PageLayout/DefaultPageLayout.constants.js
#	src/core_modules/capture-core/components/Pages/common/EnrollmentOverviewDomain/EnrollmentPageLayout/DefaultEnrollmentLayout.types.js
@eirikhaugstulen eirikhaugstulen marked this pull request as ready for review July 24, 2024 12:23
@eirikhaugstulen eirikhaugstulen requested a review from a team as a code owner July 24, 2024 12:23
Copy link

github-actions bot commented Jul 25, 2024

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.

Hi @eirikhaugstulen,
It looks good overall 👏 . I added a comment with the dataElements types that are not properly displayed. Besides that, is it possible to add some cypress tests for this feature?
Thanks!

…t/DHIS2-17655-two-event-workspace

# Conflicts:
#	i18n/en.pot
#	src/core_modules/capture-core/components/DataEntries/common/TEIAndEnrollment/index.js
#	src/core_modules/capture-core/components/DataEntries/common/TEIAndEnrollment/useMetadataForRegistrationForm/index.js
#	src/core_modules/capture-core/components/Pages/common/WidgetEventEditWrapper/WidgetEventEditWrapper.js
@eirikhaugstulen
Copy link
Contributor Author

Thanks for the review @simonadomnisoru! I was missing the clientSubValues, which meant the values was not displaying correctly. Nice catch!

return {
id,
name,
url: `${absoluteApiPath}/events/files?dataElementUid=${dataElement.id}&eventUid=${eventId}`,
Copy link
Contributor

Choose a reason for hiding this comment

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

A reminder that this URL is not working in 2.41. The fix can be handled along with the rest of the places in DHIS2-17537. Thanks!

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.41,2.41.1,2.40.5,2.39.7 versions

@eirikhaugstulen eirikhaugstulen merged commit bad5312 into master Aug 14, 2024
63 of 64 checks passed
@eirikhaugstulen eirikhaugstulen deleted the eh/feat/DHIS2-17655-two-event-workspace branch August 14, 2024 09:32
dhis2-bot added a commit that referenced this pull request Aug 14, 2024
# [101.1.0](v101.0.0...v101.1.0) (2024-08-14)

### Features

* [DHIS2-17655] Two event workspace ([#3726](#3726)) ([bad5312](bad5312))
@dhis2-bot
Copy link
Contributor

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

5 participants