Closed elastalink closed 5 years ago
Yes! This would be great. If you can start with small pull requests to make me comfortable with the changes. It's possible you may retrain me on how to do CSS correctly. Help with fixing CSS would be very much appreciated.
No problem. We plan first to move styles from HTML part of the template to styles.css. Most of your elements already have id's, so its just matter of defining the styles. And then for JS part of the template used to change DOM, instead of making changes per element (using QS functions), we would add class to the body (for example "fullscreen") which will affect all the elements using CSS selector defined in style.css. If you are OK with this strategy, how about if we start with login.handlebars as a proof of concept?
Sounds great and yes, starting with the login screen is a great way to start. Many thanks.
No problem and THANK YOU for this great project. Here is our first request: #159
Can we close this issue? I think we can comment when PR's are submitted. However, I am not a GitHub expert.
I suggest to leave it open as a centralized reference to upcoming PR, until all the styles are moved from templates to CSS. But if you prefer to close it, that is OK as well.
Our 2nd pull request is focused on default.handlebars template and extending style.css: #170
So, I accepted the request however like the first pull request, it's clearly never been tested at all and breaks a lot of things. Now, I click on a device and I see a gray screen. I guess I have to spend today fixing all of the issues.
Hmm, we can not replicate this situation on our forked branch. Since you merged our PR, we will clone your master and check where is the issue. Can we have a quick call before we both start making changes? I will send you my contact info to your hotmail address.
Thanks for chatting, your help is very much appreciated. I will hold off on changing default.handlebars and style.css for a while until your team takes a look at it. Just "npm install meshcentral" and put the two latest files (default.handlebars / style.css) in the server and take a look, the problems should be obvious. Thank you in advance.
Great, we are on it.
Great. Published MeshCentral v0.3.1-z with all the CSS changes.
Arg. I just noticed a gap at the bottom on the login screen. Working on fixing that.
Tnx. We are experimenting with a new approach using CSS grid, which is ideal for a fullscreen layouts and it will take care of hight adjustments currently done is JS. But there are challenges combining CSS grid and a centered layout with fixed width, on the same page! Give us few days to tryout some ideas...
Replacing any JS with CCS would be great, I do notice it in the rendering speed. Can't wait to see what you guys come up with.
3rd PR #189 : All styles from default.handlebars are now moved to CSS. For FullScreen layout, we added CSS grid that will handle content resizing to fit available height. And we added two new toggle buttons (icons):
We will pause working on other templates and allow time for testing.
Hi. Thanks for the work, I saw the new aspect radio button, I like it! I took a quick look and as with previous PR's it's not well tested and a bunch of things are broken.
Let me know if you want me to fix all these. Again, thanks for all the changes, very appreciated. Ylian
Looking into it a bit more:
Sorry about that, we expected a few issues, but not so many. Thank you for fast feedback and please continue listing all the issues on this thread. We are committed to getting them all fixed and resubmit PR.
We already fixed the rest of the reported issues except IE support and the My Devices list not filling the list (2nd column being empty on your last screenshot). We can not recreate this condition and I was hoping if you can let us know how this happened (above you also have a screenshot of My Devices screen that properly devided list in two columns).
BTW: I didn't realize that you are still trying to support IE11, since Edge is for a while default Windows browser and IE has limited support for WebRTC and CSS Grid. But if want, we can try to make CSS grid work with IE.
All reported issues are now fixed in PR #193, except we could not recreate the issue with a list of devices not aligned to fill the screen. On our tests, it works on all browsers even when you hit refresh without need to call deskAdjust() twice.
Thank you for being patient and if you find any more bugs we will be happy to fix them.
Perfect, thanks! Let me give it a try!
Not sure what is going on, but the UI is now unusable, picture below. Maybe I am not doing something right? I did get the latest login.hb, default.ng and style.css... however, it's clearly not right at all. If it works correctly on your side, let me know.
Something must be wrong with GitHub merge. After you merged PR #193, I cloned the master and files were not merged correctly. I sent 3 files to your private email. Please try to overwrite them on your clean clone and if you are still getting strange UI issues, please call me. You can see a 9min video of a quick walkthrough of latest CSS with IE, Edge, FireFox and Chrome: https://youtu.be/N8bKEET4YEQ
I will give it another try later today. If the styles.css was not correct, that would cause the issues I have seen.
I just took a look at the 3 files you mailed me and yes, they work great! I could not find any issues. This is great work. I love it. One thing I do want to fix is the little UI switch arrows so that existing users will see the same UI as they are used to. I have lots of users and I don't want the UI to change on them unless they change it. I will work on that tomorrow and get it released.
FYI. If your company is offering a service with MeshCentral and Intel vPro, let me know. I will gladly promote it.
Great! Do you know what got broken after merging PR? Hopefully, in the future, there will be fewer changes and PR will work properly. Do you want us to continue working on other handlebars view files?
BTW, thank you for offering to promote us. We are hoping to launch after summer a PC-as-a-service package based on Intel NUC's with vPro and remote management based on MeshCentral/MeshCommander (and now with IDER - amazing !). This might be a good case study for you. I'll keep you posted...
Hi Elastalink,
Your contribution to the project is amazing. I believe we can help you on white paper etc.
Regards,
Joko
Published MeshCentral v0.3.2-t with the new CSS. I made some fixes and changed the way we switch between UI modes. I also added a full screen button to the Intel AMT tab. It looks good and I like the new CSS.
Thank you @jsastriawan. We are glad to be involved in such a great project!
Arg. It looks like the new CSS is completely messed up on MacOS Safari. Could you take a look at it? Let me know if not, I will if needed.
@Ylianst, we tested with Safari on two different MAC's (macos sierra and mojave) and everything looks perfect. I don't know what is causing this issue on your MAC. Since we cannot replicate, can you look at it?
I am going to close this issue as the CSS in MeshCentral as been updated and works ok. I still have problems with older browsers that I may fix at some point. Don't hesitate to open a new issue if we can cooperate on more things.
I would like to modernize UI through custom style.css, but most of the elements styles are embedded within handlebars templates. Therefore, any changes we made in templates are overwritten on a new release.
If you are interested, we would like to contribute to your project and work on moving styles to style.css and updating *.handlebars files while maintaining the same level of functionality and design.
Before we issue PR, let me know if you are open to this change.