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: support new dashboard plugin architecture #396

Open
wants to merge 46 commits into
base: master
Choose a base branch
from

Conversation

edoardo
Copy link
Member

@edoardo edoardo commented Jun 21, 2023

Part of the fix for: DHIS2-17268

Requires dhis2/analytics#1672


Key features

  1. use shared dashboard plugin wrapper

Description

Generic components for plugins are available in app-platform and app-runtime.
Analytics apps are currently having the same components replicated in each repo, a shared dashboard plugin wrapper has been added in analytics.


Known issues

  • an infinite loop happened and this seems to solve it, I'm not sure why and if this is a proper solution.

Screenshots

Screenshot 2023-06-21 at 16 25 33

@dhis2-bot
Copy link
Contributor

dhis2-bot commented Jun 21, 2023

🚀 Deployed on https://pr-396.line-listing.netlify.dhis2.org

@dhis2-bot dhis2-bot temporarily deployed to netlify June 21, 2023 14:41 Inactive
@edoardo edoardo force-pushed the refactor/use-platform-plugin-components branch from b365999 to e156657 Compare October 9, 2023 08:40
@edoardo edoardo force-pushed the refactor/use-platform-plugin-components branch from 795334d to 16060c2 Compare May 24, 2024 13:21
@dhis2-bot dhis2-bot temporarily deployed to netlify May 24, 2024 13:23 Inactive
@edoardo edoardo force-pushed the refactor/use-platform-plugin-components branch from 16060c2 to ea99422 Compare May 27, 2024 13:43
@dhis2-bot dhis2-bot temporarily deployed to netlify May 27, 2024 13:46 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify May 29, 2024 13:49 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify May 30, 2024 12:59 Inactive
@edoardo edoardo force-pushed the refactor/use-platform-plugin-components branch from dc5c207 to af32223 Compare June 4, 2024 13:37
@dhis2-bot dhis2-bot temporarily deployed to netlify June 4, 2024 13:47 Inactive
@edoardo edoardo changed the title refactor: use platform/runtime plugin components refactor: use shared dashboard plugin wrapper Jun 4, 2024
@edoardo edoardo force-pushed the refactor/use-platform-plugin-components branch from af32223 to 3ed21de Compare July 1, 2024 14:11
@dhis2-bot dhis2-bot temporarily deployed to netlify July 1, 2024 14:13 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify July 3, 2024 09:58 Inactive
@edoardo edoardo added the e2e record Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud label Jul 4, 2024
Copy link

cypress bot commented Jul 4, 2024

line-listing-app    Run #2738

Run Properties:  status check passed Passed #2738  •  git commit e20fce577e ℹ️: Merge 1b50879b2d89834d4fd772e0aaf6bf89fc1ba663 into 63e6adba9f71cd545a4b05b2b1ef...
Project line-listing-app
Branch Review refactor/use-platform-plugin-components
Run status status check passed Passed #2738
Run duration 11m 04s
Commit git commit e20fce577e ℹ️: Merge 1b50879b2d89834d4fd772e0aaf6bf89fc1ba663 into 63e6adba9f71cd545a4b05b2b1ef...
Committer Edoardo Sabadelli
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 588
View all changes introduced in this branch ↗︎

@dhis2-bot dhis2-bot temporarily deployed to netlify July 4, 2024 13:03 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify July 4, 2024 14:24 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify July 11, 2024 13:01 Inactive
Copy link
Contributor

@HendrikThePendric HendrikThePendric left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

src/components/Visualization/Visualization.js Outdated Show resolved Hide resolved
src/components/Visualization/Visualization.js Show resolved Hide resolved
src/components/Visualization/Visualization.js Outdated Show resolved Hide resolved
@dhis2-bot dhis2-bot temporarily deployed to netlify July 12, 2024 08:16 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify July 12, 2024 12:13 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify July 30, 2024 08:54 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify July 30, 2024 14:02 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify July 31, 2024 07:57 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify July 31, 2024 08:37 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify July 31, 2024 10:15 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify August 16, 2024 09:51 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify August 19, 2024 09:30 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify October 10, 2024 09:33 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify October 30, 2024 15:06 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 4, 2024 10:09 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 4, 2024 12:43 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 11, 2024 11:52 Inactive
@edoardo edoardo changed the title refactor: use shared dashboard plugin wrapper feat: support new dashboard plugin architecture Nov 11, 2024
@edoardo edoardo marked this pull request as ready for review November 11, 2024 14:51
@edoardo edoardo requested a review from a team as a code owner November 11, 2024 14:51
There were issues with tooltip Cypress tests after upgrading @dhis2/ui.
Most likely because now the Tooltip stays open until a mouseout event
occours and this can cover an element which is targeted for another
test.
The Esc key can also be used to close it, and this is what this change
is doing.
The default behaviour has a small delay, which causes Tooltip to linger
around for a while and appearing on top of other elements (like modals)
which is not desirable.
@dhis2-bot dhis2-bot temporarily deployed to netlify November 12, 2024 15:22 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 12, 2024 19:16 Inactive
This fixes a bug where the tooltip show date ranges in different formats
when changing the range and updating the visualization.
@dhis2-bot dhis2-bot temporarily deployed to netlify November 15, 2024 11:16 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 15, 2024 13:48 Inactive
Copy link
Contributor

@HendrikThePendric HendrikThePendric left a comment

Choose a reason for hiding this comment

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

The changes look good, and probably everything makes sense, but there was one part that confused me a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e record Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants