Replace dso page edit buttons with a menu#1852
Conversation
|
@YanaDePauw : This has merge conflicts. Could you rebase this on |
…so-page-edit-buttons-with-a-menu
|
This pull request introduces 1 alert when merging 6671bb3 into 064dae2 - view on LGTM.com new alerts:
|
|
@tdonohue Sorry for pushing more changes this late, but we wanted to sneak in
Here's a quick branch demonstrating the dropdowns: w2p-94390_replace-dso-page-edit-buttons-with-a-menu_Testing |
…' into w2p-94390_replace-dso-page-edit-buttons-with-a-menu
5f817ac to
9dc7b34
Compare
|
This pull request introduces 2 alerts when merging 9dc7b34 into 695ce3a - view on LGTM.com new alerts:
|
…' into w2p-94390_replace-dso-page-edit-buttons-with-a-menu
…so-page-edit-buttons-with-a-menu
…so-page-edit-buttons-with-a-menu
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @YanaDePauw ! This all looks good to me now. I'm not noticing any changes in behavior via testing these menus & accessibility scans are now passing.
I agree with @artlowel above that I'd prefer to enhance these menus to align with others in DSpace 7 prior to more advanced changes/configurations. So, @atarix83 while I'm not against considering further enhancements later on, I think those would obviously need to wait for 7.6 or later to discuss. Unless we see major flaws with this PR, I'd rather we still consider it for 7.5 inclusion.
atarix83
left a comment
There was a problem hiding this comment.
I've reviewed again, and it overall looks good. The only thing I'd change is the orientation of the buttons in the menu. Personally i prefer an horizontal alignement instead of the current vertical one
|
@atarix83 : I believe the alignment is horizontal unless there's a very long title. That's the same behavior as we currently have on So, as far as I can tell, I believe the behavior in this PR is identical to the behavior on |
|
I think we can fix in this PR @YanaDePauw it's just enough to remove the |
|
Hi @YanaDePauw, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
…so-page-edit-buttons-with-a-menu
|
Hi @YanaDePauw, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
…so-page-edit-buttons-with-a-menu
|
Hi @YanaDePauw, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
…so-page-edit-buttons-with-a-menu
[DSC-1751] Hide the altmetric label when there is no data available Approved-by: Francesco Molinaro


Description
This PR removes the separate buttons from the various DSpace object pages, such as the edit button and the versioning button, and puts them in a menu which will be rendered as buttons.
To add new buttons to the edit pages, these can be added to the menus in the
DSOEditMenuResolver, similar to the generalMenuResolver.Every top level menu will be rendered as a button. When this menu has no child menus, clicking the button will perform the action defined in the menu section in the resolver. When the menu has child menus, clicking the button will show a dropdown containing the actions defined in the child menu sections.
Furthermore, because the version button on the item page can be disabled, the menu functionality was expanded with a disabled option. Support for this disabled property was added to all other existing menus, but is currently not in use.
Instructions for Reviewers
The changes were made in such a way that the UI remains the same for the different dspace object pages.
To verify this, you can do the following:
Checklist
yarn run lintpackage.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.