Closed Bug 1084016 Opened 10 years ago Closed 10 years ago

Navigation menu is broken for logged-in users with recommendations on

Categories

(Marketplace Graveyard :: Consumer Pages, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED
2014-11-25

People

(Reporter: krupa.mozbugs, Assigned: kngo)

References

()

Details

(Keywords: regression)

steps to reproduce:
1. Load https://marketplace-dev.allizom.org/
2. Sign in using persona

observed behavior:
Header navigation menu is broken. See screenshot

screenshot: https://www.dropbox.com/s/4fpmfnohinfankb/Screenshot%202014-10-16%2012.57.02.png?dl=0
Persona is disabled on -dev, so I can't reproduce (neither on stage). Logging in or logging out of the FxA, I don't see anything broken in Firefox:

https://www.dropbox.com/s/1gta2qls7tsim10/Screenshot%202014-10-17%2010.24.26.png?dl=0
I think this was caused by Rob turning on recommendations on dev.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
(In reply to krupa raj[:krupa] from comment #2)
> I think this was caused by Rob turning on recommendations on dev.

It is. And it's still a valid bug. It should work when recommendations are enabled.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: nobody → kngo
Summary: Navigation menu is broken for logged-in users → Navigation menu is broken for logged-in users with recommendations on
Severity: major → normal
Priority: -- → P2
Did you do a git bisect on this? If this was always the case since the Recommendations patch, nevermind me. But if I caused this regression with bug 1083625, feel free to revert and I'll re-push with fixed changes.
No, it changed with the fit-content stuff (which I can't get working in like Safari), and before then it was fixed percentage widths. Just need to spend some time on a patch that gives some more room to the navbar container.
(In reply to Kevin Ngo [:ngoke] from comment #5)
> No, it changed with the fit-content stuff (which I can't get working in like
> Safari), and before then it was fixed percentage widths. Just need to spend
> some time on a patch that gives some more room to the navbar container.

I was playing locally with flexbox (`flex-grow`) and it worked fantastically - all of the nav items were divided up equally. I was then able to remove the styles for waffle enabled vs. disabled.

http://philipwalton.github.io/solved-by-flexbox/demos/grids/

In my testing, perf was decent on simulator and on my 2.1 device. Even though the new flexbox landed in Firefox 20, I need to go back and check 1.1-1.3. And I'm not sure if we have to support 1.0 (which is stuck on Firefox 18, so we'd have to target old flexbox, but we already should since we do cross-platform; but we have Stylus mixins for this anyway).
1.1-1.3 wouldn't matter since mobile has a differently-styled navbar. You should be able to commit your flexbox stuff without issue.
(In reply to Kevin Ngo [:ngoke] from comment #8)
> 1.1-1.3 wouldn't matter since mobile has a differently-styled navbar. You
> should be able to commit your flexbox stuff without issue.

What do you mean? Even on 1.1-1.3, users are still using Yulelog, the iframe'd Marketplace. So any updates we make will affect those users, right? Or am I missing something?
This bug is about the navbar on the desktop. They will get the update, but the CSS won't apply to them.
Oh, I was going to apply to both mobile and desktop. But, clever idea! I could target only desktop. Luckily I don't think we had FxOS tablets on 1.1-13.
I'm working on this. Kevin, if you really want to work on it let me know. But I've got a patch locally.
Assignee: kngo → cvan
Target Milestone: 2014-10-21 → 2014-11-04
Blocks: 1054086
Blocks: 1097332
Target Milestone: 2014-11-04 → 2014-11-18
Assignee: cvan → kngo
A JS line-fitting solution: https://github.com/mozilla/fireplace/pull/806
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Resolution: --- → FIXED
Target Milestone: 2014-11-18 → 2014-11-25
Verified as fixed in https://marketplace-dev.allizom.org/ on FF 36 (Win 7, Android 4.2.1).
Postfix screencast http://screencast.com/t/OIE2lXXcZY
Closing bug.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.