You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make rightbar part of the public API / usable from any app #18170
consumer: generate a sidebar for a given model type (ex: file) and have the existing panels visible in it
provider: register new panels according to a given model type (ex: file)
Model types can be different:
files
calendar event
etc
This makes it possible for apps like gallery to also show a file-related sidebar.
But an app like a calendar could have a sidebar with calendar-specific panels (the model type would be "calendar event").
The file-based sidebar needs to be able to trigger file actions. FileActions require an instance of FileList which might not exist in other apps. So this might be blocked by this #18230 considering that other apps don't have a FileList instance.
So, I still think that it would be a great idea to make the sidebar available to apps.
Typically Gallery would load the sidebar along with only the tabs it needs, including custom ones.
The fact that a FileList instance is required is one of the major problems with some of the tools found in core. The uploading tool set requires one per example. It would be great if we could simply update the files model and have the class call our callbacks (following the requirements from the interface).
Now to make it work with alternative models seems almost impossible, because of their diversity, so maybe this should be split:
Let apps easily build a sidebar, which includes a plugin mechanism to load tabs. Make it so that plugins can target any apps (if that doesn't require a Filelist...). I expect most plugins to only be able to target a single app
Make the files tab available. Require a file model instead of a fileList instance. Make fileActions send events
Convert existing plugins to make them model agnostic. A task can have comments, we just need to link comments to an ID of some sort
Activity
PVince81 commentedon Aug 10, 2015
also @owncloud/designers
PVince81 commentedon Aug 12, 2015
The file-based sidebar needs to be able to trigger file actions.
FileActionsrequire an instance ofFileListwhich might not exist in other apps. So this might be blocked by this #18230 considering that other apps don't have aFileListinstance.However non-file-based sidebars should be fine.
oparoz commentedon Mar 7, 2016
So, I still think that it would be a great idea to make the sidebar available to apps.
Typically Gallery would load the sidebar along with only the tabs it needs, including custom ones.
The fact that a FileList instance is required is one of the major problems with some of the tools found in
core. The uploading tool set requires one per example. It would be great if we could simply update the files model and have the class call our callbacks (following the requirements from the interface).Now to make it work with alternative models seems almost impossible, because of their diversity, so maybe this should be split:
Pinging some people involved with apps @VicDeo @georgehrke @Henni @nickvergessen @BernhardPosselt