Closed
Bug 971116
Opened 11 years ago
Closed 11 years ago
UI Tour: Implement new UI highlight effect
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
FIXED
Firefox 30
People
(Reporter: mmaslaney, Assigned: bwinton)
References
Details
(Whiteboard: [Australis:P4+])
Attachments
(2 files, 3 obsolete files)
(deleted),
image/png
|
Details | |
(deleted),
patch
|
MattN
:
review+
bwinton
:
ui-review+
Gavin
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
An example of the desired animation can be found here, on frame 5:
http://tobiasahlin.com/spinkit/
The UX team feels that using this animation (a little slower than the example) would better catch the user's attention during the tour.
Comment 1•11 years ago
|
||
Will this replace the existing "zoom" effect or be added as a new effect?
Flags: needinfo?(mmaslaney)
OS: Mac OS X → All
Summary: UI Tour: Implement UI highlight animation → UI Tour: Implement new UI highlight effect
Updated•11 years ago
|
Whiteboard: [Australis:P4]
Updated•11 years ago
|
Whiteboard: [Australis:P4] → [Australis:P4+]
Assignee | ||
Comment 3•11 years ago
|
||
So, after talking with Madhava, this is more or less what we've come up with in terms of styling.
There are a couple of changes I might suggest, but I'm not sure how to get them in, since they're coming from the webpage.
1) I'm hard-coding a default of "wobble", but that should really be coming from the page.
2) We don't want the appMenu to be highlit until the user hits "Let's go".
Thanks,
Blake.
Assignee: nobody → bwinton
Attachment #8387822 -
Flags: ui-review?(madhava)
Attachment #8387822 -
Flags: review?(bmcbride)
Comment 4•11 years ago
|
||
Comment on attachment 8387822 [details] [diff] [review]
A first cut at the patch to animate the highlight.
Review of attachment 8387822 [details] [diff] [review]:
-----------------------------------------------------------------
I haven't looked at the CSS changes yet but I think some of the JS changes should be left out unless there is a good reason for them.
::: browser/modules/UITour.jsm
@@ +69,5 @@
> },
> widgetName: "PanelUI-fxa-status",
> }],
> ["addons", {query: "#add-ons-button"}],
> + ["appMenu", {query: "#PanelUI-button"}],
This seems like an unrelated change that would be better in a separate bug. It's not clear why this needs to change as it was done how it is for a reason.
@@ +276,5 @@
> let effect = undefined;
> if (this.highlightEffects.indexOf(data.effect) !== -1) {
> effect = data.effect;
> + } else {
> + effect = "wobble";
I'm not sure we want to change the default since the page can already change this. If we did want to change the default, you should do so in the argument definition of showHighlight: 'aEffect = "none"'
@@ +816,5 @@
> let maxDimension = Math.max(highlightHeight, highlightWidth);
>
> // If the dimensions are within 40% of eachother, make the highlight a circle with the
> // largest dimension as the diameter.
> + highlightHeight = highlightWidth = maxDimension;
This won't work for wide widgets like the urlbar and search targets.
Attachment #8387822 -
Flags: feedback-
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Matthew N. [:MattN] from comment #4)
> I haven't looked at the CSS changes yet but I think some of the JS changes
> should be left out unless there is a good reason for them.
Well, I _try_ not to change things randomly… ;)
> ::: browser/modules/UITour.jsm
> @@ +69,5 @@
> > + ["appMenu", {query: "#PanelUI-button"}],
> This seems like an unrelated change that would be better in a separate bug.
> It's not clear why this needs to change as it was done how it is for a
> reason.
It's related because the PanelUI-menu-button now has a hover style which is larger than the PanelUI-menu-button itself. (The hover style takes up the entire PanelUI-button.) This hover style leads to the highlight getting lost in the visual noise, and only highlighting the inside of the button, which isn't what we're trying to do.
> @@ +276,5 @@
> > if (this.highlightEffects.indexOf(data.effect) !== -1) {
> > effect = data.effect;
> > + } else {
> > + effect = "wobble";
> I'm not sure we want to change the default since the page can already change
> this. If we did want to change the default, you should do so in the argument
> definition of showHighlight: 'aEffect = "none"'
That _would_ be better, although I'm hoping that we can do this in the page instead, and this code can be removed.
> @@ +816,5 @@
> > // If the dimensions are within 40% of eachother, make the highlight a circle with the
> > // largest dimension as the diameter.
> > + highlightHeight = highlightWidth = maxDimension;
> This won't work for wide widgets like the urlbar and search targets.
Do we highlight those? (We don't currently, as far as I can tell, but we might have plans to later.)
Perhaps I should leave the dimension check in, and just make it less strict?
Thanks for the comments!
Assignee | ||
Comment 6•11 years ago
|
||
Hey Alex, I hear you might be the person to make the website part of the changes listed in comment 3…
Thanks,
Blake.
Flags: needinfo?(agibson)
Comment 7•11 years ago
|
||
(In reply to Blake Winton (:bwinton) from comment #3)
> 1) I'm hard-coding a default of "wobble", but that should really be coming
> from the page.
> 2) We don't want the appMenu to be highlit until the user hits "Let's go".
Hi Blake,
I can take care of the web pages changes when this lands.
Can I please clarify what I should be setting the highlight animation type to for the new effect, “zoom”?
Flags: needinfo?(agibson)
Assignee | ||
Comment 8•11 years ago
|
||
"wobble", and is there any way you could not highlight the appMenu sooner than when this lands?
(I mean, if you want to wait, I'm completely fine with that, but it's a change that we'ld like to make, and doesn't really depend on the in-product parts, so there's not a lot of benefit in waiting… :)
Comment 9•11 years ago
|
||
I can make a pull request for this first thing Monday morning and get it pushed live (probably) the same day - can you wait landing this until then? I can post a comment here when it's done.
Assignee | ||
Comment 10•11 years ago
|
||
Oh yeah, my best guess is that this isn't going to land until Tuesday, and really, I think I want to wait for your changes before landing it, to make sure I didn't mess anything up… :) Thanks!
Comment 11•11 years ago
|
||
Ok, so just to be clear I should only remove the initial app menu highlight first, then once this bug lands I can add the “wobble” animation type?
Or us it safe for me to add “wobble” pre-emptively as well? (Can't remember off the top of my head if this is already an existing anim name)
Assignee | ||
Comment 12•11 years ago
|
||
"wobble" already exists, so you're safe to add it, too.
(And if it didn't exist, it would turn into "none", which is what we currently have, so adding it wouldn't be a problem. :)
Comment 13•11 years ago
|
||
If “wobble” already exists then maybe I shouldn't be adding it pre-emptively, since would it then display an animation type we don't want to see in the tour until this bug lands?
Assignee | ||
Comment 14•11 years ago
|
||
Hmm… That could be. Did you want to add "spiral" (which doesn't exist), and I'll use that instead of "wobble"?
Comment 15•11 years ago
|
||
I'm fine to leave it as “wobble” but then only specify the anim type in the web page once this bug has landed, if that also works for you?
Comment 16•11 years ago
|
||
Just thinking, if we did use a different (new) name for this animation type, and didn't set it to default if nothing is specified, would we still have to remove the initial highlight?
Could we then leave the current page as-is, then when this bug lands I can just use the new anim name where we need it?
Assignee | ||
Comment 17•11 years ago
|
||
I'm happy to leave the animation as "wobble", and change it in the page later.
But we still want to remove the initial highlight, either now or when we change the animation to "wobble".
Comment 18•11 years ago
|
||
Ok, will just remove the initial highlight for now :)
Comment 19•11 years ago
|
||
(In reply to Blake Winton (:bwinton) from comment #5)
> It's related because the PanelUI-menu-button now has a hover style which is
> larger than the PanelUI-menu-button itself. (The hover style takes up the
> entire PanelUI-button.) This hover style leads to the highlight getting
> lost in the visual noise, and only highlighting the inside of the button,
> which isn't what we're trying to do.
Do you mean due to bug 969376, or something else?
> > @@ +816,5 @@
> > > // If the dimensions are within 40% of eachother, make the highlight a circle with the
> > > // largest dimension as the diameter.
> > > + highlightHeight = highlightWidth = maxDimension;
> > This won't work for wide widgets like the urlbar and search targets.
>
> Do we highlight those? (We don't currently, as far as I can tell, but we
> might have plans to later.)
> Perhaps I should leave the dimension check in, and just make it less strict?
We support it, and there's plans to use it, yes. We explicitly don't want to regress that.
Status: NEW → ASSIGNED
Comment 20•11 years ago
|
||
Comment on attachment 8387822 [details] [diff] [review]
A first cut at the patch to animate the highlight.
Review of attachment 8387822 [details] [diff] [review]:
-----------------------------------------------------------------
And the other things already mentioned.
::: browser/base/content/browser.css
@@ +997,5 @@
> + 50% {
> + transform: rotate(360deg) translateX(3px) rotate(-360deg);
> + }
> + 51% {
> + transform: rotate(0deg) translateX(3px) rotate(0deg);
This makes it glitchy half way through.
Attachment #8387822 -
Flags: review?(bmcbride) → review-
Assignee | ||
Comment 21•11 years ago
|
||
(In reply to Blair McBride [:Unfocused] from comment #19)
> > It's related because the PanelUI-menu-button now has a hover style which is
> > larger than the PanelUI-menu-button itself.
> Do you mean due to bug 969376, or something else?
I think it might be bug 909349 that re-added the hover style…
> We support it, and there's plans to use it, yes. We explicitly don't want to
> regress that.
Reverted, kinda. I've switched it to 2.1, so that the bookmarks combo-button gets a circle (as Madhava requested), but wider things won't.
> > + 51% {
> > + transform: rotate(0deg) translateX(3px) rotate(0deg);
> This makes it glitchy half way through.
Turns out I was thinking of iOS, which won't let you rotate more than 359º. In CSS, apparently you can use 720º, so that's what I've gone for. (I didn't see the glitch last time, though, so please let me know if this is still glitchy for you.)
Thanks,
Blake.
Attachment #8387822 -
Attachment is obsolete: true
Attachment #8387822 -
Flags: ui-review?(madhava)
Attachment #8388195 -
Flags: ui-review?(madhava)
Attachment #8388195 -
Flags: review?(bmcbride)
Comment 22•11 years ago
|
||
Hi Blake,
I've submitted a PR which includes removing the initial highlight on the door hanger menu:
https://github.com/mozilla/bedrock/pull/1765
I'll comment here when this goes to prod.
Comment 23•11 years ago
|
||
To avoid confusing our poor engineer brains, next time could you split these issues into separate bugs. This bug is really about updating two animation styles in Firefox.
(In reply to Blake Winton (:bwinton) from comment #3)
> 1) I'm hard-coding a default of "wobble", but that should really be coming
> from the page.
> 2) We don't want the appMenu to be highlit until the user hits "Let's go".
And these are about updating the page, so should be filed under www.mozilla.org :: Pages & Content, with agibson CC'ed/needinfo'ed (see eg bug 981542).
Comment 24•11 years ago
|
||
Comment on attachment 8388195 [details] [diff] [review]
The next version of the patch…
Review of attachment 8388195 [details] [diff] [review]:
-----------------------------------------------------------------
r+ assuming it was intentional that you're not longer updating the zoom effect.
::: browser/modules/UITour.jsm
@@ +812,5 @@
> let maxDimension = Math.max(highlightHeight, highlightWidth);
>
> // If the dimensions are within 40% of eachother, make the highlight a circle with the
> // largest dimension as the diameter.
> + if (maxDimension / minDimension <= 2.1) {
Update the comment above this, where it mentions 40%.
Attachment #8388195 -
Flags: review?(bmcbride) → review+
Assignee | ||
Comment 25•11 years ago
|
||
(Carrying forward r=Unfocused.)
Nit fixed, and yes, since I'm not updating the zoom animation on purpose. :)
Thanks!
Attachment #8388195 -
Attachment is obsolete: true
Attachment #8388195 -
Flags: ui-review?(madhava)
Attachment #8388484 -
Flags: ui-review?(madhava)
Attachment #8388484 -
Flags: review+
Updated•11 years ago
|
Attachment #8388484 -
Flags: ui-review?(madhava) → ui-review+
Updated•11 years ago
|
Keywords: checkin-needed
Comment 26•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [Australis:P4+] → [Australis:P4+][fixed-in-fx-team]
Comment 27•11 years ago
|
||
Backed out for mochitest-bc failures.
https://hg.mozilla.org/integration/fx-team/rev/a996c3c2f00d
https://tbpl.mozilla.org/php/getParsedLog.php?id=35896720&tree=Fx-Team
Whiteboard: [Australis:P4+][fixed-in-fx-team] → [Australis:P4+]
Assignee | ||
Comment 28•11 years ago
|
||
Ah poop. Still, this looks like a pretty easy test-only fix, so I'll try to get to it later tonight.
Thanks for the backout, Ryan!
Assignee | ||
Comment 29•11 years ago
|
||
Test fixed, and "mach mochitest-browser browser/modules" completely passes now.
Attachment #8388484 -
Attachment is obsolete: true
Attachment #8389167 -
Flags: ui-review+
Attachment #8389167 -
Flags: review?(bmcbride)
Comment 30•11 years ago
|
||
Comment on attachment 8389167 [details] [diff] [review]
The next final version of the patch.
I'm off sick, so redirecting to Matt.
Attachment #8389167 -
Flags: review?(bmcbride) → review?(MattN+bmo)
Comment 31•11 years ago
|
||
Comment on attachment 8389167 [details] [diff] [review]
The next final version of the patch.
I just independently noticed that test would fail from this patch while looking at this code today and came here to see the backout. :P
Attachment #8389167 -
Flags: review?(MattN+bmo) → review+
Assignee | ||
Comment 32•11 years ago
|
||
(Please update the commit message to r=MattN when committing…)
Keywords: checkin-needed
Comment 33•11 years ago
|
||
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: [Australis:P4+] → [Australis:P4+][fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P4+][fixed-in-fx-team] → [Australis:P4+]
Target Milestone: --- → Firefox 30
Comment 35•11 years ago
|
||
Should this be uplifted?
Flags: needinfo?(bwinton)
Flags: needinfo?(MattN+bmo)
Assignee | ||
Comment 36•11 years ago
|
||
We definitely want it landed when Australis hits Beta!
Flags: needinfo?(bwinton)
Flags: needinfo?(MattN+bmo)
Comment 37•11 years ago
|
||
Comment on attachment 8389167 [details] [diff] [review]
The next final version of the patch.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Australis
User impact if declined: no fancy highlight effect when using the tour
Testing completed (on m-c, etc.): on m-c
Risk to taking this patch (and alternatives if risky): low, mostly CSS changes, minor low-risk logic changes
String or IDL/UUID changes made by this patch: none
Attachment #8389167 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #8389167 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 38•11 years ago
|
||
status-firefox29:
--- → fixed
status-firefox30:
--- → fixed
Comment 39•11 years ago
|
||
Verified as fixed using the following environment:
FF Beta 29.0b4
Build Id:20140331125246
OS: Win 7 x64, Ubuntu 13.04 x 64, Mac Os 10.8.5
Updated•11 years ago
|
QA Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•