-
Notifications
You must be signed in to change notification settings - Fork 492
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
Dataset Publish/Submit for Review - Optimize Button/Popup Code #1664
Comments
Looked at this in more detail as part of the work for #3747 and #3849. The main issue is that there are 5 different "Publish" buttons that point to 5 different popups. The render logic for these 5 buttons have two piece of render logic in common:
Using those as the only render logic, for only one "Publish" button, we can move the rest of the render logic to either the All the conditional render logic needed for the publish popups is determining if we allow you publish or not, and which header, help text and buttons to display in the popup. That logic is not needed in the "Publish" button code and only complicates the button display logic. This is something worth looking into when we address UI Cleanup - Action Button + Metrics Block Layout #3341. |
Highly related/duplicate of UI Cleanup - Action Button + Metrics Block Layout #3341 |
This issue indirectly came up again today when working Layout and styling of action buttons on the dataset and file page #6684. All these buttons are complicating the render logic required in the new UI which includes a Here is a code snippet removing everything that isn't render logic, which was created to outline how complicated all the render logic can get.
The render logic that I attempted to use in the UI was from a
This complicated render logic was not a problem in the old UI, because it only resulted in an empty |
Thank you, @sekmiller for the commit 6f61923 to the branch for issue #6684. This will hopefully be the first phase of the effort to refactor the code for these buttons outlined in this issue. |
@sekmiller contributed a bunch of render logic optimization code to PR #6909 for issue Layout and styling of action buttons on the dataset and file page #6684. This effort has moved a lot of the render logic of these links/buttons from the XHTML to the DatasetPage.java backing bean. There is now only one publish commandLink in the new button UI xhtml code. That PR has been linked and will close this issue when it is merged. |
Find a better way to have markup and render logic on the dataset page for all the different Publish/Submit for Review buttons and popups. There are currently eight buttons at the top of the page with seven popups.
The text was updated successfully, but these errors were encountered: