enhancementfrontendgood first issue
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)