jadjoubran / webdash

🔥 Orchestrate your web project with Webdash the customizable web dashboard
https://webdash.xyz
MIT License
1.54k stars 70 forks source link

A loading state for plugins #77

Open jadjoubran opened 6 years ago

jadjoubran commented 6 years ago

using paper-progress

that shows a loader at the top of the plugin and can be enabled/disabled from the plugins

Feedback? 👍 or 👎

adithyaChander commented 6 years ago

Hey, Is this issue open? If it is, could I please give it try ? This looks really interesting.

jadjoubran commented 6 years ago

Hey @adithyaChander Yes indeed this is still open 😄 Feel free to submit a PR and also feel free to ask me for help throughout if you've got any questions, I'd love to help Cheers!

adithyaChander commented 6 years ago

Hey @jadjoubran . Thanks a lot ! :) I will work on this and submit a PR. This is really exciting. :)

jadjoubran commented 6 years ago

Thank you! Don't hesitate to ask for help as this one might be a bit tricky Cheers!

adithyaChander commented 6 years ago

Yeah, sure. Any input is much appreciated. I am going through the code to understand how the application works. If you think I should start from a specific place, kindly let me know. Thank you once again.

jadjoubran commented 6 years ago

I did a quick research and we're most likely going to have to do something similar to the below:

<plugin-wrapper> and the plugin that's being loaded in it need to communicate. Either via events or by 1 or 2 way data binding to let the plugin signal that it's in a loading state And whenever the <plugin-wrapper> is in a loading state, then we show the loader

I'm still not sure exactly how, if you get stuck, I can do further research

plugin-wrapper is in src/plugin-wrapper.html, I think this is where most of the changes will be and you might need to play with a sample plugin (to trigger the loading state), you can clone any plugin I've used or setup a new plugin from scratch