papercups-io/papercups

Hide widget outside of working hours

開放

#413 建立於 2020年11月23日

 (2 則留言) (0 個反應) (0 位負責人)Elixir (566 個分叉)batch import
enhancementfrontendgood first issue

倉庫指標

星標
 (6,032 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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)

貢獻者指南