Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "Show Correct Answers" button to the problem and test pages. #2406

Open
wants to merge 1 commit into
base: WeBWorK-2.19
Choose a base branch
from

Conversation

drgrice1
Copy link
Sponsor Member

@drgrice1 drgrice1 commented Apr 20, 2024

When this button is used correct answers will be shown with no other content in the feedback popover, scaffolds will all be open, and the feedback popovers will open immediately on page load. This is an instructor only option for now. I don't think this will be a good idea to enable for students.

Furthermore, the "Show Correct Answers" buttons on other instructor pages (pg problem editor, problem library, set detail page, statistics, and manual problem grader) now use this for showing correct answers.

This works well for most problems, but there are some cases where answers are tightly grouped particularly when there are on the same line that the popovers can overlap in not the best way.

This is one potential resolution of openwebwork/pg#1047.

Note that this requires openwebwork/pg#1065 to work.

Also, this is built on top of #2395, and will have conflicts with #2405 that will need to be resolved.

@pstaabp
Copy link
Sponsor Member

pstaabp commented Apr 21, 2024

I think this is nice for all correct answers. Here was a problem I was looking at:

image

and I roughly cut the padding in half on the answers a bit to get:

image

Needs a bit of work, but might be nice to have answers that are 1 line high to be similar in height to the buttons so there is less overlap. (I know this won't work with all problems.)

@drgrice1
Copy link
Sponsor Member Author

Cutting the padding barely helps. Generally speaking there is a problem authoring issue here. Even without the feedback shown you can see in your screen shots that the inputs are smashed together from one line to the next. That does not look good, and a problem author should do a better job of insuring spacing between lines. Bad problem authoring practices that make problems not look good in general is a large part of the issue with the feedback popovers overlapping to begin with.

@drgrice1 drgrice1 force-pushed the show-correct-answers-button branch 2 times, most recently from ac0b7da to d77064e Compare April 23, 2024 11:05
@drgrice1
Copy link
Sponsor Member Author

I reduced the padding on the popover in the special case that correct answers are the only thing shown. It helps a little with problems that smash things together. But doesn't help the generally poor appearance of those problems to begin with, and doesn't help if the answers themselves have more height or the case of tightly grouped answers on the same line.

@drgrice1 drgrice1 force-pushed the show-correct-answers-button branch from d77064e to 5fa4a8c Compare April 26, 2024 13:06
@Alex-Jordan
Copy link
Contributor

Those conflicts you predicted are here now.

@drgrice1 drgrice1 force-pushed the show-correct-answers-button branch from 5fa4a8c to 9078c81 Compare April 30, 2024 11:59
@drgrice1 drgrice1 changed the base branch from develop to WeBWorK-2.19 May 1, 2024 21:00
Copy link
Sponsor Member

@drdrew42 drdrew42 left a comment

Choose a reason for hiding this comment

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

👍

@drgrice1 drgrice1 force-pushed the show-correct-answers-button branch from 9078c81 to 6d93bb8 Compare May 8, 2024 21:55
When this button is used correct answers will be shown with no other
content in the feedback popover, scaffolds will all be open, and the
feedback popovers will open immediately on page load. This is an
instructor only option for now.  I don't think this will be a good idea
to enable for students.

Furthermore, the "Show Correct Answers" buttons on other instructor
pages (pg problem editor, problem library, set detail page, statistics,
and manual problem grader) now use this for showing correct answers.

This works well for most problems, but there are some cases where
answers are tightly grouped particularly when there are on the same line
that the popovers can overlap in not the best way.

This is one potential resolution of openwebwork/pg#1047.
@drgrice1 drgrice1 force-pushed the show-correct-answers-button branch from 6d93bb8 to 38a5055 Compare May 17, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants