Skip to content

Conversation

@interim17
Copy link
Contributor

@interim17 interim17 commented Jul 10, 2025

Time estimate or Size

small

Problem

Advances #613
UX requested: Enable drag and drop when the “Choose a Simularium file to load” modal is shown

Solution

Use existing redux state to prevent pointer events on modal and wrap when file is dragged over, renders overlay and allows drop.

Bumped z-index of overlay to get it on top of the ant modal mask which is z-index of 1000.

Use a window event listener to close modal on drop (can't use wrap props when pointer events are disabled).

Updated modal styling:
Screenshot 2025-07-10 at 10 13 22 AM

  • New feature (non-breaking change which adds functionality)

@interim17 interim17 changed the title enable drag and drop on load file modal is open enable drag and drop on load file modal Jul 10, 2025
@github-actions
Copy link

github-actions bot commented Jul 10, 2025

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements 58.16% 488/839
🟡 Branches 67.07% 110/164
🔴 Functions 35.21% 94/267
🔴 Lines 58.04% 473/815

Test suite run success

137 tests passing in 8 suites.

Report generated by 🧪jest coverage report action from 73a2dd1

@interim17 interim17 marked this pull request as ready for review July 10, 2025 17:14
@interim17 interim17 requested a review from a team as a code owner July 10, 2025 17:14
@interim17 interim17 requested review from frasercl and meganrm and removed request for a team July 10, 2025 17:14
Copy link
Contributor

@frasercl frasercl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Contributor

@meganrm meganrm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested it, but I needed to update the viewer in order for this to run locally for me

@interim17 interim17 merged commit c68d888 into main Oct 22, 2025
6 checks passed
@interim17 interim17 deleted the feature/drop-on-modal branch October 22, 2025 18:20
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.

4 participants