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

7081 kebab file options icon btn #7353

Merged
merged 16 commits into from
Nov 6, 2020
Merged

Conversation

scolapasta
Copy link
Contributor

@scolapasta scolapasta commented Oct 23, 2020

What this PR does / why we need it:
This PR adds a new fragment for edit buttons (and one for related popups) so that the UI code can be reused in multiple locations - currently, as of this PR used on: FilePage and DatasetPage, both for the kebabs and the selected files edit button.

Which issue(s) this PR closes:

Closes #7081

Special notes for your reviewer:
This is the infrastructure for this - some of the options are still specific and have logic, for example, to only render on the file page (e.g. replace and provenance). There are open issues to add those to DatasetPage (and one for file tags to be added to both kebabs and file page). Eventually, we will likely want to use this as well for the edit files page / fragment.

One thing I did for the new fragments is add a section at the top (with a ui:remove) that lists the different parameters that can be passed and/or are needed for usage of the fragment.

Suggestions on how to test this:
Make sure the correct edit functions appear and work in the 3 locations: File Page, Dataset Page kebab, and Dataset Page edit button for selected files.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:
Yes. Any needed mockups should be in the issue.

Is there a release notes update needed for this change?:
no

Additional documentation:

Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From a quick look, I think this would be ok to move to QA but there are conflicts in src/main/webapp/filesFragment.xhtml (and two pages in the guides) between this branch and the preview tools branch. So, I think we should let preview tools get merged before this gets to QA.

@sekmiller sekmiller self-assigned this Nov 2, 2020
# Conflicts:
#	doc/sphinx-guides/source/developers/geospatial.rst
#	doc/sphinx-guides/source/user/find-use-data.rst
#	src/main/webapp/filesFragment.xhtml
@coveralls
Copy link

coveralls commented Nov 3, 2020

Coverage Status

Coverage decreased (-0.004%) to 19.486% when pulling b17c258 on 7081-kebab-file-options-icon-btn into 3da9c40 on develop.

@sekmiller sekmiller removed their assignment Nov 5, 2020
@kcondon kcondon self-assigned this Nov 5, 2020
@kcondon
Copy link
Contributor

kcondon commented Nov 5, 2020

Tested, this appears consistent across elements and works.
Did notice one UI issue where kebab menu appears behind footer text at bottom, like it is on the wrong layer. @djbrooke @TaniaSchlatter @mheppler what do you think? Merge, then fix or wait, fix, then merge?
Screen Shot 2020-11-05 at 3 07 26 PM

@djbrooke
Copy link
Contributor

djbrooke commented Nov 5, 2020

Thanks @kcondon - let's wait on merging until we can investigate. @scolapasta can you take a quick look and see if there's anything obvious here?

@djbrooke djbrooke assigned scolapasta and unassigned kcondon Nov 5, 2020
@kcondon
Copy link
Contributor

kcondon commented Nov 5, 2020

@djbrooke @scolapasta It was a shift+reload issue. Can merge at any time but maybe tomorrow.

@kcondon kcondon self-assigned this Nov 6, 2020
@kcondon kcondon merged commit c9a55b7 into develop Nov 6, 2020
@kcondon kcondon deleted the 7081-kebab-file-options-icon-btn branch November 6, 2020 14:33
@djbrooke djbrooke added this to the 5.2 milestone Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dataset Page - File Options Kebab Btn 🍡
7 participants