Skip to content

[Bugfix:InstructorUI] Recentering Grading Panel Navbar#12914

Merged
bmcutler merged 8 commits into
mainfrom
grading-panel-navbar-fix
Jun 19, 2026
Merged

[Bugfix:InstructorUI] Recentering Grading Panel Navbar#12914
bmcutler merged 8 commits into
mainfrom
grading-panel-navbar-fix

Conversation

@NicholasCiuica

@NicholasCiuica NicholasCiuica commented Jun 15, 2026

Copy link
Copy Markdown
Member

Why is this Change Important & Necessary?

The grading panel's navbar used to be centered (in Spring 2026 and probably before). However, the CSS for this element has recently been changed and it is now left-aligned along with the name of the student who made the submission in the top-left. This pushes the navbar to different parts of the screen depending on the length of the student's name.

What is the New Behavior?

The grading navbar is now centered, as it was before, and the student's name in the top left was reverted to having position:absolute. Also, I have added that a resize event will be manually triggered when the page is first initialized, so you don't have to resize the page manually to trigger the functions which properly create the layout.

Before vs After:

Screenshot 2026-06-15 145523 Screenshot 2026-06-15 155924

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

  • go to the grading page in main and note that the navbar is left-aligned
  • go to the grading page in this branch and see that it's now centered
  • collapse the left column or enter full-screen mode for the next 2 steps
  • change the width of the browser window to confirm that the navbar stays in center; also, the student's name should disappear to make room for the navbar at smaller widths
  • reload the page while your browser has a small width to confirm that the student's name is not visible when the page loads

Automated Testing & Documentation

No new tests added

Changes tested on Chrome, Firefox, and Edge browsers

The grading navbar used to be centered, so I reverted the css to how it was before the css was changed.
manually calls a resize event when the page is first initialized so the layout matches the window dimensions from the start. Resize triggers the 2 layout functions above the call.
manually calls a resize event when the page is first initialized so the layout matches the window dimensions from the start. Resize triggers the 2 layout functions above the call.
@github-project-automation github-project-automation Bot moved this to Seeking Reviewer in Submitty Development Jun 15, 2026
@NicholasCiuica NicholasCiuica changed the title [InstructorUI:Bugfix] Recentering Grading Panel Navbar [Bugfix:InstructorUI] Recentering Grading Panel Navbar Jun 15, 2026
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 21.48%. Comparing base (8fa4355) to head (37fcfb4).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #12914      +/-   ##
============================================
- Coverage     21.48%   21.48%   -0.01%     
  Complexity     9842     9842              
============================================
  Files           268      268              
  Lines         36851    36852       +1     
  Branches        495      495              
============================================
  Hits           7919     7919              
- Misses        28441    28442       +1     
  Partials        491      491              
Flag Coverage Δ
autograder 21.32% <ø> (ø)
js 2.01% <0.00%> (-0.01%) ⬇️
migrator 100.00% <ø> (ø)
php 20.52% <ø> (ø)
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.

mattLif
mattLif previously approved these changes Jun 16, 2026

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

Code changes are good, and all nonflakey/nonbroken tests pass. Verified all features/new behavior except for student name disappearing but that might be a local issue. Should get another review

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

@dandrecollins07-ctrl dandrecollins07-ctrl 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.

After testing, the navbar is centered. However, the students name does not disappear based on the size of the tab. (Tested on Chrome)

@mattLif
mattLif dismissed their stale review June 16, 2026 14:23

needs changes

@elsume

elsume commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Tested on macOS on both Chrome and Safari. Confirmed that navbar is left-aligned on main. Then on this branch, navbar is confirmed to be centered. Tested twice with a collapsed left column as well as with full-screen mode -- navbar stays centered while browser window was resized. Student name was also observed to disappear on smaller widths. When reloaded in that state, student name stays hidden. Overall, new feature seems to be functioning as expected on my machine.

on some machines, the student name never disappears after overlapping, and this commit adds some console logs to test why
@NicholasCiuica

Copy link
Copy Markdown
Member Author

I've just made a commit that ads some console.logs for testing the student name disappearing in the top-left of the grading panel. To test, go to the grading interface, open dev tools, and note the console.logs. Increase/decrease the width of the screen and note whether the overlapping boolean is ever displayed as true. The amount of overlap is calculated as (the left of the buttons in the top bar) - (the right of the student name). Check if this number looks accurate given the screen width. Please send screenshots if you test.

@NicholasCiuica

Copy link
Copy Markdown
Member Author

After some testing, it seems the resize event does not trigger on some people's machines, so the student name in the top-right corner never gets hidden after overlapping with the buttons in the top bar. However, this issue seems outside the scope of this PR, and the recentering of the navbar has been confirmed on multiple reviewers' machines, so I think this PR is ready to be merged.

@bmcutler
bmcutler merged commit d14e346 into main Jun 19, 2026
17 of 26 checks passed
@bmcutler
bmcutler deleted the grading-panel-navbar-fix branch June 19, 2026 06:50
@github-project-automation github-project-automation Bot moved this from Awaiting Maintainer Review to Done in Submitty Development Jun 19, 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.

5 participants