-
Notifications
You must be signed in to change notification settings - Fork 34.6k
add position panel left #84477
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
add position panel left #84477
Conversation
I know @sbatten recently was looking into making the panel position more configurable with the new layout. Due to that assigning first to him. Feel free to assign back to me and I can review. |
@isidorn @AlexFell-Velo I have no issues with taking this. The PR appears well done and it does not conflict in any major way with the current thinking going forward. I am testing the branch for any caveats that could have been missed and reviewing the code. I am assigning you as well @isidorn indicating that you can review whenever. |
The PR looks good overall. However if we plan to introduce a more flexible workbench layout in the future then I am not sure how much this makes sense as a temporary solution. Since the implementation looks good, I am approving this. However please note that I did not intesively test this and if we merge this in it would be nice if we have a test plan item to cover it. |
I see all of the same issues @bpasero has mentioned. I tested in High Contrast theme as it makes it easy to catch theme issues. Additionally, the chevron is incorrect when panel is on the left. |
Make sure to update the setting |
51a4cbb
to
1d5bf85
Compare
Thank you for the review and testing on this PR, much appreciated. I have managed to address:
However I cannot seem to resolve the default panel location when reloading the window, I understand that this works in the current implementation, any pointers you have would be greatly appreciated. TIA |
1d5bf85
to
64fd657
Compare
For the default postiion on reload I would put a breakpoint somewhere around here and try to figure out what is going on. Hope that helps |
ed67c04
to
3a8ea45
Compare
3a8ea45
to
377230b
Compare
@sbatten any movement on this one? Hopefully that helps this along a little bit. |
@AlexFell-Velo sorry about not picking this up, that's my fault. Due to the current time for us in the milestone, I'm going to move this to be merged early in December. This will give it plenty of testing in insiders. |
@AlexFell-Velo while I understand where you were coming from, I don't particularly prefer the new |
Happy to back out this change, however I'd also have to back out the unit tests, as the current architectural style would require mocking out the DI and registration mechanics before the require/import is made, which seems like a lot of effort for some small tests. You could argue that the current unit tests that I have written don't really provide any concrete value, so if you are happy for me to back out this change, then I'm happy to do this @sbatten . |
@AlexFell-Velo the unit tests are not a condition for this to be merged IMO as we didn't have these tests before and this is a welcome tweak to an existing function. If you are still interested in keeping the tests, you can look at some other tests as examples to get things set up. |
- enable layout code to position panel to the left
72cd114
to
ff66da8
Compare
@sbatten I found it easier to remove them. Rebased onto master as before |
Nice PR - but is there any way to mimic the previous behavior? I loved my single keyboard shortcut to toggle moving bottom/right. |
@jasonvarga absolutely
|
Awesome 🎉 Thanks @sbatten |
This PR fixes #37877
Enable the layout service to handle the
Position.Left
enum.It removes the
TogglePanelPositionAction
as this is now replaced by 3 distinct actions:PositionPanelLeftAction
PositionPanelRightAction
PositionPanelBottomAction
@isidorn I saw you assigned this to yourself a few days ago, however I'd previously taken a look at this and am fine for you to shepard this across as required.