Restructure dataset header for clearer information hierarchy & future extensibility #2761
+1,583
−1,069
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Create a new
DatasetControlsViewto contain logic for rendering the metrics & cite/anaylze/edit/publish buttons for a dataset. This moves the logic out of the already largeMetadataView. The buttons that are rendered in theDatasetControlsVieware also now fully configurable in thebuttonsproperty of the view, making it easy to add the Notification Service button in the future (#2757).The styles & layout of the buttons have also been updated to match the mockups in issue #2755, with the metrics and report buttons having a more subtle appearance compared to the "action" buttons like Cite, Edit, Publish, etc. The buttons & layout also now adapt to smaller screen sizes.
During development, I fixed an issue that kept popping up where the edit and publish buttons sometimes wouldn't appear when they should. This was due to the authorization properties on the metadata model not being reset between datasets (so the permissions from the previous dataset would persist!). This fixes #1639 and #1894. I also adjusted some of the small-screen styles of the dataset view header (citation view).
Other minor changes and fixes are documented in the commit messages.
Closes #2755
After
Before
After
Before