-
Notifications
You must be signed in to change notification settings - Fork 21
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
Enhance frost-detail-tab-actions to display actions labels in popover. #88 #89
Enhance frost-detail-tab-actions to display actions labels in popover. #88 #89
Conversation
Regarding @notmessenger's earlier question, yes this change to add the popover to the vertical action bar is the intended UX.
|
Thanks for making the updates. Looks good. UX approved. |
@@ -50,14 +50,14 @@ export default Controller.extend({ | |||
], | |||
|
|||
@readOnly | |||
@computed('selectedTab') | |||
@computed('selectedTab') |
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.
Why the extra space?
tabContent (selectedTab) { | ||
const tab = A(this.get('apiTabs')).findBy('label', selectedTab) | ||
return tab ? get(tab, 'value') : selectedTab | ||
}, | ||
|
||
@readOnly | ||
@computed('selectedTab') | ||
@computed('selectedTab') |
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.
Why the extra space?
@@ -86,7 +86,7 @@ export default Controller.extend({ | |||
queryParams: ['selectedTab', 'selectedSubTab'], | |||
|
|||
@readOnly | |||
@computed('subtabs', 'selectedTab') | |||
@computed('subtabs', 'selectedTab') |
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.
Why the extra space?
Need to merge in latest |
Unrelated to your changes but if you remove the
and
lines from the testem.js file it will resolve your CI build issues. |
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.
If I visit http://ciena-frost.github.io/ember-frost-tabs/#/more-detail-tabs?selectedTab=AIS%20profile there are action icons displayed but when standing up your changes from this PR there are none and the console error of Error: Assertion Failed: A component or helper named "frost-popover" could not be found
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.
You have a conflict in your package-lock.json file, likely due to not having merged in latest master
first.
package.json
Outdated
@@ -50,6 +50,7 @@ | |||
"ember-code-snippet": "1.7.0", | |||
"ember-disable-prototype-extensions": "^1.1.0", | |||
"ember-export-application-global": "^1.0.5", | |||
"ember-frost-popover": "^11.0.0", |
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.
Shouldn't this be a dependency and not a devDependency since it is required by consumers for this codebase to function correctly?
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.
Which then means this needs to be a MAJOR release and not a PATCH
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.
You are missing updates to the package-lock.json file
I have posted a screen recording of this new behavior and have posted it to https://youtu.be/JO5ijeNcqak @ccampbel Is the "becoming larger and smaller again" effect on hover desired? I'm fine with whatever is desired but I think you've only been looking at screenshots and not interactive behavior. That also seems like a large bottom margin for triggering the popover but that is just my opinion. Do we need to add another icon to the demo to get a better sense? |
@ccampbel @goforsatish the icon has a border on it as being clicked (browser effect) but remains once have finished clicking. Is this desired? |
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.
How did you generate the update to the package-lock.json file? The changes within it do not reflect the changes made to the package.json file.
I generated package-lock.json by running npm install and merged it with the latest code from branch . |
Via |
No. I just did npm install. |
"ember-frost-popover" changes are there in package-lock.json. Is there still anything missing ? |
Okay, I see it now. Maybe I was just looking at an outdated version. |
The the icon border has been removed and it doesn't retain now on click of icon. |
@goforsatish if you run the command
|
Hi @notmessenger - thanks for mentioning these details. I have asked Phil Savignac to take a look at these issues. In the meantime (since he's away till Monday)... RE: bigger & larger sizing on the icon as hover effect. Generally speaking, the hover effect used across the frost components is not to resize, but to show a light blue background colour. I think we should follow suit with that approach. RE: large bottom margin for triggering the popover. Yes, it does look rather large. This will mainly become an issue if/when another button is added below it. I expect each button should have a same-sized target area for hover & click actions. RE: leaving artifact in place around after click. This is not the intent. Making it look "pressed" only makes sense in the case where the overall UI has gone into some kind of "mode" that you need to represent to the user. And they might need to press again to leave that mode. In this case, I believe it will always cause another action to occur (e.g. dialog to open) that leaves no ambiguity for the user as to what they need to do next. |
@notmessenger |
@goforsatish Then you need to fix this. The most likely culprit is that your package-lock.json file got messed up. |
UX approved |
Overview
Does this PR close an existing issue?
Yes
Summary
Enhance frost-detail-tab-actions to display action label in popover.
Currently, actions labels are displayed below the each action icon that makes action bar look cluttered in case of many actions on action bar as the icon as well as labels take space on action bar for an action. Displaying only actions icons on the action bar will provide more real estate for other icons. The tooltip will display the corresponding actin label on mouseover on each action.
Issue Number(s)
Screenshots or recordings
Checklist
Semver
This project uses semver, please check the scope of this PR:
Examples:
ember-hook
selectorsember-hook
selectorsCHANGELOG