Skip to content

[Bugfix:TAGrading] Fix header overlap on team names#12749

Merged
bmcutler merged 5 commits into
Submitty:mainfrom
robu9:fix-grading-header-overlap
Apr 10, 2026
Merged

[Bugfix:TAGrading] Fix header overlap on team names#12749
bmcutler merged 5 commits into
Submitty:mainfrom
robu9:fix-grading-header-overlap

Conversation

@robu9

@robu9 robu9 commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

Fixes #12748

Why is this Change Important & Necessary?

Fixes a UI bug in the TA Grading interface where long lists of team member names (or singular long names) would overlap with the navigation buttons (specifically the "Autograding" button). This occurred because the student name container was using absolute positioning, which removed it from the document flow and prevented the header from expanding to accommodate the text.

What is the New Behavior?

The #bar_wrapper now uses a CSS Grid layout (1fr auto 1fr), and absolute positioning has been removed from #grading-panel-student-name. This allows the header to naturally expand its height if the name list is long, pushing the buttons down instead of overlapping them.

Before:
image

After:
image

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

  1. Open a Team Gradeable in the TA Grading interface on your local VM.
  2. Select a team with a large number of members (or manually edit a team to have 5+ members).
  3. Observe that the team names now correctly push the "Autograding", "Rubric", and "Files" buttons downward rather than rendering on top of them.
  4. Verify that the navigation buttons remains centered in the middle column of the grid.

Automated Testing & Documentation

No new automated tests were added as this is a CSS-only layout fix. Manual verification was performed in the Vagrant development environment to ensure consistent behavior across different name lengths and team sizes.

Other information

  • Breaking Change? No.
  • Includes Migrations? No.
  • Security Concerns? No.

@GarvitKhandelwal31

Copy link
Copy Markdown
Contributor

Tested this locally. Everything looks good to me. File changes also look minimal and good.
Before:
image
After:
image

@roye2
roye2 self-requested a review April 7, 2026 01:51
@automateprojectmangement automateprojectmangement Bot moved this from Seeking Reviewer to In Review in Submitty Development Apr 7, 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.

Image

As you can see here, the scrolling functionality on the team member list appears to be broken. As it is right now, the team member list is compressing the main panel of the page. Please update this PR to fix that. Good job so far on fixing the overlap bug though!

@github-project-automation github-project-automation Bot moved this from In Review to Work in Progress in Submitty Development Apr 7, 2026
@codecov

codecov Bot commented Apr 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.64%. Comparing base (b2db10a) to head (19af7fb).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12749   +/-   ##
=========================================
  Coverage     21.64%   21.64%           
  Complexity     9654     9654           
=========================================
  Files           268      268           
  Lines         36244    36244           
  Branches        487      487           
=========================================
  Hits           7845     7845           
  Misses        27916    27916           
  Partials        483      483           
Flag Coverage Δ
autograder 21.32% <ø> (ø)
js 2.04% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.66% <ø> (ø)
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.

@robu9

robu9 commented Apr 7, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @roye2 for catching that!

I've pushed an update that adds a max height constraint to the team member list container. By keeping it restrained, overflow-y: auto successfully triggers again, restoring the native scrolling functionality when a team has many members (without reverting back to the absolute positioning bug).

Here is a quick look at the reinstated scrolling behavior:

Before:
image

After:
image

Let me know if everything looks good now!

@robu9
robu9 requested a review from roye2 April 7, 2026 18:11
@automateprojectmangement automateprojectmangement Bot moved this from Work in Progress to In Review in Submitty Development Apr 7, 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.

Good work fixing the scrolling, everything looks good to me now!

@github-project-automation github-project-automation Bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Apr 7, 2026
@bmcutler
bmcutler merged commit a3d808c into Submitty:main Apr 10, 2026
GarvitKhandelwal31 pushed a commit to GarvitKhandelwal31/Submitty that referenced this pull request Apr 13, 2026
Fixes Submitty#12748

### Why is this Change Important & Necessary?
Fixes a UI bug in the TA Grading interface where long lists of team
member names (or singular long names) would overlap with the navigation
buttons (specifically the "Autograding" button). This occurred because
the student name container was using absolute positioning, which removed
it from the document flow and prevented the header from expanding to
accommodate the text.

### What is the New Behavior?
The `#bar_wrapper` now uses a CSS Grid layout (`1fr auto 1fr`), and
absolute positioning has been removed from
`#grading-panel-student-name`. This allows the header to naturally
expand its height if the name list is long, pushing the buttons down
instead of overlapping them.

**Before:**
<img width="2559" height="1258" alt="image"
src="https://github.com/user-attachments/assets/85c71fd3-faaa-4fac-a2cf-a479cee928de"
/>



**After:**
<img width="1919" height="877" alt="image"
src="https://github.com/user-attachments/assets/27ced200-efd5-42bb-bd54-13dda29298fd"
/>


### What steps should a reviewer take to reproduce or test the bug or
new feature?
1. Open a Team Gradeable in the TA Grading interface on your local VM.
2. Select a team with a large number of members (or manually edit a team
to have 5+ members).
3. Observe that the team names now correctly push the "Autograding",
"Rubric", and "Files" buttons downward rather than rendering on top of
them.
4. Verify that the navigation buttons remains centered in the middle
column of the grid.

### Automated Testing & Documentation
No new automated tests were added as this is a CSS-only layout fix.
Manual verification was performed in the Vagrant development environment
to ensure consistent behavior across different name lengths and team
sizes.

### Other information
- **Breaking Change?** No.
- **Includes Migrations?** No.
- **Security Concerns?** No.

---------

Co-authored-by: Emma Roy <[email protected]>
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] UI Overlap: Team Member Names Overlap with Autograding Button

4 participants