Skip to content

Update the tag widget.#1887

Merged
pstaabp merged 3 commits intoopenwebwork:developfrom
drgrice1:tag-widget-update
Mar 2, 2023
Merged

Update the tag widget.#1887
pstaabp merged 3 commits intoopenwebwork:developfrom
drgrice1:tag-widget-update

Conversation

@drgrice1
Copy link
Copy Markdown
Member

@drgrice1 drgrice1 commented Feb 6, 2023

The javascript is updated with javascript that does not use jQuery.

Furthermore, the old widget that was directly displayed in the page and was ugly as hell has been replaced with a button. When the button is clicked a dialog opens with a dialog which contains the tag editor.

If a problem has invalid tags, instead of those intrusive native alert dialogs a toast is shown. The user can continue to interact with the page even while the toast is present. The toast disappears after five seconds on its own.

Note for self: This has conflicts with #1884.

@pstaabp
Copy link
Copy Markdown
Member

pstaabp commented Feb 9, 2023

When I first clicked on the Tag Editor, I wasn't sure what the number was on the bottom row. The other seem clear, but I wonder if we should label each of them?

I also wonder if a popup is the best UI for this. If you are just looking for the Subject/Chapter/Section tags, you need to open up the dialog and then close it. Maybe dynamically showing a row of select just above the problem might be nicer--I think this is similar to how it was before.

@drgrice1
Copy link
Copy Markdown
Member Author

drgrice1 commented Feb 9, 2023

I thought of adding labels. I will do that.

The dialog is way better. There is no need to have the tags in the page. The row will never work nicely. That is simply impossible. This is the same problem your current design of the webwork3 library browser has. You just cannot fit long text like this into a single line. If you want to see the tags, simply click on the button. It opens quickly and there you have it.

@drgrice1
Copy link
Copy Markdown
Member Author

drgrice1 commented Feb 9, 2023

By the way, as to the labels, this is the same as it was before without the labels.

@drgrice1
Copy link
Copy Markdown
Member Author

I added labels to the selects in the dialog. Also, I eliminated the nonsensical "All ..." option that was used for the default option in each select to mean no subject is selected. Instead "Select ..." is used.

@drgrice1 drgrice1 force-pushed the tag-widget-update branch 2 times, most recently from 40d5050 to 4aa19e0 Compare February 15, 2023 11:30
Copy link
Copy Markdown
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.

Looks good with the labels

@drdrew42
Copy link
Copy Markdown
Member

This is great. I am no longer bombarded with alerts when a problem isn't properly tagged...

My only suggestion for improvement is to replace the "Select _____" option with the invalid subject/chapter/section at the top of the dropdown list instead of appending it as the last option.

@drgrice1
Copy link
Copy Markdown
Member Author

@drdrew42: I made your suggested change. Invalid tags are now added at the beginning and the 'Select ...' option removed.

The javascript is updated with javascript that does not use jQuery.

Furthermore, the old widget that was directly displayed in the page and
was ugly as hell has been replaced with a button.  When the button is
clicked a dialog opens with a dialog which contains the tag editor.

If a problem has invalid tags, instead of those intrusive native alert
dialogs a toast is shown.  The user can continue to interact with the
page even while the toast is present.  The toast disappears after five
seconds on its own.
Also replace the "all" text with a better default option.  "All
Subjects" doesn't make sense to mean no subject is selected.  So this
uses "Select Subject" instead.
with the invalid tag at the top of the dropdown instead of appending it
to the end.
@pstaabp pstaabp merged commit dcbbdd8 into openwebwork:develop Mar 2, 2023
@drgrice1 drgrice1 deleted the tag-widget-update branch March 2, 2023 20:49
drgrice1 added a commit to drgrice1/webwork2 that referenced this pull request Mar 21, 2023
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