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 plugin wrappers [LIBS-397] #823

Merged
merged 28 commits into from
Jan 4, 2024
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
7fd0605
feat: plugin error handling
tomzemp Feb 6, 2023
7ee8ed6
feat: plugin handling
tomzemp Feb 9, 2023
ac10119
chore: move plugin wrapper logic to app-platform
tomzemp Feb 17, 2023
d40dfba
fix: simplify error reset logic
tomzemp Feb 20, 2023
bd4dccb
fix: pass props with spread operator
tomzemp Feb 24, 2023
5c637c0
fix: merge in master branch of app-platform
tomzemp Mar 8, 2023
d5e17e1
fix: style adapter package file
tomzemp Mar 9, 2023
d4f1ee2
feat: implement plugin wrapper (receiver in plugin) (alpha) (#786)
tomzemp Mar 13, 2023
15ecf4d
chore(release): cut 10.4.0-alpha.1 [skip release]
dhis2-bot Mar 13, 2023
74bbe00
feat: auto resizing for height
tomzemp Mar 29, 2023
a80ea56
fix: auto width adjustment
tomzemp May 16, 2023
3433129
fix: update app-runtime dependencies
tomzemp Jun 16, 2023
78598d4
Merge pull request #810 from dhis2/alpha-update-runtime-deps
tomzemp Jun 16, 2023
b0f4732
chore(release): cut 10.4.0-alpha.2 [skip release]
dhis2-bot Jun 16, 2023
90fef9f
Merge branch 'master' into chore-catch-up-with-master
KaiVandivier Aug 10, 2023
4f5dae9
Merge pull request #813 from dhis2/chore-catch-up-with-master
KaiVandivier Aug 10, 2023
5a7cd50
chore(release): cut 10.4.0-alpha.3 [skip release]
dhis2-bot Aug 10, 2023
9863ae0
fix: clean up dependencies
tomzemp Aug 21, 2023
f6c07cf
fix: use useRef for previous width
tomzemp Aug 22, 2023
6733572
Merge branch 'alpha' into alpha-update
tomzemp Aug 22, 2023
ca24fcc
chore: update alpha branch (#815)
amcgee Aug 22, 2023
bb26b38
chore(release): cut 10.4.0-alpha.4 [skip release]
dhis2-bot Aug 22, 2023
e5c66b8
Merge pull request #814 from dhis2/LIBS-487/auto-dimensions
tomzemp Sep 28, 2023
d3220f0
chore(release): cut 10.4.0-alpha.5 [skip release]
dhis2-bot Sep 28, 2023
16b1a6b
Merge branch 'master' into update-alpha
tomzemp Dec 20, 2023
ec772f6
fix: update alpha [skip release]
tomzemp Dec 20, 2023
e66a8ea
fix: update alpha
tomzemp Dec 21, 2023
da28835
chore(release): cut 10.4.0-alpha.6 [skip release]
dhis2-bot Dec 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: simplify error reset logic
  • Loading branch information
tomzemp committed Feb 20, 2023
commit d40dfba50cc9fa2e8ada03bf03cc9e4b52ef28bc
12 changes: 3 additions & 9 deletions shell/src/PluginLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,15 @@ export const PluginLoader = ({ config, requiredProps, D2App }) => {
if (setInErrorState) {
if (onError) {
setOnPluginError(() => (error) => {
setCommunicationReceived(false)
setInErrorState(true)
onError(error)
})
} else {
setOnPluginError(() => () => {
setCommunicationReceived(false)
setInErrorState(true)
})
}
}

if (setInErrorState) {
// when users clears error, set communicationReceived=false to retrigger communication
if (setCommunicationReceived) {
setClearPluginError(() => () => {
setInErrorState(false)
setCommunicationReceived(false)
})
}

Expand Down