-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI Overhaul #1552
UI Overhaul #1552
Conversation
Weee, i'm so looking forward to playing with this. Thank you so much, i'll review asap and reserve 0.9.0-beta for hopefully rolling this out. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need public/favicon.png
, do we?
No, it is basically just leftovers from the official svelte template. And there is still a lot of duplicate assets in there which will be removed during further progress. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool. Here are some things that jumped at me right away, but definitely on a good path, great work!
The duplicated files are due to the remaining pug components, i assume?
You might want to run npm run lint-fix
in your repo to enforce the code style.
As for the conflicts, i would wait for #1553 to be merged and then rebase this branch on master. The gitignore conflict can be resolved by accepting both changes. Resolving |
…into pajlow-master
I sent you a PR to resolve the conflicts, if that's ok with you. I hope i did not break any of your changes. https://github.com/pajlow/ubports-installer/pull/1 Great work so far! I like the new state-aware way of handling modals and views. Still some stuff to be done, i think, but it looks to me as if this is on a very good way. How do you want to handle this further, are you planning to continue to work on it? Or do you want someone else to take over? What's your strategy regarding CSS? I'm also not afraid of properly changing how some stuff in the UI works, so if you feel like it's too difficult to replicate the old behavior in some parts, i'm open for new ideas. |
That is fine. I will merge it today. I just saw you deleted one development related command/dependency which I use for auto reload in svelte. |
@NeoTheThird What are the advantages of changing svelte.js and rollup.config.js to .mjs files? They broke some things for me when including require. Do you have another solution for implementing reload when developing? |
@pajlow you were using es6 import in those files, so they need to be modules. If you want to use commonjs require, feel free to change it back. Make sure to check the linter ( |
@NeoTheThird is unlock modal the follow up to oem-lock? I have unfortunately no locked device to test it... |
@pajlow no, it's used to display instructions before the os selection screen. the old canonical devices, for example, need to not be running android, before the installer can do anything. you can just select the bq aquaris e4.5 in the device selection to see what this looks like. btw, if you want to bring up any of the modals in the pug version, start the installer with |
@NeoTheThird I am almost done with the views. Next up will be the remaining modals but I have to rewrite some stuff because there is a lot of dom element creation going on there. |
Awesome! So happy to finally get rid of the dom creation, that should be so much simpler now! Would you mind if we already merge #1576? That one touches a lot of the backend files and also a few frontend things, but I'm happy to help resolve the conflicts, of course. |
@NeoTheThird No problem. I will merge it this evening after you open the PR. |
alright, all done, won't touch the pug files from now on :) rebase away |
Alright, i sent you a PR here https://github.com/pajlow/ubports-installer/pull/2. That should handle most of the cleanup. make sure you read my note on the linter. you should be able to just rebase-and-merge that pr for the commits to show up here and then pull (use |
Linter and cleanup
Co-authored-by: Jan Sprinz <[email protected]>
Don't forget to run |
The linting is working perfectly, thanks! So far I resolved the udev modal issue and added Yumi. I think I will still need some time to go through the files and adjust the styling. Just go ahead with another release. I'm okay with resolving some conflicts. |
Remaining things are animations(particles, push files and download), accordion in dev mode modal (I used cards, because there is no component based solution for bootstrap 5 in Svelte yet). I can't check all modals because I can't mock all different scenarios. Is the overall installation process working? I have only one device I use as a daily driver. |
Hey @pajlow, thanks again for your work, and apologies again for the long pause. I would now like to move forward with this. I think most of your work here is done, if you want to, i can take it from here. To allow me to merge this PR, you would have to accept and merge https://github.com/pajlow/ubports-installer/pull/3. If you don't have time for that right now, that's also fine, then i will merge your contributions into our master directly. Whatever works better for you :) |
Hi, welcome back! I am okay with you taking over. Did the current state of my repo work for you? I had some trouble with the remote.getGlobal calls. |
Thanks! No, it did not work completely, but i managed to get through in the dev tools with some trickery. But that's fine for now. My suggestion would be to merge this as-is and break some stuff, then incrementally fix things until everything works again and shoot for an 0.9 series release soon-ish. It's a good idea to try and move fast here, i think, because these constant conflict resolutions eat up too many resources. And if we need a hotfix on one of the 0.8 series releases, we can still do that by branching off an older state, we don't need to keep master pristine for that. Alright. Do you maybe just want to merge https://github.com/pajlow/ubports-installer/pull/3, then i can use your PR here, that way your name is on the PR, too, and not just on the commits.
Sounds great, looking forward to that! |
Pajlow master
Merged! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
I am very happy with this! After some fixing and intensive testing, i think we are very close to having everything working again. Great work! Really looking forward to doing more with this. This is going to unblock so many UI-related things! 🎉 🎉 🎉 |
Hello! I've been looking at this PR for some time and I'm very happy that its development continued. I've made some designs for the installer some time ago and I'd like to share them in case they are useful for future improvements. https://www.figma.com/file/aHMB2HNuWn0ilqSq3L0O0A/Installer Thank you for all your work :) |
@capsia37 maybe you should open a new issue to get some thoughts on your designs. :) |
Hello, so this is my progress so far on #1150 . This PR gives an overview and is by far not the fully working installer. The next step would be to migrate all modals to svelte and then continue to handle all data exchanged between the components and the node backend properly. Just let me know if I should continue and if there are things you would handle differently. ATM the code is not very organized because I still have to implement a lot of things and clean up afterwards. After all dependencies are installed
npm run dev
is enough to get you started.