Skip to content

[Bugfix:TAGrading] Remove panel selector modal drag#12840

Merged
bmcutler merged 3 commits into
Submitty:mainfrom
AtCloudDiwash:fix/panel-selector-modal-draggable-12839
May 25, 2026
Merged

[Bugfix:TAGrading] Remove panel selector modal drag#12840
bmcutler merged 3 commits into
Submitty:mainfrom
AtCloudDiwash:fix/panel-selector-modal-draggable-12839

Conversation

@AtCloudDiwash

@AtCloudDiwash AtCloudDiwash commented May 5, 2026

Copy link
Copy Markdown
Contributor

Why is this Change Important & Necessary?

Fixes #12839

The Panel Selector modal was draggable with no boundary
constraints. This caused two bugs:

  1. Dragging and releasing the modal anywhere caused it to
    vanish immediately due to click event bubbling
  2. Dragging outside the viewport made the modal inaccessible
    and it would reopen at the same off-screen position

There is no functional reason for the modal to be draggable.

What is the New Behavior?

The Panel Selector modal is no longer draggable. It opens
in its default centered position every time.

##Before - Screenshot

Could be dragged off the center

Screenshot 2026-05-11 at 11 34 10 AM

##After - Screenshot

Panel selector is fixed at the center

Screenshot 2026-05-11 at 11 33 45 AM

What steps should a reviewer take to reproduce or test the bug or new feature?

  1. Go to the grading interface as any grading role
  2. Click the panel mode button
  3. Verify the modal opens in center position
  4. Verify the modal cannot be dragged

Automated Testing & Documentation

No automated tests added. The existing Cypress tests for
the panel switcher cover the modal functionality.

Other information

No breaking changes. No migrations required.

@codecov

codecov Bot commented May 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.67%. Comparing base (4ca4e71) to head (6fc785a).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12840   +/-   ##
=========================================
  Coverage     21.67%   21.67%           
  Complexity     9802     9802           
=========================================
  Files           268      268           
  Lines         36724    36723    -1     
  Branches        489      489           
=========================================
  Hits           7960     7960           
+ Misses        28279    28278    -1     
  Partials        485      485           
Flag Coverage Δ
autograder 21.32% <ø> (ø)
js 2.02% <ø> (+<0.01%) ⬆️
migrator 100.00% <ø> (ø)
php 20.73% <ø> (ø)
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 91.13% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@GarvitKhandelwal31

Copy link
Copy Markdown
Contributor

hey the fix looks good. Please can you update the description of the PR with before and after screenshots. It is always imp to add screenshot in UI fixes.

@AtCloudDiwash

Copy link
Copy Markdown
Contributor Author

@GarvitKhandelwal31 , I have included the before after screenshots. I hope they satisfy the requirements of the PR, now.

@GarvitKhandelwal31

Copy link
Copy Markdown
Contributor

I have verified the fix works and intended, and makes the quality of the page better. Thanks for the PR.

@AtCloudDiwash

Copy link
Copy Markdown
Contributor Author

My pleasure I could contribute.

@AtCloudDiwash

Copy link
Copy Markdown
Contributor Author

Can anyone look at the failing checks, some of the failures were very unrelated to what this PR was about.

@github-project-automation github-project-automation Bot moved this from Seeking Reviewer to Awaiting Maintainer Review in Submitty Development May 19, 2026

@dagemcn dagemcn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Changes here look good. The bug is fixed, tested on Opera on MacOS

@bmcutler
bmcutler merged commit 6444152 into Submitty:main May 25, 2026
41 of 48 checks passed
@AtCloudDiwash

Copy link
Copy Markdown
Contributor Author

Thank you for merging my PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Panel Selector modal can be dragged off screen

5 participants