Skip to content
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

Fix: enable closing the data picker by clicking on ClosedPanels #4952

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

bkrmendy
Copy link
Contributor

@bkrmendy bkrmendy commented Feb 26, 2024

Problem

The data picker cannot be closed when the area highlighted in blue is clicked.
image

Actually, none of the modal or context menus can be closed when that area is clicked.

Fix

The area highlighted in blue is the ClosedPanels component, which intercepts the mouse click. This PR fixes up the CSS + click handlers in ClosedPanels, and refactors the data picker to use InspectorModal, so that its modal behaviour is in line with the rest of the modals in the editor.

Copy link
Contributor

github-actions bot commented Feb 26, 2024

Try me

Copy link

relativeci bot commented Feb 26, 2024

Job #10597: Bundle Size — 62.24MiB (~-0.01%).

2749e53(current) vs f583697 master#10569(baseline)

Warning

Bundle contains 58 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Improvement 1 improvement
                 Current
Job #10597
     Baseline
Job #10569
Improvement  Initial JS 35.26MiB(~-0.01%) 35.26MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 20.49% 20.47%
No change  Chunks 28 28
No change  Assets 32 32
No change  Modules 4361 4361
No change  Duplicate Modules 495 495
No change  Duplicate Code 30.84% 30.84%
No change  Packages 467 467
No change  Duplicate Packages 58 58
Bundle size by type  Change 2 changes Improvement 2 improvements
                 Current
Job #10597
     Baseline
Job #10569
Improvement  JS 62.23MiB (~-0.01%) 62.23MiB
Improvement  HTML 11.37KiB (-0.32%) 11.41KiB

View job #10597 reportView fix/data-picker-click-out branch activityView project dashboard

@bkrmendy bkrmendy changed the title data picker - fix click outside Fix: enable closing modals by clicking on ClosedPanels Feb 26, 2024
Copy link
Contributor

github-actions bot commented Feb 26, 2024

Performance test results:
(Chart1)
(Chart2)

@bkrmendy bkrmendy changed the title Fix: enable closing modals by clicking on ClosedPanels Fix: enable closing the data picker by clicking on ClosedPanels Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant