Allow viewlets to migrate between panel and sidebar #84642
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The goal of the PR is to allow entire viewlets to move between the sidebar and panel.
As a first step, I have created what is currently called a
Pane
(name can be changed) to wrap the logic surrounding Panels, ViewContainers, Viewlets, and Views. Initial limitation for v0.0 is that we assume the view container has one view as is the case with Search. I have changed Search's implementation to use thePaneRegistry
to start which now is working.We can see that the interface for the PaneRegistry is similar to other Registries in the code but it does a poor job at abstracting away the concept of Views, Viewlets, and Panels. This is because it was easier to get Search working without dropping half of its implementation.
Next steps involve making a simpler view work with an API that abstracts away the older concepts. I.e. the new view would define a single view and handle its layout accordingly instead of defining a panel and view and viewlet.
Following that, I will look into adding multiple views per viewlet.
Lastly, polishing the basic experience.