Closed
Bug 1239972
Opened 9 years ago
Closed 9 years ago
Adapt infobar message based on whether a link clicker is in the room or not
Categories
(Hello (Loop) :: Client, defect, P1)
Hello (Loop)
Client
Tracking
(Not tracked)
RESOLVED
FIXED
Iteration:
48.3 - Apr 25
People
(Reporter: RT, Assigned: crafuse)
References
Details
User Story
We realized that it can be confusing that the infobar states "You are sharing your tabs. Any tab you click on can be seen by your friends" regardless of whether someone else is in the room or not. We need 2 different copies: - Copy 1: the link generator is alone in the room, he needs to be informed that when someone else will join him, that person will see his tabs Copy for implementation: "As soon as your friend joins, they will be able to see any tab you click on." - Copy 2: the link generator and the link clicker are together in the room, the link generator needs to be informed that his tabs can be seen by the link clicker. Copy for implementation: "You are now sharing your tabs. Your friend will see any tab you click on."
Attachments
(6 files, 2 obsolete files)
40 bytes,
text/x-github-pull-request
|
dmosedale
:
review+
|
Details | Review |
9.29 KB,
image/png
|
sevaan
:
ui-review+
|
Details |
54.21 KB,
image/png
|
sevaan
:
review+
|
Details |
40 bytes,
text/x-github-pull-request
|
dmosedale
:
review+
dmosedale
:
feedback+
|
Details | Review |
8.90 KB,
image/png
|
sevaan
:
ui-review+
|
Details |
8.59 KB,
image/png
|
sevaan
:
ui-review+
|
Details |
No description provided.
Reporter | ||
Updated•9 years ago
|
User Story: (updated)
Reporter | ||
Comment 1•9 years ago
|
||
Matej could you please help us here with appropriate copies for the scenarios mentionned above?
Rank: 25
Flags: needinfo?(matej)
Priority: -- → P2
Comment 2•9 years ago
|
||
(In reply to Romain Testard [:RT] from comment #1)
> Matej could you please help us here with appropriate copies for the
> scenarios mentionned above?
How about the following?
> - Copy 1: the link generator is alone in the room, he needs to be informed that when someone else will
> join him, that person will see his tabs
"As soon as your friend joins, they will be able to see any tab you click on."
> - Copy 2: the link generator and the link clicker are together in the room, the link generator needs to
> be informed that his tabs can be seen by the link clicker.
"You are now sharing your tabs. Your friend will see any tab you click on."
Flags: needinfo?(matej)
Updated•9 years ago
|
Whiteboard: [triage]
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → crafuse
Reporter | ||
Comment 3•9 years ago
|
||
(In reply to Matej Novak [:matej] from comment #2)
> (In reply to Romain Testard [:RT] from comment #1)
> > Matej could you please help us here with appropriate copies for the
> > scenarios mentionned above?
>
> How about the following?
>
> > - Copy 1: the link generator is alone in the room, he needs to be informed that when someone else will
> > join him, that person will see his tabs
>
> "As soon as your friend joins, they will be able to see any tab you click
> on."
>
>
> > - Copy 2: the link generator and the link clicker are together in the room, the link generator needs to
> > be informed that his tabs can be seen by the link clicker.
>
> "You are now sharing your tabs. Your friend will see any tab you click on."
Looks good to me, just made a change to "As soon as your friend joins, he will be able to see any tab you click on." (replaced "they") and updated the user story field. If this is good with you then it's ready for implementation.
User Story: (updated)
Comment 4•9 years ago
|
||
(In reply to Romain Testard [:RT PTO until Feb 1st] from comment #3)
> (In reply to Matej Novak [:matej] from comment #2)
> > (In reply to Romain Testard [:RT] from comment #1)
> > > Matej could you please help us here with appropriate copies for the
> > > scenarios mentionned above?
> >
> > How about the following?
> >
> > > - Copy 1: the link generator is alone in the room, he needs to be informed that when someone else will
> > > join him, that person will see his tabs
> >
> > "As soon as your friend joins, they will be able to see any tab you click
> > on."
> >
> >
> > > - Copy 2: the link generator and the link clicker are together in the room, the link generator needs to
> > > be informed that his tabs can be seen by the link clicker.
> >
> > "You are now sharing your tabs. Your friend will see any tab you click on."
>
> Looks good to me, just made a change to "As soon as your friend joins, he
> will be able to see any tab you click on." (replaced "they") and updated the
> user story field. If this is good with you then it's ready for
> implementation.
I would recommend switching this back to "they" or potentially using "she."
Updated•9 years ago
|
Rank: 25 → 24
Whiteboard: [triage]
Assignee | ||
Comment 6•9 years ago
|
||
create bug to remove the following string after new strings are implemented:
infobar_screenshare_browser_message2
Comment 7•9 years ago
|
||
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8717520 [details] [review]
[loop] chrafuse:bug-1239972-adapt-infobar-message-if-link-clicker-in-room-or-not > mozilla:master
Strings section.
Attachment #8717520 -
Flags: review?(dmose)
Comment 9•9 years ago
|
||
Comment on attachment 8717520 [details] [review]
[loop] chrafuse:bug-1239972-adapt-infobar-message-if-link-clicker-in-room-or-not > mozilla:master
r=dmose
Attachment #8717520 -
Flags: review?(dmose) → review+
Assignee | ||
Comment 10•9 years ago
|
||
Starting infobar guest in room status message change.
Status: NEW → ASSIGNED
Reporter | ||
Comment 11•9 years ago
|
||
Updating priority to reflect the fact we want this one done in our sprint commencing this week.
Rank: 24 → 9
Priority: P2 → P1
Reporter | ||
Updated•9 years ago
|
Rank: 9 → 11
Reporter | ||
Updated•9 years ago
|
Assignee | ||
Comment 12•9 years ago
|
||
Should this message be the same when I am paused and un-paused in an empty room? Back ground colour is different when paused.
Attachment #8726865 -
Flags: review?(rtestard)
Assignee | ||
Comment 13•9 years ago
|
||
Assignee | ||
Comment 14•9 years ago
|
||
Comment on attachment 8726866 [details]
Unpaused Empty Room
Here is message for Un-paused in an empty room.
Attachment #8726866 -
Attachment description: Unpaused Empty Room with si → Unpaused Empty Room
Attachment #8726866 -
Flags: review?(rtestard)
Assignee | ||
Comment 15•9 years ago
|
||
Maybe we need to communicate to users like in the broadcasting industry.
Suggestions of future live tab sharing connotations:
https://www.google.ca/imgres?imgurl=https://cleeng.com/blog/wp-content/uploads/2016/01/live-broadcast.jpg&imgrefurl=https://cleeng.com/blog/going-ott-broadcast-live-key-challenges/&h=448&w=817&tbnid=O1DITanB9qqtdM:&docid=7rjqU7MSzfl7AM&ei=fN_ZVtquFpjcjwOx24K4DA&tbm=isch&ved=0ahUKEwja3P3S36fLAhUY7mMKHbGtAMcQMwhjKD8wPw
-or-
https://www.google.ca/imgres?imgurl=https://www.airtime.pro/wp-content/uploads/2015/01/live-broadcast-airtime1.jpg&imgrefurl=https://www.airtime.pro/tag/live-broadcast/&h=427&w=640&tbnid=PW3VuG2JK4Wv2M:&docid=hh1eB8ps0zTAQM&ei=fN_ZVtquFpjcjwOx24K4DA&tbm=isch&ved=0ahUKEwja3P3S36fLAhUY7mMKHbGtAMcQMwhFKCEwIQ#h=427&imgdii=PW3VuG2JK4Wv2M%3A%3BPW3VuG2JK4Wv2M%3A%3BjUJxH2_c-EJqwM%3A&w=640
Attachment #8726867 -
Flags: review?(sfranks)
Attachment #8726867 -
Flags: review?(rtestard)
Assignee | ||
Comment 16•9 years ago
|
||
Paused state and guest in room and not sharing tabs.
Attachment #8726868 -
Flags: review?(rtestard)
Comment 17•9 years ago
|
||
(In reply to Chris Rafuse :crafuse from comment #12)
> Created attachment 8726865 [details]
> Paused Empty Room with similar message to Unpaused Empty Room
>
> Should this message be the same when I am paused and un-paused in an empty
> room? Back ground colour is different when paused.
This message should read differently if the user has paused sharing. Maybe:
"You have stopped sharing your tabs. When your friend joins, they won't be able to see anything until you restart sharing."
(In reply to Chris Rafuse :crafuse from comment #15)
> Created attachment 8726867 [details]
> Un-paused Guest In Room with join nofication shown in Ubuntu Linux - Live!
>
> Maybe we need to communicate to users like in the broadcasting industry.
This is a fun idea, and I like it. Will explore.
(In reply to Chris Rafuse :crafuse from comment #16)
> Created attachment 8726868 [details]
> Paused Guest In Room and not sharing tabs.
>
> Paused state and guest in room and not sharing tabs.
This should have a period at the end to be consistent with out other notification bars.
Comment 18•9 years ago
|
||
Comment on attachment 8726867 [details]
Un-paused Guest In Room with join nofication shown in Ubuntu Linux - Live!
Shouldn't the Firefox/Nightly logo be in that notification? Or it doesn't work like that in Linux?
Attachment #8726867 -
Flags: review?(sfranks) → review+
Comment 19•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8726865 -
Attachment is obsolete: true
Attachment #8726865 -
Flags: review?(rtestard)
Assignee | ||
Comment 21•9 years ago
|
||
Added punctuation and will need translation.
Attachment #8726868 -
Attachment is obsolete: true
Attachment #8726868 -
Flags: review?(rtestard)
Attachment #8728792 -
Flags: review?(sfranks)
Assignee | ||
Updated•9 years ago
|
Attachment #8728792 -
Flags: review?(sfranks) → ui-review?(sfranks)
Assignee | ||
Updated•9 years ago
|
Attachment #8726866 -
Flags: review?(rtestard) → ui-review?(sfranks)
Assignee | ||
Comment 22•9 years ago
|
||
Comment on attachment 8726901 [details] [review]
[loop] chrafuse:bug-1239972-adapt-infobar-message-based-on-link-clicker-in-the-room-or-not > mozilla:master
No tests yet but will create separate bug for test creation.
Attachment #8726901 -
Flags: review?(dmose)
Assignee | ||
Updated•9 years ago
|
Attachment #8726867 -
Flags: review?(rtestard)
Updated•9 years ago
|
Attachment #8726866 -
Flags: ui-review?(sfranks) → ui-review+
Updated•9 years ago
|
Attachment #8728783 -
Flags: ui-review?(sfranks) → ui-review+
Updated•9 years ago
|
Attachment #8728792 -
Flags: ui-review?(sfranks) → ui-review+
Comment 23•9 years ago
|
||
Comment on attachment 8726901 [details] [review]
[loop] chrafuse:bug-1239972-adapt-infobar-message-based-on-link-clicker-in-the-room-or-not > mozilla:master
The notification bar is being re-shown (i.e. re-transitioned in) when it shouldn't be, which looks weird. Chris and I have chatted about it, and he's pursuing the strategy described at https://developer.mozilla.org/en-US/Add-ons/Code_snippets/Alerts_and_Notifications#Using_notification_box to fix.
Removing the r? for now.
Attachment #8726901 -
Flags: review?(dmose)
Comment 24•9 years ago
|
||
Comment on attachment 8726901 [details] [review]
[loop] chrafuse:bug-1239972-adapt-infobar-message-based-on-link-clicker-in-the-room-or-not > mozilla:master
After discussion with Ian, we've decided that we can live with the transition regression. Chris, can you please spin that out to another bug (unless it's already covered by the existing "flicker" bug, in which case that bug should have another acceptance criterion added to that user story so that it gets verified fixed.
Attachment #8726901 -
Flags: review?(dmose)
Comment 25•9 years ago
|
||
Comment on attachment 8726901 [details] [review]
[loop] chrafuse:bug-1239972-adapt-infobar-message-based-on-link-clicker-in-the-room-or-not > mozilla:master
Feedback+ as a start. Please create a branch with some of the suggestions we talked about and documented in the PR and re-request review so that I can get a sense of whether it feels more readable/maintainable, despite the necessary workaround.
Attachment #8726901 -
Flags: review?(dmose) → feedback+
Reporter | ||
Updated•9 years ago
|
Rank: 11 → 10
Assignee | ||
Comment 26•9 years ago
|
||
Dan and I were reviewing https://github.com/mozilla/loop/pull/244
Came to the conclusions to:
A) fix looprooms structure
B) make it more unit testable
C) or just make it work with risk of coverage
Seeing in the time given I think the current code may work with one question:
Is this.switchTabNonOwnerParticipants an issue of being overwritten in this situation?
this.switchTabNonOwnerParticipants is to hold the state of guests in room while or after switching tabs
or is there another way to store the state between tab switching operations?
Flags: needinfo?(standard8)
Comment 27•9 years ago
|
||
I discussed this with Chris and Dan yesterday, and we came up with a small fix to the LoopRooms structure that should allow a simpler fix to take place.
Flags: needinfo?(standard8)
Reporter | ||
Updated•9 years ago
|
Reporter | ||
Updated•9 years ago
|
Rank: 10 → 9
Assignee | ||
Comment 28•9 years ago
|
||
Comment on attachment 8726901 [details] [review]
[loop] chrafuse:bug-1239972-adapt-infobar-message-based-on-link-clicker-in-the-room-or-not > mozilla:master
Added Mochitests for infobar button type and messages in paused and un-paused states.
Attachment #8726901 -
Flags: review?(dmose)
Comment 29•9 years ago
|
||
Comment on attachment 8726901 [details] [review]
[loop] chrafuse:bug-1239972-adapt-infobar-message-based-on-link-clicker-in-the-room-or-not > mozilla:master
A big step in the right direction; feedback+ and comments in the PR.
Attachment #8726901 -
Flags: review?(dmose)
Assignee | ||
Comment 30•9 years ago
|
||
Any reason the mochitests are not outputting to console?
Running this after git-export build of latest fx-team.
./mach test browser/extensions/loop/chrome/test/mochitest/browser_mozLoop_sharingListeners.js | grep bar > ~/Documents/projects/infoBarTestOutput.txt
empty file.
The setup of a connection to the browser seems a large and will take a bit to create the connection. Suggest we avert this test and create later as not to block existing progress.
Review comments have been addressed for infobar.
Flags: needinfo?(standard8)
Flags: needinfo?(dmose)
Comment 31•9 years ago
|
||
So, we figured out the blank file stuff yesterday, and now we're got a hypothesis of how we can get a test basically working and stood up, so removing the needinfos.
Flags: needinfo?(standard8)
Flags: needinfo?(dmose)
Assignee | ||
Comment 32•9 years ago
|
||
Added infobar tests to browser_LoopRooms_channel.js, fails on no room found after setting up a room and using ROOM_TOKEN to match the roomToken generated but fails. It seems it is required to now have a room in the rooms array exist to test the infobar at all. Original tests fail now. Any suggestions on how to connect or fake a rooms list with the containing room?
Flags: needinfo?(standard8)
Comment 34•9 years ago
|
||
Chris, I've push some new commits to your branch. You now need to:
- Go through the diffs in the PR & remove all the logging statements.
- Rebase on latest master to pick up the Travis fix.
- Get Dan to finish reviewing.
Here's a summary of what I did:
- The existing infobar tests were too interleaved with the other tests that were running:
I split out to a new test file, started off by working out the basics - what tests were required (just like we do with unit tests), and then filling in the tests themselves. I realised that working with start/stopBrowserSharing direct was a much more consistent and easier way of testing, as that's where we are actually controlling the sidebar.
- Moved the listeners for room join/left from MozLoopService to bootstrap: start/stopBrowserSharing
I was confused as to why MozLoopService was trying to control the sharing. After taking the code out & realising what broke, it became obvious that the start/stopBrowserSharing should be setting up listeners direct, and it be handled alongside the rest of that code.
- The other 3 commits were minor tidy up & comments.
Assignee | ||
Comment 35•9 years ago
|
||
Comment on attachment 8726901 [details] [review]
[loop] chrafuse:bug-1239972-adapt-infobar-message-based-on-link-clicker-in-the-room-or-not > mozilla:master
Removed console logs and debugs. local mochitests passed except error posted in PR.
Attachment #8726901 -
Flags: review?(dmose)
Comment 36•9 years ago
|
||
r=dmose in the PR, once the commits I've mentioned are added.
Comment 37•9 years ago
|
||
I've seen some odd test failures locally, but they are ones that I've also seen without these patches. That said, I think this wants a try run before we land it.
Updated•9 years ago
|
Attachment #8726901 -
Flags: review?(dmose) → review+
Comment 38•9 years ago
|
||
Try build happening at:
https://hg.mozilla.org/try/rev/cd8587e81a60d531160a846181504dbac70796f2
Comment 39•9 years ago
|
||
New try build to handle the alert:alert issues on non-Mac
https://treeherder.mozilla.org/#/jobs?repo=try&revision=adca033ddabd
Comment 40•9 years ago
|
||
Try passed. I've already collapsed the commits into one.
Comment 41•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Iteration: --- → 48.3 - Apr 25
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•