[COMPASS-2454] As a user I am unsatisfied with how autocomplete in the query bar works Created: 10/Jan/18  Updated: 29/Oct/23  Resolved: 06/Jun/18

Status: Closed
Project: Compass
Component/s: Query Bar
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Major - P3
Reporter: Christopher Shum Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: GIF File Autocomplete Bug.gif     GIF File Peek 2018-04-17 09-54.gif    
Epic Link: COMPASS-2280

 Description   
  • If I have a typo, autocomplete sometimes prevents me from correcting/editing my typo
  • Autocomplete sometimes auto inserts the suggested word, and when I continue to type, my entry becomes incorrect
  • Autocomplete behavior is buggy: Type open curly brace > autocomplete inserts closing curly brace > type ‘a’ > query should now be {a}

    > delete opening curly brace > then continue typing, autocomplete goes crazy (autocomplete fails to insert an opening brace, the cursor jumps back to the start of the input every time a new character is entered, non-deterministically will insert an opening brace or stop jumping to the start of input)



 Comments   
Comment by Durran Jordan [ 06/Jun/18 ]

New autocomplete with the ACE editor just landed in master. Will be in the 1.15 release.

Comment by Joshua Matthews (Inactive) [ 17/Apr/18 ]

I have similar but less helpful behavior: autocomplete will bounce the cursor back to the beggining of the input and as a result whatever I was trying to type just gets mangled. Attached is a gif of this happening. I was trying to type "startDate", a field that exists on documents in the collection I was viewing. Running on arch linux with Compass 1.12.5.

Comment by Christopher Shum [ 22/Jan/18 ]

Autocomplete will sometimes automatically insert a field name if the characters inserted so far create only one possible match in the existing fields. This is jarring to a user who does not expect autocomplete to fill in automatically, it is also likely to force typos if a user continues typing after auto-insert.

Steps to repro:
1) Identify a field name that has a unique starting char among existing fields
2) Type first char, prompting drop down autocomplete box
3) Delete first char
4) Type first char again - this should trigger auto insert of the entire field name

Generated at Wed Feb 07 22:30:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.