-
Notifications
You must be signed in to change notification settings - Fork 433
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
Remove material-ui dependency #3171
Conversation
Thanks @pastr. I verified there are no imports of P.S. I think you also need to commit the changes to |
@alanorth Oh you are right, I forgot about it. |
Hi @pastr, |
@pastr : The conflicts in this PR are because we recently switched from If you could find time to update this, I still think this is a necessary change. If not, I might be able to find time to rework this in the future. Apologies it's taken so long to review, but I'd like to finally get this merged. |
34049e9
to
a737719
Compare
hello @tdonohue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks @pastr ! I was able to give this another look/test today. Looks good. I also built the system with this PR installed and can verify that there doesn't seem to be any change in behavior.
After merging this, I've realized that these When I looked at backporting this to 8.x / 7.x,
Digging into those mirador-*-plugins shows they are enabled by default in the Mirador Viewer Settings here: That implies to me that we might need to undo this PR, unfortunately. @mspalti: Do you happen to know if we need to include these for Mirador to function properly? Maybe we need to move these dependencies over to "optional" (as not all sites will be using Mirador)? |
There will be a few react dependencies because Mirador, obviously, uses react. In the case the download and share plugins, these are not required. If we remove them from the default Mirador configuration the viewer will work. We'd need to test that, obviously. The share plugin is sort of a core feature because it's a handy tool for embedding DSpace Manifests on other sites (i.e. the interoperability part of the IIIF framework). But I wouldn't call it essential for an installation that's only concerned with embedding an image viewer in a DSpace Item. For anyone wanting more than this I think they'd want these two plugins. btw, It looks like there's a newer version of mirador-share-plugin. We might test that. And perhaps work a bit on fixing the material dependency warnings. In my experience, the missing deps haven't caused problems with functionality. |
@mspalti : Thanks for the verification that removing these dependencies shouldn't be a big deal. I agree it'd be nice to upgrade any Mirador plugins that we can. For now, I'm going to refrain from backporting this change as it seems like it may need more testing that nothing "breaks" with IIIF when removing these |
NOTE: I finally got around to fully testing Mirador / IIIF Integration after the removal of these dependencies. I'm glad to report that Mirador works perfectly without material-ui or the other dependencies removed in this PR. I was also able to remove That said, I wanted to also note that this PR will not be backported to 8.x or 7.x (both ofwhich use Yarn instead of NPM). The reason is that |
References
None
Description
Remove the material-ui dependency, it's not used and it's a React library.
Instructions for Reviewers
The application works the same without these dependencies. These dependencies are not used in the codebase.
List of changes in this PR:
Checklist
yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.