Skip to content

[Feature:InstructorUI] Move add section button#12483

Merged
bmcutler merged 36 commits intomainfrom
move-add-section-button
Mar 26, 2026
Merged

[Feature:InstructorUI] Move add section button#12483
bmcutler merged 36 commits intomainfrom
move-add-section-button

Conversation

@Rkoester47
Copy link
Contributor

@Rkoester47 Rkoester47 commented Feb 27, 2026

Why is this Change Important & Necessary?

Fixes #12429
Currently, the Manage Sections page has an "add sections" button awkwardly to the right of the sections table. This is partly due to previous PRs that have moved and removed neighboring features. After PR #12412 is merged, the space on the right will become more sparse.

Before:
Main

What is the New Behavior?

Now, the Add Section functionality lives in a button above the table, which opens a popup form. This form allows a user to add a section, and optionally give that section a Course ID. The user can submit this form and see the changes update in the table.

After:
add section

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

Login as instructor and navigate to the Manage Sections page. Test out the functionality of adding a section, with and without a course ID.

Automated Testing & Documentation

Other information

This is not a breaking change.

@github-project-automation github-project-automation bot moved this to Seeking Reviewer in Submitty Development Feb 27, 2026
@Rkoester47 Rkoester47 changed the title [Feature:DeveloperUI] Move add section button [Feature:InstructorUI] Move add section button Feb 27, 2026
@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

❌ Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 21.65%. Comparing base (8497aa3) to head (2f88e77).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #12483      +/-   ##
============================================
- Coverage     21.66%   21.65%   -0.01%     
- Complexity     9639     9643       +4     
============================================
  Files           268      268              
  Lines         36226    36235       +9     
  Branches        487      487              
============================================
  Hits           7847     7847              
- Misses        27896    27905       +9     
  Partials        483      483              
Flag Coverage Δ
autograder 21.32% <ø> (ø)
js 2.04% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.67% <0.00%> (-0.01%) ⬇️
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.

@williamjallen
Copy link
Member

@Rkoester47 Is this blocked by #12412?

@Rkoester47
Copy link
Contributor Author

@Rkoester47 Is this blocked by #12412?

I was worried about that, so I made this branch off of the branch for #12412 instead of main in the hopes it would avoid issues.

@williamjallen
Copy link
Member

@Rkoester47 Please convert this to a draft until #12412 is merged to make it clear that this isn't ready to be merged right now. You can go ahead and find reviewers for this PR (hopefully the same reviewers you got for #12412) while it's a draft.

@Rkoester47 Rkoester47 marked this pull request as draft March 1, 2026 01:01
@automateprojectmangement automateprojectmangement bot moved this from Seeking Reviewer to Work in Progress in Submitty Development Mar 1, 2026
@Rkoester47
Copy link
Contributor Author

@Rkoester47 Please convert this to a draft until #12412 is merged to make it clear that this isn't ready to be merged right now. You can go ahead and find reviewers for this PR (hopefully the same reviewers you got for #12412) while it's a draft.

Sounds good, I'll switch it back to ready once #12412 is merged.

Copy link
Contributor

@Eli-J-Schwartz Eli-J-Schwartz left a comment

Choose a reason for hiding this comment

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

I performed a functionality review of this PR. The form successfully appeared when the button was pushed, and allowed for new sections to be created when both entries were filled out correctly.

However, I noticed a couple of issues:

  1. The form lacks details on the format of both the section ID and course ID. This can lead to confusion as to what these entries are and how they need to be filled out.
Image
  1. The form requires a course ID to be filled out, even though it's labelled as optional. Attempting submit shows an error that the field needs to be filled.
Image
  1. The form error ungracefully when the section ID is too long or has invalid characters, exiting but displaying an error message in the banner.
Image

Now the form will make entering improper input into the section ID field impossible, which will handle user error more gracefully than letting the form close and show an error.
@automateprojectmangement automateprojectmangement bot moved this from Work in Progress to In Review in Submitty Development Mar 20, 2026
Copy link
Contributor

@JManion32 JManion32 left a comment

Choose a reason for hiding this comment

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

Overall, the functionality is good, and I think a popup was the right choice here. I have some observations and changes to request:

Limiting the table to a percentage of its container looks good on large screens, but we need to keep more narrow widths in mind.
Image
This requires either media queries, or, allowing the table to span the page (which I still don't think is a bad idea)

I get this console error whenever I complete the form:Image

Please also see my inline comments.

The 'default section' is assigned to students who have self-registered for this course. <br>
Note: Sections can only be deleted if they contain no students.
</p>
<div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this extra container necessary? It's a lot of extra diff.

<div class="row">
<div class="box col-md-6">
<h2>Current Registration Section Counts</h2>
<div class="col-md-7 reg-section-container">
Copy link
Contributor

Choose a reason for hiding this comment

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

This is adding unnecessary padding to the left of the table. It should be aligned with the content above it.

@github-project-automation github-project-automation bot moved this from In Review to Work in Progress in Submitty Development Mar 20, 2026
@JManion32
Copy link
Contributor

Additionally, I have a few comments that may not be related to this PR:

I still think the delete column should have more space, especially when the count column has a lot of unused space:
image

Can we also allow editing of the sectionid in the future? Or is that not necessary.

Copy link
Contributor

@Eli-J-Schwartz Eli-J-Schwartz left a comment

Choose a reason for hiding this comment

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

I did a functionality test, and all of the problems I brought up before have now been fixed. I see no major issues with the new pop-up interface. The only possible improvement I can see would not closing the pop-up menu when an already existing section ID is used, but considering a clear error message is displayed, I don't think it's necessary.

Image

Copy link

@aconfo aconfo left a comment

Choose a reason for hiding this comment

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

See earlier comment.

Rkoester47 and others added 4 commits March 23, 2026 14:58
Table and header now wrap appropriately on smaller screens. Unwanted div removed, and table spans width of container again.
@Rkoester47 Rkoester47 requested a review from JManion32 March 24, 2026 00:03
@automateprojectmangement automateprojectmangement bot moved this from Work in Progress to In Review in Submitty Development Mar 24, 2026
Copy link
Contributor

@JManion32 JManion32 left a comment

Choose a reason for hiding this comment

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

Code and functionality look good. Great work!

@github-project-automation github-project-automation bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Mar 26, 2026
@Rkoester47 Rkoester47 moved this from Awaiting Maintainer Review to Ready to Merge in Submitty Development Mar 26, 2026
@bmcutler bmcutler merged commit e360a81 into main Mar 26, 2026
70 of 73 checks passed
@bmcutler bmcutler deleted the move-add-section-button branch March 26, 2026 19:20
@github-project-automation github-project-automation bot moved this from Ready to Merge to Done in Submitty Development Mar 26, 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.

Move "Add Section" text area on Manage Sections

6 participants