Open Bug 988151 Opened 11 years ago Updated 2 years ago

getConfiguration("availableTargets") should take visibility and/or position into account

Categories

(Firefox :: Tours, defect)

defect

Tracking

()

Tracking Status
firefox30 - ---
firefox36 --- affected

People

(Reporter: MattN, Unassigned)

References

Details

I guess we need to define better what "available" means or perhaps include a boolean value indicating visibility. Use cases: A1) Page wants to know that if the addons button is in a the *hidden* bookmarks toolbar. A2) Page wants to know if "accountStatus" is actually visible in the menu panel or if its hidden. (It can currently use getConfigutation("sync") but it's still somewhat weird to say the target is available when the (widget of the) target is @hidden=true (see the panel cavest below). B) The page is handling showing and hiding the menu itself (perhaps because it wants to show the menu in a tour step before annotating anything inside). The page needs to know if the target is in the panel menu or not in order to know whether hideMenu should be called. I have been wondering if getTarget or the target's query function could handle some of this itself. The menu panel is somewhat special since the items aren't visible before the panel is first constructed and the panel will automatically open to make it visible. We can check the scrollWidth/scrollHeight to take display: none of a parent element into account or handle it in the target's query function before it looks at the anonymous children? We should probably address these issues in some way or the menu panel is going to end up open more than necessary in the tour once users start customizing (e.g. opening the tour from the Help menu).
Depends on: 988305
No longer depends on: 988305
Matt, is there any scope to get this done in time for 29? Even if we don't use it in the tour for release, it would be a nice-to-have should we get breakage over time. I understand if this is not possible in the time we have left, but thought I'd ask!
Flags: needinfo?(MattN+bmo)
It's very unlikely to make 29 since today was the last day for speculative fixes and there are still quite a few bugs marked with higher priority. I've nominated this for our teams backlog so maybe someone else can pick it up sooner. We can try aim for 30 since we'll still be running the welcome (firstrun) tour.
Flags: needinfo?(MattN+bmo) → firefox-backlog?
Whiteboard: [Australis:P4] → [Australis:P4+]
Ok understood thanks, Matt!
Flags: firefox-backlog? → firefox-backlog+
I see it in the backlog and also as 'nice to have' - but there's no obvious reason why this should be a tracking issue. If there's a speculative fix that's Beta-safe in the next two weeks, please nominate for uplift and we can try it out on the larger population to make sure there aren't any obvious regressions. No need to drive on this bug though as it's an enhancement more than a regression fix.
Blocks: 1056390
It's worth noting here: by the time this bug gets worked on we will likely be using the current implementation in production. Whatever alterations are made, we need to try and avoid introducing breaking changes if at all possible.
No longer blocks: 1098620
Getting this on the radar for the /whatsnew tour deploying in 36. It's in our current wireframes to highlight the icon for users who have it in their toolbar.
Removing this as a blocker for 36 as our wireframes work without it.
No longer blocks: fx-UITour-hello-36
Whiteboard: [Australis:P4+] → [Australis:P4+] [fxprivacy]
Flags: qe-verify?
Priority: -- → P1
Priority: P1 → P3
Blocks: 1216897
No longer blocks: 1216897
Flags: qe-verify?
Flags: firefox-backlog+
Priority: P3 → --
Whiteboard: [Australis:P4+] [fxprivacy] → [Australis:P4+]
Discussed during the team's Release 45 Planning meeting.
Component: General → Tours
Whiteboard: [Australis:P4+]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.