-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Basic work for right sidebar #17656
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
Basic work for right sidebar #17656
Conversation
|
Basically this brings the following:
I know... a lot of classes and not so fancy names... |
|
@jancborchardt I think it's still too early to tweak the styles. I'll let you know when it's ready 😄 |
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.
This won't work as there is a hardcoded value of 36x36 as a fallback and we need something larger. We keep running into this issue.
Besides, I don't think we need lazy loading here. Just point to the preview using generatePreviewUrland the browser will show it when ready.
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.
The mockup indicates 50x50, but that's too small for the prevew of a selected file. Maybe we should load a 200x200 preview and let the browser resize it based on the available width, if the sidebar is responsive.
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'll add it as todo. The FIXME already says that what I did here is wrong 😉
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.
Ah, yeah, I only looked at the todos :D
|
|
I realize that the file info details (the top view) cannot be extended block-wise. I'm not too happy yet about the way how to provide tab view and detail view, it seems quite cumbersome to implement/extend a big class just for a few lines. Also due to the problematic loading order of JS files I had to do this: https://github.com/owncloud/core/pull/17656/files#diff-593f07f9e5d32f4d3fdebbfb2fa5b71aR144 |
|
|
|
|
I'm not sure if we want to do the share dialog task for now. When testing, please make sure to test the sidebar in the other views: "Shared with you", "Deleted files", etc. 😄 |
Nothing against many classes, if they make the whole feature better readable, understandable and maintainable. Of course this can be done, but I do not see it here. The naming however should make you roughly understand what this is it about. DetailsView is pretty general, more obvious would be to have Sidebar or Panel in it's name indeed, but would cost you flexibility to change it in the future to a e.g. bumping circle. As it shows details, I am good with the naming. Most importantly, the structure makes sense to me. All question that occurred to me were well answered in this approach. |
|
@blizzz thanks for the feedback 😄 |
|
|
495d422 to
62d1388
Compare
|
I changed the scrolling behavior: now the sidebar has its own scrollbar. @jancborchardt I think you can start tweaking the styles now and test the interaction 😄 |
|
|
|
@PVince81 please do not use jQuery UI here, as we want to ideally get rid of it. Simply use buttons, and I will style them properly similar to the database chooser on installation. |
|
The reason I used tabs is just because I wanted to save time and saw a working example on the LDAP settings page.
|
1d30248 to
d1439ec
Compare
|
My attempt to fix the test. Also rebased. |
|
A new inspection was created. |
|
JS unit tests fail: I'll look into this. |
|
I hereby approve all commits from @blizzz and @Henni and @jancborchardt with this 👍 Please review my commits too so we can get this merged. |
|
And so am I honoured to give a 👍 to all commits from @PVince81 @Henni and @jancborchardt 🎆 |
|
Unless there is any objection, I will merge this as soon as Jenkins gives the green light. 💡 |
Basic work for right sidebar
|
Here we go. Please raise tickets separately. I'll soon make a ticket for the file actions (favorites + click on thumbnail) |
|
Raised ticket to implement the missing actions (thumbnail click + favorite click): #18169 |
|
@PVince81 great work man! :) |
|
@PVince81 branch can be deleted? |
Yes. Strangely Github didn't show me the button yesterday. |
On mobile? Because on mobile it isn't present |
|
No, on desktop web UI. It was probably a temporary glitch. |




Adds right sidebar with registrable panels (still WIP)
For #17655
Note: file actions are currently disabled for demo purposes. When clicking on a file it will show the sidebar but not perform any action.