Skip to content

Conversation

@drgrice1
Copy link
Member

This is achieved by displaying the student nav on the problem set page for users that have the permission to act as a user as well as always showing the student nav in problems and in tests.

If you are acting as a user, then the student nav looks the same as before with the next and previous buttons and the name of the user that is currently being acted as shown on the button. However, if you are not currently acting as another user, then the next and previous buttons are not shown and the button says "Select Student to Act As" (or in a test it says "Select a Test to Review").

Also fix the breadcrumb in a test when the set is not valid, but the setID does have the setID,v? format. Currently if you are acting as a student user and reviewing a test version, say "test,v1", but you have not worked the test, and you click the "Stop Acting" button, then the message stating that the selected test is not valid for the user is shown (it would be nice to not show this even) and the breadcrumb ends with the inactive link "test,v1", and you can only go back to the assignments page. Now, the "setID" link is shown and works, and the inactive "v1" link is at the end.

This is built on top of #2875 since it would conflict rather heavily with that pull request if it were not, and I don't want to have to resolve the conflicts later!

Copy link
Member

@pstaabp pstaabp left a comment

Choose a reason for hiding this comment

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

This looks nice. I think I started implementing something like this for webwork3 a while ago.

@drgrice1 drgrice1 force-pushed the student-nav-improvements branch from 1510b6a to 1160262 Compare February 1, 2026 12:12
@somiaj
Copy link
Contributor

somiaj commented Feb 3, 2026

@drgrice1 there are now conflicts in this.

This is achieved by displaying the student nav on the problem set page
for users that have the permission to act as a user as well as always
showing the student nav in problems and in tests.

If you are acting as a user, then the student nav looks the same as
before with the next and previous buttons and the name of the user that
is currently being acted as shown on the button.  However, if you are
not currently acting as another user, then the next and previous buttons
are not shown and the button says "Select Student to Act As" (or in a
test it says "Select a Test to Review").

Also fix the breadcrumb in a test when the set is not valid, but the
setID does have the `setID,v?` format.  Currently if you are acting as a
student user and reviewing a test version, say "test,v1", but you have
not worked the test, and you click the "Stop Acting" button, then the
message stating that the selected test is not valid for the user is
shown (it would be nice to not show this even) and the breadcrumb ends
with the inactive link "test,v1", and you can only go back to the
assignments page. Now, the "setID" link is shown and works, and the
inactive "v1" link is at the end.

This is built on top of openwebwork#2875 since it would conflict rather heavily
with that pull request if it were not.
@drgrice1 drgrice1 force-pushed the student-nav-improvements branch from 1160262 to a7378bf Compare February 3, 2026 20:46
Copy link
Contributor

@somiaj somiaj left a comment

Choose a reason for hiding this comment

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

Looks good.

@somiaj somiaj merged commit 9edc869 into openwebwork:develop Feb 3, 2026
2 checks passed
@drgrice1 drgrice1 deleted the student-nav-improvements branch February 3, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants