Skip to content

[Bugfix:InstructorUI] Fix Rubric Rendering on Firefox#12063

Merged
bmcutler merged 1 commit intomainfrom
fix-firefox-notebook
Sep 15, 2025
Merged

[Bugfix:InstructorUI] Fix Rubric Rendering on Firefox#12063
bmcutler merged 1 commit intomainfrom
fix-firefox-notebook

Conversation

@williamschen23
Copy link
Copy Markdown
Contributor

@williamschen23 williamschen23 commented Sep 11, 2025

Why is this Change Important & Necessary?

When using the edit page on firefox, the rubric sometimes fails to render. This might be because loadTemplates() is both called for the rubric and for rendering the redactions page. Fixing the double rendering fixes the issue.

What is the New Behavior?

There are two solutions, one is to prevent it from double rendering, which can be inconsistent as firefox event loop issues keep popping up. The other solution, which is the new behavior, forces the rendering to only be once, making it more reliable in the future.

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

Load firefox before PR. Refresh constantly and watch rubric constantly break. Load firefox after PR, should not be breaking rubric.

Automated Testing & Documentation

Other information

Editing to add image of reported issue

Left is Firefox, right is Chrome.
Screenshot 2025-09-04 at 1 33 26 PM

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.71%. Comparing base (2bac9f6) to head (11edfba).
⚠️ Report is 15 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12063   +/-   ##
=========================================
  Coverage     21.71%   21.71%           
  Complexity     9584     9584           
=========================================
  Files           268      268           
  Lines         36571    36571           
  Branches        475      475           
=========================================
  Hits           7940     7940           
  Misses        28160    28160           
  Partials        471      471           
Flag Coverage Δ
autograder 21.39% <ø> (ø)
js 2.07% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.72% <ø> (ø)
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 90.72% <ø> (ø)

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.

@DarthNyan
Copy link
Copy Markdown
Contributor

How is 'preventing it from double rendering' different from forcing it to render once? Can you update the PR description to be more clear?

Copy link
Copy Markdown
Contributor

@Rkoester47 Rkoester47 left a comment

Choose a reason for hiding this comment

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

I was able to reproduce the issue in Firefox. After refreshing the page, the rubric would not appear beneath the text in the "Rubric" tab in the Edit Gradables page in Firefox. Furthermore, after refreshing the page, clicking between Yes/No on any rubric settings would cause an error to pop up in the browser.

I also added side by side photos of the issue (between Firefox and Chrome) to the PR description for clarity.

The changes in this PR seem to have fully resolved the issue. I tested in Firefox, Chrome and Edge and was able to see the rubric below the text on the rubric tab immediately. This is a crucial fix for users on Firefox and I believe it should be implemented into the code.

@github-project-automation github-project-automation bot moved this from Seeking Reviewer to Awaiting Maintainer Review in Submitty Development Sep 12, 2025
@bmcutler bmcutler merged commit 9737a3a into main Sep 15, 2025
28 checks passed
@bmcutler bmcutler deleted the fix-firefox-notebook branch September 15, 2025 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants