naraesk / plasma-codeship

Plasma widget showing codeship build status
GNU General Public License v3.0
0 stars 0 forks source link

Multiple projects #1

Open mgian opened 7 years ago

mgian commented 7 years ago

Hello,

any possibility that plasma-codeship will support more that 1 project per widget in the future ?

Thanks

naraesk commented 7 years ago

Hello,

sure, if I find some time. But you are aware, that you can have multiple instances of plasma-codeship and configure each widget for a different project?

kind regards

mgian commented 7 years ago

I know that I can have multiple instances of plasma-codeship, but with about 15 active projects it is not really manageable :-(

naraesk commented 7 years ago

It's going to be long list anyway. What do you have in mind? Just a big list, more or less like having 15 widgets in a row vertically?

mgian commented 7 years ago

I know it's going to be long list, not my fault we had so many projects at work ;-)

I was thinking about having 15 (or a configurable amount) of widgets in a row and every entry is expandable to show the configured branch(es).

Something like

project-1 [-]
   - master
   - devel
   - test
project-2 [+]
project-3 [-]
   master
project-4 [-]
   master
   devel

then if you click on the [+] of project-2, it will expand to show the branch(es), if you click on the [-] of project-1 it will hide the branch(es)

naraesk commented 7 years ago

Please have a look at the last commit. Ui has some small flaws, but all in all it should work. In the config dialog, you have to enter all branches of project 1, then all branches of project 2 and so on. Will try to improve this anothertime.

mgian commented 7 years ago

Seems good. I will test it thoroughly as soon as I have some spare time.