Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-8262

Historical autocomplete query options override main filter query bar

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Developer Tools
    • 3

      When applying autocomplete suggestions to query options, it's very easy for a user will override their entire query unintentionally (screenshot demo attached). We should make the historical autocomplete separate for options. 

      The weird behavior occurs when a historic query is displayed in an options field and, when selected, overrides the primary filter bar. We should only display historic option values for a given option when typing in that space, not full queries or other options value, and then only apply the selected option to the current option editor. For example, for Sort, we should only display recent Sort values run, and selecting a historic value should only modify the value for Sort in the query builder.

      With this change, the primary filter bar will still be able to override the options as it does today, but the same should not be true in reverse. 

        1. image-2024-09-10-02-40-39-384.png
          57 kB
          Diancheng Hu
        2. Screen Recording 2024-09-06 at 1.22.58 PM.mov
          4.70 MB
          Betsy Button

            Assignee:
            Unassigned Unassigned
            Reporter:
            elizabeth.button@mongodb.com Betsy Button
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: