Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add agent's availability in chat widget #165

Closed
rosinghal opened this issue Aug 17, 2020 · 10 comments
Closed

Add agent's availability in chat widget #165

rosinghal opened this issue Aug 17, 2020 · 10 comments
Assignees
Labels
enhancement New feature or request

Comments

@rosinghal
Copy link

It would be helpful for users to see if any agent is online. We can even have offline mode.

Currently there is nothing shown irrespective of agent's availability.

@reichert621
Copy link
Collaborator

good idea @rosinghal! what do you think is the best way to display this information in the chat?

@rosinghal
Copy link
Author

rosinghal commented Aug 19, 2020

@reichert621
When agents are available
Open chat window - 'Agents available'
Close chat window - show default color

When agents are not available
Open chat window - 'Agents not availlable'
Close chat window - gray color the chat icon

@reichert621 reichert621 self-assigned this Sep 4, 2020
@reichert621 reichert621 added the enhancement New feature or request label Sep 4, 2020
@reichert621
Copy link
Collaborator

@rosinghal I'm thinking of starting off with a pretty simple UI for this, something like:
Screen Shot 2020-09-05 at 2 39 19 PM

what do you think?

@rosinghal
Copy link
Author

@reichert621
Looks, nice. What about when agents are not available?

@reichert621
Copy link
Collaborator

maybe just this for now?
Screen Shot 2020-09-05 at 10 24 53 PM

@rosinghal
Copy link
Author

Looks good @reichert621.

@reichert621
Copy link
Collaborator

(I'll also make the text editable in case you want to customize it, e.g. "We're not available at the moment" vs "Agents are offline")

@reichert621
Copy link
Collaborator

@rosinghal @timgl this should be ready now in our latest version! (papercups-io/chat-widget#46)

for this to work, just add the following to your config:

config: {
  // ...
  showAgentAvailability: true,
  // ...and if you want to customize the text:
  // agentAvailableText: "Agents available",
  // agentUnavailableText: "Agents not available",
}

let me know if you have any issues!

@reichert621
Copy link
Collaborator

actually seeing some issues with this in production for some reason, reopening for now 😞

@reichert621 reichert621 reopened this Sep 8, 2020
@reichert621
Copy link
Collaborator

should be fixed now 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants