-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feedback form - Ray Stefancsik - Hi team, I would like to draw attention to a usability bu... #744
Comments
Hi @rays22, All the best, |
Thanks @sagehrke ! I would like to add another problem with the search box. Partial matches do not seem to work. You need to enter a complete matching string to get any results. For example, "TNN" does not match any lines, although there are lines that should match TNN*. |
Thanks for the issue, @rays22. Regarding the click and type issue: This happens because when a new search is entered, or really if any of the following occurs:
A new query must be made, and the Association table must re-render, including the text box, You technically can type multiple characters before this happens, but the time between keystrokes has to be less than 500ms. The best solution I can think of to implement for now is to increase that debounce time, maybe to something like 900ms, to allow the user extra time to type before having to click in again.* It's possible that there is a more elegant way to handle this, perhaps with the use of a third party libraries (see #147) but this would require significant research, and unfortunately we're not likely to get around to this in the super-near future. * Let me know of this solution seems acceptable for the time being. Regarding partial matches, I'll have to look into this a bit further, will update when I have more info. |
partial matching would be controlled by adding fields suffixed with _ac to association_search_query_fields() probably we’d want subject_label_ac and object_label_ac (but we maybe wouldn’t want starts-with matching on all entities in the closure, at least not without also adding some kind of text highlighting to know why rows are being matched against). We’ll also need to populate those _ac fields on the monarch ingest side. We’ll have to add an additional copy fields stanza to add_association_copyfields.sh Maybe include taxon and qualifier labels on the assumption they’ll be shown in the table?
predicate wouldn’t work here, since it starts with biolink:, we’d need a tokenized starts-with matching field type for that. |
@glass-ships We could trigger the search with a button rather than having it act like a live search, if nothing else as a short term solution until we can figure out how to keep focus in the box while other elements get re-rendered. |
@kevinschaper I'm not really sure that would work, actually, because of how the |
@vincerubinetti (sorry to drag you into this, feel free to ignore / comment as you're willing and able) |
I'm out of office at the moment. I don't remember exactly how I wrote these particular components at the moment. But I think there may be a I can comment more next week. |
I also remember encountering this bug a while ago and fixing it in some manner. Might be worth looking through the git blame for the textbox/table/associationstable components to see if anything was overwritten during merge conflict or something. |
Name
Ray Stefancsik
Email
stefancsik@ebi.ac.uk
GitHub Username
@rays22
Details
Page: /feedback
Browser: Firefox 126.0
Device: Apple Macintosh
OS: Mac OS 10.15
Engine: Gecko 126.0
Hi team,
I would like to draw attention to a usability bug.
When I try to enter any text in the filter box, for example, here
https://monarchinitiative.org/HP:0006501?associations=biolink:GeneToPhenotypicFeatureAssociation
I can enter only one character, then the focus on the filter box is lost, and I need to click and select inside the box againg with my mouse if I want to continue and complete the input text.
This makes finding relevant lines in the table very cumbersome and frustrating.
Thank you in advance.
The text was updated successfully, but these errors were encountered: