-
Notifications
You must be signed in to change notification settings - Fork 61
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
Fix DOM problems and styling #164
Conversation
@nextcloud/designers anyone willing to install this and take a look and review it? |
@LordSimal aside from fixing the two issues you mentionned, any other changes? Thanks for your help and sorry we missed your awesome pr! :) |
Hello @skjnldsv, ok, didn't see that branch therefore reverted the change in the appinfo.info.xml The main "change" here is the layout of the different elements. I didn't add any functional code, just refactored the DOM of the settings-admin.php and with that adjusted some classes and styling. My main problem here was, that the elements weren't using the space that was given on the desktop variant very efficiently. Therefore I introduced a flex based Grid in the bottom of the style.css and implemented this grid in the refactored DOM from above. Also there were DOM errors present like missing which have been resolved with that.Oldhttps://i.pfiff.me/serverinfo-app-old.mp4 New |
Our editorconfig is in the server repo: It should work when you check it out inside server repo which most people do for local development anyway |
This is still not fixed, we indent with a tab character here, not 4 spaces :) |
@LordSimal good stuff! :) Could you use the The sections would be:
What do you think? |
As desired by @jancborchardt I added sections to the DOM. I also moved all the headings outside of the infoboxes and added 2 new icons (profile silhouette and a folder icon) Also, as mentioned above, I added the given .editorconfig from the server repository to this repo and reformated the whole project with PHPStorm. |
Sorry, im dumb. I forgot to rebase my fork to the current master. |
well reading carefully would help as well. Sorry for the many comments, kind of a messy pull request now^^ I understood @jancborchardt message to insert Will try to adjust that now. |
@jancborchardt you really want each described section with that much padding on all sides? |
Check how we do it on the other settings pages. :) It’s generally always in the style of:
Please use the same structure here so it looks uniform. :) |
@jancborchardt |
@LordSimal looks much better! I’d only also put the "External monitoring program" at the very bottom into its own section. Otherwise 👍 on the enhancement |
@jancborchardt as desired I put the "External monitoring program" into its own section. |
Nice 👍 Would you mind to revert the changes unrelated to this pr? For example all files in |
@kesselb |
Thanks 👍
No problem. We can squash them later into one commit. |
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.
Thanks for this great contribution 👍 Some smaller nitpicks. Feel free to ignore nice to have comments.
To any other reviewer ;) I'm unable to apply https://patch-diff.githubusercontent.com/raw/nextcloud/serverinfo/pull/164.patch but https://patch-diff.githubusercontent.com/raw/nextcloud/serverinfo/pull/164.diff works. Only the user.svg and folder.svg ended up in the wrong directory (but this seems to be a phpstrom hiccup). |
Signed-off-by: Kevin Pfeifer <kevin.pfeifer@sunlime.at>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: Kevin Pfeifer <kevin.pfeifer@sunlime.at>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: Kevin Pfeifer <kevin.pfeifer@sunlime.at>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: Kevin Pfeifer <kevin.pfeifer@sunlime.at>
…queries Signed-off-by: Kevin Pfeifer <kevin.pfeifer@sunlime.at>
…aders Signed-off-by: Kevin Pfeifer <kevin.pfeifer@sunlime.at>
… by kesselb Signed-off-by: Kevin Pfeifer <kevin.pfeifer@sunlime.at>
Signed-off-by: Kevin Pfeifer <kevin.pfeifer@sunlime.at>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: Kevin Pfeifer <kevin.pfeifer@sunlime.at>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: Kevin Pfeifer <kevin.pfeifer@sunlime.at>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: Kevin Pfeifer <kevin.pfeifer@sunlime.at>
…queries Signed-off-by: Kevin Pfeifer <kevin.pfeifer@sunlime.at>
…aders Signed-off-by: Kevin Pfeifer <kevin.pfeifer@sunlime.at>
@juliushaertl as desired I rebased my fork |
Hey @juliushaertl, I would like to improve some more things. Could you review this PR a second time and merge it? Otherwise we probably do another rebase round ;) |
I also found some more improvements to be made, but I have also learned, that I should create a PR for each little feature instead of doing it all together ^^ |
That rebase seems to not have worked out. Are all the important commits from you? Or did someone else also push stuff here. Then I can rebase this and scrap all the wrong commits. |
I really don't know what I should do now. |
I pushed some commits to his branch. |
https://github.com/nextcloud/serverinfo/pull/164/files#diff-2f86cb96a0233e7cb3b6f03ad573be0bR38 seems to be a leftover from the merge. I tried to rebase the branch locally but to many conflict. I'm totally lost which changes are relevant and which not. |
Okay so we all 3 are at the same point 💃 So let me try a rebase with the pick list from above and see if it still looks good and shiny |
Thanks a lot again @LordSimal for stepping up and polishing the UI so hard. You can now reset your own master to upstream/master I also invited you to the organisation, once you accepted the invite, you can create branches and push them to our repo, that allows easier collaboration in the future :) I hope you stay on board and sorry that it took so long. |
Hello guys,
since I updated my NC Server to 17 and this App was activated by default, I recognised, that the styling can be improved.
What have I done?
Basically I have refactored the DOM (since there were some unclosed HTML tags), adjusted the styling according to the new DOM and refactored the JS.
Main factor on the CSS side was, that I introduced a CSS Grid (see at the bottom of style.css) based on the bootstrap row-col system with 12 columns.
But I only implemented the responsive classes, that I thought were necessary.
Also I had to adjust the appinfo/info.xml so this app has "official" support for NC 17.
Otherwise I couldn't install the app.
The result
https://i.pfiff.me/refactored-serverinfo-app.mp4
This would fix issues:
Fix #158, Fix #155