Closed Bug 824158 Opened 11 years ago Closed 8 years ago

Need additional icon in chat titlebar that can be used to show ephemeral activity

Categories

(Firefox Graveyard :: SocialAPI, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mixedpuppy, Assigned: mixedpuppy)

Details

(Keywords: uiwanted)

Attachments

(5 files, 1 obsolete file)

We need an indicator icon that appears after the title in the chat window titlebar.  This is used in minimized chat windows to show someone is typing, or to show the number of unseen messages in that window.
In the meantime, providers can update the title of the page to include (Typing...) or (1), (2), (3), etc for the number of unread messages. We crop in the middle of the title, so the end of the title has a high chance of being visible most of the time.
OS: Mac OS X → All
Hardware: x86 → All
Target Milestone: Firefox 20 → ---
Attached image normal chat status.png
Attached image chat with activity.png
Attached image chat indicator prototype.png (obsolete) —
Can the single icon be usable enough for this?

[(g) Jared Wein] could be a green icon to say that I'm online.
[(y) Jared Wein] could be a yellow icon to say that I'm idle.
[(4) Jared Wein] could be a green or yellow backgrounded icon to say that there are 4 unread messages
[(...) Jared Wein] could be an icon to show that someone is typing (again, green for active, yellow for idled text in the input).
firefox implementation

- has secondary activity icon next to close button (not an intentional location, it is a quick-n-dirty implementation)
- shows issue with the difference in the title bar not being obvious enough
Attachment #702036 - Attachment is obsolete: true
Attached patch chaticon.patchSplinter Review
quick implementation of secondary activity icon
Attachment #702071 - Flags: feedback?(jaws)
Comment on attachment 702071 [details] [diff] [review]
chaticon.patch

Review of attachment 702071 [details] [diff] [review]:
-----------------------------------------------------------------

::: browser/base/content/socialchat.xml
@@ +96,5 @@
>          let rel = link.rel && link.rel.toLowerCase();
>          if (!link || !link.ownerDocument || !rel || !link.href)
>            return;
> +        let isIcon = link.rel.indexOf("icon") >= 0;
> +        let isActivityIcon = link.rel.indexOf("activity") >= 0;

This can use the new String.contains (available starting in Firefox 18).

@@ +108,5 @@
>          // we made it this far, use it
> +        if (isIcon)
> +          this.setAttribute('image', uri.spec);
> +        if (isActivityIcon)
> +          this.setAttribute('activityicon', uri.spec);

If the rel attribute has both "icon" and "activity" this will set both icons to the same icon. I think we should only update the activity icon if "activity" is in the rel attribute.

How does a provider remove the activity icon? Do they have to add a <link rel="activity" href="data:img/png;"> ? Seems kinda hacky.

Also, the names here for 'image' and 'activityicon' should be play along together better. Super-generically they could be 'startIcon' and 'endIcon' or maybe they could be 'statusIcon' and 'activityIcon'.

::: browser/themes/gnomestripe/browser.css
@@ +2420,5 @@
>    padding: 0;
>  }
>  
> +chatbox:not([minimized]) > .chat-titlebar > .chat-activity-icon {
> +  display: none

I think it still makes sense to show the activity icons for restored and focused chats. Sometimes I leave the focus in a textbox for the chat while idling, and still want to get notification from the provider that my friend is typing. Or is the provider expected to show their activity notification within the iframe when the chat is restored?
Attachment #702071 - Flags: feedback?(jaws) → feedback+
Assignee: nobody → mixedpuppy
Status: NEW → ASSIGNED
Summary: need additional icon in chat titlebar → Need additional icon in chat titlebar that can be used to show ephemeral activity
Whiteboard: [needs-ux]
Keywords: uiwanted
Whiteboard: [needs-ux]
deprecation in fx51
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: