-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Feat/files sidebar cleanup standards #23164
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
Conversation
|
With that we should move the comments and version tabs tomorrow @rullzer what do you think? :) |
e0346ae to
df5bae2
Compare
|
/compile amend / |
df5bae2 to
4fafd65
Compare
rullzer
left a comment
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.
sure
4fafd65 to
82952e8
Compare
|
Fixed jsunit |
|
Missing reviewer, I thought I saw 2 🤷 |
|
Failures unrelated, waiting for last two acceptances tests! |
My pleasure :-) I found an issue, though, but I have not verified yet why it happens, so it may be a bug here or in the changes I made for Talk:
The header for the Chat tab will be the active one, but the contents of the tab will show the Sharing contents. As I said it could very well be a bug in the Talk implementation, so it could be good to disable Talk and instead register a dummy tab which is shown before the Sharing tab to test this. |
danxuliu
left a comment
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 issue seems to be in this pull request:
- Disable comments and versions, as they have not been ported yet; also disable Talk if it was enabled from a previous test
- Add the following code in apps/files_sharing/src/files_sharing_tab.js before registering the Sharing tab so two dummy tabs are created:
OCA.Files.Sidebar.registerTab(new OCA.Files.Sidebar.Tab({
id: 'aaa',
name: 'Aaa',
icon: 'icon-file',
async mount(el, fileInfo, context) {
const paragraph = document.createElement('p')
const text = document.createTextNode('Hello world')
paragraph.append(text)
el.append(paragraph)
},
update(fileInfo) {
},
destroy() {
},
}))
OCA.Files.Sidebar.registerTab(new OCA.Files.Sidebar.Tab({
id: 'aaa2',
name: 'Aaa2',
icon: 'icon-file',
async mount(el, fileInfo, context) {
const paragraph = document.createElement('p')
const text = document.createTextNode('Greetings world')
paragraph.append(text)
el.append(paragraph)
},
update(fileInfo) {
},
destroy() {
},
}))
- Rebuild JavaScript files
- In the Files app, create a file
- Open the File menu actions of the file and click Details, so the sidebar opens on the first tab
The header for the Aaa tab will be the active one, but the contents of the tab will show the Aaa, Aaa2 and Sharing contents (they might be vertically out of screen due to the min-height: 100% of the contents, check the scrollbar). When another tab is clicked the previous tab contents are hidden, although all those not clicked yet are still shown. Inspecting the DOM it can be seen that after the sidebar was originally opened all the sections were visible, but after selecting a specific tab the previous section style was changed to display: none.
Yes, this is fixed in upstream vue components. |
Also, you can keep them, they are fully compatible with this new API btw :) |
Cool :-) Should we wait for a new nextcloud-vue release and bump it in this pull request before merging?
Ah, sorry, I got confused by a previous comment. Great :-) |
danxuliu
left a comment
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.
Tested (with nextcloud-libraries/nextcloud-vue#1429) and works 👍
But please do not merge before @skjnldsv had time to answer about the nextcloud-vue bump ;-)
This comment has been minimized.
This comment has been minimized.
|
/compile amend / |
5e7970d to
092103d
Compare
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
092103d to
185f844
Compare
|
/compile amend / |
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
185f844 to
eca4682
Compare
|
Regression with file renames in share sidebar (and possibly others): #24101 |
Long time needed! Before it gets too messy, let's do this!