-
Notifications
You must be signed in to change notification settings - Fork 60
[FIX] side_panel: replace side panel instead of stacking it #6783
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
base: saas-18.4
Are you sure you want to change the base?
[FIX] side_panel: replace side panel instead of stacking it #6783
Conversation
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 spec in the pad about drilling down the main panel doesn’t seem to be working. I think it might need some refactoring. If that’s the case, it should be done in master
.
5520e2b
to
bb189c5
Compare
bb189c5
to
db3faaa
Compare
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.
👋
src/components/side_panel/pivot/pivot_measure_display_panel/pivot_measure_display_panel.ts
Outdated
Show resolved
Hide resolved
988075d
to
ec38ef6
Compare
e148dc3
to
0cf4351
Compare
return; | ||
} | ||
const expandMainPanelIfCollapsed = () => { | ||
if (this.mainPanel?.isCollapsed) { |
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.
why not expending it whatever happens?
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.
I considered the same, but found a case where just expanding isn’t enough.
If the user has resized the panel (without collapsing), we shouldn't override it.
So we check if the panel was resized; if not, apply the default size.
I think the current check is better than checking the panel size directly.
REF : sourceLink
What do you think 🤔
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.
I think i's not that easy to follow what goes on in that panel :p
Indeed it looks necessary :)
Steps to reproduce: - Open the global filter side panel (list of all filters) - Pin the panel - Click on a specific filter to view/edit it Before this commit: - A second side panel was opened instead of replacing the current one - Clicking 'Cancel' on the new panel had no effect - Clicking 'Remove' caused a traceback After this commit: - The new side panel replaces the current one (main or secondary) - The previous panel is restored correctly on 'Cancel' or 'Remove' - If the new panel is already open, we simply close the current one Task: 4911603
0cf4351
to
98b5144
Compare
Description:
Steps to reproduce:
Current behavior before PR:
Desired behavior after PR is merged:
Task: 4911603
review checklist