papercups-io / wordpress-plugin

The Wordpress plugin for our chat widget
GNU General Public License v2.0
5 stars 3 forks source link

Implementation details for Papercups wordpress plugin #1

Open reichert621 opened 4 years ago

reichert621 commented 4 years ago

@ZmagoD @carterax you both expressed interest in working on this, so just wanted to start a discussion thread on github to sort out how best to implement this 😄

My naive thought is that all we need the plugin to do is basically just embed this html https://github.com/papercups-io/chat-widget#using-in-html on whatever pages the user wants the widget on, and allow the user to specify the values for each field in a nice wordpress-friendly UI.

Does that make sense?

ZmagoD commented 4 years ago

Hi @reichert621 I had a same idea as you mentioned. I think this can be done in few steps so everyone is welcome to contribute. Maybe we can have few tasks:

carterax commented 4 years ago
  1. A good boilerplate generator which can be easily configured to use gulp https://wppb.me/
  2. Admin UI based off Antd?
  3. Translation based off @wordpress/i18n
  4. For interactivity and no page refresh on the backend i was thinking we add custom endpoints to the WordPress REST API
  5. State management with React hooks and Mobx-react
  6. Admin page routing via query strings.
reichert621 commented 4 years ago

this all sounds great! sounds like you both have better ideas than I do 😛

I'd love it if you could work on this together -- for the very first version we can probably keep the admin UI pretty simple?

would you guys mind starting to create issues/tickets to start splitting up and assigning the work? (maybe one way of splitting it up could be: @ZmagoD starts on the boilerplate + injecting widget logic, @carterax starts on the admin UI? but feel free to split it up differently 😄 )

carterax commented 4 years ago

if @ZmagoD agrees with this arrangement, it totally works for me 😄

ZmagoD commented 4 years ago

It works for me @carterax let's keep it simple so we can have a MVP asap, we can iterate and make it fancy later. I can prepare the tasks and start to work on them in the evening (my time zone is UTC+1 😄 ) If you want and have time we can pair on some of them, just let me know.

carterax commented 4 years ago

My timezone is West Africa Time, i'll be ready to pair when you are.

reichert621 commented 4 years ago

excited to see this get started 🎉 thanks guys!

ZmagoD commented 4 years ago

Great @carterax you are quite close then 😄 we can arrange something for tomorrow morning we can chat on slack for the exact time

carterax commented 4 years ago

@ZmagoD perfect