[Gradebook] Warning that grade differs due to unposted assignments can be incorrect

Problem statement:

If a student has any unposted grades in the gradebook, the total grade column will show a slash-eye icon, and the warning text "This grade differs from the student's view of the grade because some assignment grades are not yet posted"

Screenshot 2024-03-26 at 3.49.01 PM.png

While this statement sounds definitive, there is a common case in which it is incorrect: if the unposted assignment does not count toward the final exam. In this case, the grade shown to the instructor and the grade shown to the student will match, and the message creates unnecessary confusion.

Proposed solution:

1. Change the wording of the message to "This grade may differ from the student's view of the grade because some assignment grades are not yet posted"

2. Actually check if there is a difference between the grade the instructor sees and the grade the student sees and display the warning text if and only if these grades are different.

User role(s):

instructor