buttons for reordering problems in a set details page - #3090
Conversation
|
I'm happy to defer to your recommendations here. I could withdraw this, or feed what you have described here to Claude. I probably won't directly intervene with coding changes myself on this one though. Whatever things here (and with the other PRs I've made today) that we can complete, it will affect the Accessibility Guide I'm trying to complete before the release. It's getting down to a pretty short list of known issues (as far as webwork2 goes, that is). |
|
We can perhaps go with this for now, and then change to what I was thinking of later when I have time to work on that. |
|
OK. I'll see what Claude can do for the smaller tweaks you identified. |
8737b32 to
726f2d4
Compare
|
The issues you found are at least mostly addressed now. The method I directed for the first issue (about overcrowding) is maybe not the best though. |
|
I find the "indent"/"outdent" terminology a bit ugly. Also, in a JITAR set it isn't really indentation. It is nesting, and in fact the wording everywhere else calls it nesting. |
|
There is another problem with this. Say problem 1 and 2 use the same file. Problem 2 will have an alert "This problem uses the same source file as number 1.". Then if I use the buttons to swap #1 with #2, now the new #1 still says "This problem uses the same source file as number 1.". I'm working on that. |
726f2d4 to
933857d
Compare
|
OK, the language (both user-facing and internal) is now about nest/denest instead of indent/outdent. Also I moved the alerts for "This problem uses the same source file as number 1." from the template to the javascript, so it can be recalculated as things move. This is probably already an issue with the current mouse-driven rearrangement tool. |
drgrice1
left a comment
There was a problem hiding this comment.
This is going to take some time to review and test properly. But here are some things I see at this point.
933857d to
2176f50
Compare
|
OK, those code changes are in. |
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2176f50 to
c7d97d6
Compare
| document | ||
| .querySelectorAll('.psd_view,.psd_edit,.pdr_render,.pdr_grader,.pdr_handle > i') | ||
| .querySelectorAll( | ||
| '.psd_view,.psd_edit,.pdr_render,.pdr_grader,.pdr_handle > i,.psd_move_up,.psd_move_down,.psd_nest,.psd_denest' |
There was a problem hiding this comment.
I forgot to mention this before. Please change this to
| '.psd_view,.psd_edit,.pdr_render,.pdr_grader,.pdr_handle > i,.psd_move_up,.psd_move_down,.psd_nest,.psd_denest' | |
| '.psd_view,.psd_edit,.pdr_render,.pdr_grader,.pdr_handle > i,' + | |
| '.psd_move_up,.psd_move_down,.psd_nest,.psd_denest' |


When in the Set Details page, there will now be buttons on each problem to move a problem up/down in sequence. The mouse click-and-drag tool is still there, but these buttons give a keyboard accessible way to rearrange the problems.
If the set is a JITAR set, there are also buttons for indenting/outdenting problems.
Buttons are disabled when appropriate (like you can't move problem #1 up in the list).