-
Notifications
You must be signed in to change notification settings - Fork 440
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
Adjust Files sidebar tab to changes in server #4291
Adjust Files sidebar tab to changes in server #4291
Conversation
I'd suggest rebasing against spreed master as this branch doesn't run with the latest server master (PHP errors).
=> seems it's looking for an element id that doesn't exist in sidebar mode, might need to set the id "conversaion_$token" on the scroll container Edit: I've submitted a fix here #4531 |
Indeed, it needs a rebase. That is one of the reasons why it is a draft not ready for review yet :-P |
yeah I know, no worries. :-) just needed this branch to check whether sidebar mode still works in my PR #4363 |
I know you're working on it, just wanted to mention it as I first thought it was a bug on master but isn't ^ |
any update ? need help ? it's now the third time I need to test some changes with the sidebar :-/ |
|
b1d3aee
to
9ab3c5c
Compare
@danxuliu I took the liberty of rebasing this and fixing the above issues:
was there anything else to work on to finish this ? (a checkbox list would be nice) If you intended to do bigger cleanups I'd still be in favor of merging this (if the state is acceptable) at least to fix the regression and not block other people. The cleanup could be addressed separately. |
9ab3c5c
to
c1d018e
Compare
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
When a tab is registered in the Files sidebar a component is no longer provided. Instead an object with some attributes that describe the tab (like id or icon) and some callbacks for lifecycle events is expected now. Essentially the AppSidebarTab component is now created by the Sidebar itself instead of being given it. However, as the component needed some adjustments in its CSS style that needs to be forced when the child component is mounted. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
With the changes in the Files app sidebar API the Chat tab can be directly used in the OCA.Files.Sidebar.Tab object without having to use a special Vue component as a bridge. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
c1d018e
to
3a8de08
Compare
Chat tab in Files sidebar should work again just like before. Note that there are some issues unrelated to the changes here:
|
@danxuliu |
@danxuliu let's raise tickets for the remaining issues, I can also help out with some like the remembering one (you could tag as regression) |
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.
👍 please raise an issue for the style hack if not solvable
I find it interesting that the PR size has reduced over time
} | ||
|
||
// Dirty hack to force the style on parent component | ||
const tabChat = document.querySelector('#tab-chat') |
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.
no proper way ? can we instead set a class on the parent that we can style from here ?
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.
If I am not mistaken there have been some changes in the Files app sidebar related to this, I would need to check again.
I've pushed this PR for keeping in non-grid mode when in sidebar: #4573 |
Raised #4574 for sidebar call regressions which I noticed, that are unrelated to this PR. Those issues likely have sneaked in as I didn't always test with the sidebar (as it was broken) |
So, merge? |
Reference nextcloud/server#23164