papercups-io/papercups

Hide widget outside of working hours

Ouverte

#413 ouverte le 23 nov. 2020

 (2 commentaires) (0 réaction) (0 personne assignée)Elixir (566 forks)batch import
enhancementfrontendgood first issue

Métriques du dépôt

Stars
 (6 032 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

Problem As a company it is a bad experience if a customer messages me and there is no response

Solution As a user I want to be able to hide widget outside of working hours. I want to have a boolean flag is set.

You need to modify: https://github.com/papercups-io/chat-widget

  • Widget should have a boolean field with the flag hideWidgetOutsideOfWorkingHours (Or whatever reasonable name it is)
  • When a user sets the boolean to true the widget should be hidden when it is outside of working hours
  • Dashboard should have a button that toggles this on and off https://github.com/papercups-io/papercups - dashboard change to persist the data

Edge cases:

  • If the boolean is set before the user has the working hours set it should show a console log but should not hide the widget
  • When a user has finished

Testing A user should be able to set the flag a minute in the future and when they refresh the flag a minute later it should hide the widget

Questions, or need help getting started? Feel free to ask below, or ping us on Slack :)

(You can also check out our CONTRIBUTING.md)

Guide contributeur