Skip to content

[Bugfix:InstructorUI] Fix missing cursor in config editor#12552

Closed
shreyashrpawar wants to merge 7 commits into
Submitty:mainfrom
shreyashrpawar:main
Closed

[Bugfix:InstructorUI] Fix missing cursor in config editor#12552
shreyashrpawar wants to merge 7 commits into
Submitty:mainfrom
shreyashrpawar:main

Conversation

@shreyashrpawar

Copy link
Copy Markdown
Contributor

Why is this Change Important & Necessary?

Fixes #12551
To edit any file having the live blinking cursor is beneficial. Earlier, that cursor is not visible but, this PR will fix it.

What is the New Behavior?

Now you can view the cursor as showing in the following image:
Screenshot from 2026-03-09 20-05-10

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

  1. Go to any edit gradable
  2. Then, clicking on submission/autograding tab
  3. Choose editable autograding configuration
  4. Open editor for config.json

@roye2
roye2 self-requested a review March 10, 2026 12:05
@automateprojectmangement automateprojectmangement Bot moved this from Seeking Reviewer to In Review in Submitty Development Mar 10, 2026
@codecov

codecov Bot commented Mar 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.66%. Comparing base (9cb25d6) to head (01154c1).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12552   +/-   ##
=========================================
  Coverage     21.66%   21.66%           
  Complexity     9637     9637           
=========================================
  Files           268      268           
  Lines         36222    36222           
  Branches        487      487           
=========================================
  Hits           7847     7847           
  Misses        27892    27892           
  Partials        483      483           
Flag Coverage Δ
autograder 21.32% <ø> (ø)
js 2.04% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.68% <ø> (ø)
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.

@shreyashrpawar shreyashrpawar changed the title [Bugfix] Cursor not showing for Edit Uploaded Configuration [Bugfix:InstructorUI] Fix missing cursor in config editor Mar 10, 2026

@roye2 roye2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I did a code and functionality review and the changes look good. I was able to reproduce the bug in main and then see that the changes fixed the bug and the cursor displayed correctly. The code looks good as well. I am pretty sure the CI test that is failing is just flaky and not to do with your changes.

@github-project-automation github-project-automation Bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Mar 10, 2026
@roye2

roye2 commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

@shreyashrpawar I am not sure but I think the Cypress Gradeable test has an issue with the Pam e2e test that it does that causes it to be flaky, I've seen it show an error various other times. I can't think of a reason why your changes would cause that specific failure anyway.

@shreyashrpawar

Copy link
Copy Markdown
Contributor Author

@roye2 Okay Thanks

@dagemcn
dagemcn self-requested a review March 10, 2026 20:12
@automateprojectmangement automateprojectmangement Bot moved this from Awaiting Maintainer Review to In Review in Submitty Development Mar 10, 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.

I looked over your changes and everything looks good. I was able to verify the issue was fixed successfully and nothing was broken. If you are able, try rerunning the tests. This fixed a flaky test on one of my previous PRs. Otherwise, all looks good!

@github-project-automation github-project-automation Bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Mar 10, 2026

@williamjallen williamjallen 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.

@shreyashrpawar I believe the approach in #12554 is better. Can you please leave a review on #12554? Without a good reason, I plan to close this in favor of #12554.

@github-project-automation github-project-automation Bot moved this from Awaiting Maintainer Review to Work in Progress in Submitty Development Mar 11, 2026
@shreyashrpawar

shreyashrpawar commented Mar 11, 2026

Copy link
Copy Markdown
Contributor Author

@williamjallen I checked the approach from #12554 and it does not works. I wrote the comment on that PR.

@automateprojectmangement automateprojectmangement Bot moved this from Work in Progress to In Review in Submitty Development Mar 11, 2026
@shreyashrpawar

Copy link
Copy Markdown
Contributor Author

I looked over your changes and everything looks good. I was able to verify the issue was fixed successfully and nothing was broken. If you are able, try rerunning the tests. This fixed a flaky test on one of my previous PRs. Otherwise, all looks good!

@dagemcn Thanks for the review and for verifying the fix! And As a contributor, I don't have the permissions to re-run of the GitHub Actions.

@dagemcn

dagemcn commented Mar 20, 2026

Copy link
Copy Markdown
Member

I looked over your changes and everything looks good. I was able to verify the issue was fixed successfully and nothing was broken. If you are able, try rerunning the tests. This fixed a flaky test on one of my previous PRs. Otherwise, all looks good!

@dagemcn Thanks for the review and for verifying the fix! And As a contributor, I don't have the permissions to re-run of the GitHub Actions.

I have approved the tests to run again and merged main into this branch. Assuming all tests pass, you should be good to go.

@roye2
roye2 self-requested a review March 20, 2026 21:52

@roye2 roye2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I just left my review in the duplicate PR (PR #12554 ) as I found it to work correctly on my machine. Using codemirror to update the cursor is the correct approach. If you would be able to explain why the other PR didn't work, that would be great.

@github-project-automation github-project-automation Bot moved this from In Review to Work in Progress in Submitty Development Mar 20, 2026
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.

[Bug] Editing cursor not showing in Edit Uploaded Configuration

4 participants