Skip to content

[UI/UX:Submission] Submission Limit Warning Banners#12887

Merged
bmcutler merged 28 commits into
mainfrom
submission-limit-ui
Jun 15, 2026
Merged

[UI/UX:Submission] Submission Limit Warning Banners#12887
bmcutler merged 28 commits into
mainfrom
submission-limit-ui

Conversation

@roye2

@roye2 roye2 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Why is this Change Important & Necessary?

Closes #12413 .

This change aims to make submission limits (file count, file size, number of penalty-free submissions) and the ui on the submission page more user-friendly so that students can more easily understand how many submissions they have remaining.

What is the New Behavior?

image

New warning banners have been added to tell the user if they have too many files, files that are too large, or are running out of penalty-free submissions. The penalty free submissions warning appears when a student has 5 or fewer penalty free submissions remaining.

Additionally, if a red banner is showing, the submit button is disabled.

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

  1. Create a new gradeable of the type: ' Students will submit one or more files by direct upload to the Submitty website '
  2. Test the penalty free submission limit warning banner (the default is 20 penalty free submissions).
  3. Test the file count and size limit banners. If the red banner appears, the submit button should be disabled.

Automated Testing & Documentation

I will make an issue about testing these banners with Cypress.

Other information

This is not a breaking change.
Some commits are linked from an old, abandoned PR, #12613 .

@codecov

codecov Bot commented Jun 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.64%. Comparing base (719b0c7) to head (762f393).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12887   +/-   ##
=========================================
  Coverage     21.64%   21.64%           
  Complexity     9861     9861           
=========================================
  Files           268      268           
  Lines         36920    36920           
  Branches        495      495           
=========================================
  Hits           7990     7990           
  Misses        28439    28439           
  Partials        491      491           
Flag Coverage Δ
autograder 21.32% <ø> (ø)
js 2.01% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.70% <ø> (ø)
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.

@roye2
roye2 marked this pull request as draft June 4, 2026 19:55
@roye2 roye2 moved this from Seeking Reviewer to Work in Progress in Submitty Development Jun 4, 2026
@roye2
roye2 marked this pull request as ready for review June 5, 2026 16:59
@automateprojectmangement automateprojectmangement Bot moved this from Work in Progress to Seeking Reviewer in Submitty Development Jun 5, 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 looks good and functionality for each banner works, but I found a bug with duplicate submissions.

On main, if I submit "file1" and "file2" in my first, then I should not be able to submit them again (Submit button is disabled automatically). But if I delete file2 from the submission box, then this is a new submission and the submit button reactivates automatically.

On your branch, I have to refresh to reenable the submit button after deleting a file to make a new submission. It does not reactivate on its own like on main. I think this should be fixed

@github-project-automation github-project-automation Bot moved this from Seeking Reviewer to Work in Progress in Submitty Development Jun 10, 2026
@roye2

roye2 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

I believe I have fixed that bug, good catch! Edit, after CI ran I realized I still need to fix the error with gradeable_spec.js

@roye2
roye2 requested a review from mattLif June 10, 2026 15:55
@roye2 roye2 moved this from Work in Progress to In Review in Submitty Development Jun 10, 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.

Yup, bug's gone, and everything still looks good! I approve.

@github-project-automation github-project-automation Bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Jun 12, 2026
@bmcutler
bmcutler merged commit af37786 into main Jun 15, 2026
84 of 98 checks passed
@bmcutler
bmcutler deleted the submission-limit-ui branch June 15, 2026 05:43
@github-project-automation github-project-automation Bot moved this from Awaiting Maintainer Review to Done in Submitty Development Jun 15, 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.

student confusion: submission file count limit vs re-submission count limit vs submission file size

5 participants