bancorprotocol / webapp-v2

https://beta.bancor.network
MIT License
1 stars 2 forks source link

adding chat option to the menu #339

Open ashachaf opened 2 years ago

ashachaf commented 2 years ago

as a user, i would like to have an easy option to open the chat and speak to support

flow:

  1. click the menu icon
  2. open the menu
  3. view a "chat" option
  4. click "chat"
  5. open the widget
  6. when a user close the widget, hide it.

the script below append a "floating" chat icon on the page. i do not want this implementation.

(before merging, need to restrict the domain)

zavelevsky commented 2 years ago

Attached screenshots of the default behavior. We need to configure it to hide the bubble (hopefully they provide a proper way to do it) and we need to make the necessary call. Seems we need: window.zE.hide() window.zE.showIPMWidget()

Another thing to consider is that this is a loader for a 3rd party script. Maybe we want to bundle their code? This is doable only if zendesk's server allows CORS. @yudilevi ?

IMAGE 2021-10-25 13:07:12 IMAGE 2021-10-25 13:07:35

yudilevi commented 2 years ago

@zavelevsky less worried about zendesk - what potential issue do you see there?

zavelevsky commented 2 years ago

@zavelevsky less worried about zendesk - what potential issue do you see there?

@yudilevi We are loading source code that zendesk are hosting and we run it in our app. If they are compromised so are we. It's a matter of risk management.

yudilevi commented 2 years ago

@zavelevsky what's the effort in mitigating it?

zavelevsky commented 2 years ago

@yudilevi we need to get their code (easy), bundle it (easy) and use it. The main question is whether we'll get CORS error when the code will try to call zendesk's server - which will force us to work as originally intended. effort wise - It turns it from a 1 hr task to a 5 hr task.

yudilevi commented 2 years ago

@zavelevsky ok, let's do it then