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: parse pluginType from d2 config to add to manifest.webapp #849

Merged
merged 7 commits into from
Jun 4, 2024

Conversation

KaiVandivier
Copy link
Contributor

Reads a pluginType string from d2.config.js and adds it to manifest.webapp as plugin_type (see the backend code that parses manifest.webapp)

pluginType: 'DASHBOARD' shows up in dashboard app list:
plugin-type-dashboard

pluginType: 'CAPTURE' doesn't show up in dashboard app list:
plugin-type-capture

config:
pwa-plugin-type-config

@KaiVandivier KaiVandivier requested a review from a team May 30, 2024 12:37
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!

Do you think it might be appropriate to do convert pluginType to upper case, so that we don't end up people with uploading variants like dashboard or Dashboard, which will then be unique types? I don't think there's a good reason to allow for case-sensitive definition of plugin types, and doing the conversion on manifest generation would probably prevent some unintended errors.

@KaiVandivier
Copy link
Contributor Author

KaiVandivier commented May 31, 2024

Good call... I think I'll implement that as a validation step, so that the user gets feedback that it should be in all caps, so they know what to expect if they try to filter for it

-- Update:
Screenshot 2024-05-31 at 9 10 39 PM

@KaiVandivier KaiVandivier merged commit c1dae23 into master Jun 4, 2024
6 checks passed
@KaiVandivier KaiVandivier deleted the feat-parse-plugin-type branch June 4, 2024 08:48
dhis2-bot added a commit that referenced this pull request Jun 4, 2024
# [11.4.0](v11.3.1...v11.4.0) (2024-06-04)

### Features

* parse pluginType from d2 config to add to manifest.webapp ([#849](#849)) ([c1dae23](c1dae23))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 11.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

dhis2-bot added a commit that referenced this pull request Jun 20, 2024
# [12.0.0-alpha.2](v12.0.0-alpha.1...v12.0.0-alpha.2) (2024-06-20)

### Bug Fixes

* clean up for plugins [LIBS-620] ([#851](#851)) ([13af3b5](13af3b5))
* do not encode username, password ([#852](#852)) ([2fb4272](2fb4272))
* don't start plugins for apps without a plugin entrypoint ([#850](#850)) ([a89d4cf](a89d4cf))

### Features

* parse pluginType from d2 config to add to manifest.webapp ([#849](#849)) ([c1dae23](c1dae23))
* start plugin and app separately [LIBS-391] [LIBS-392] ([#848](#848)) ([82003e7](82003e7))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 12.0.0-alpha.2 🎉

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.

3 participants