[COMPASS-7356] Pressing enter on the filter and skip fields in the query bar opens the GenAI popup Created: 18/Oct/23  Updated: 01/Nov/23  Resolved: 23/Oct/23

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

Type: Bug Priority: Major - P3
Reporter: Kevin Mas Ruiz Assignee: Rhys Howell
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: N/A
node.js / npm versions: N/A
Additional info:


Story Points: 1
Documentation Changes: Not Needed
Sprint: Iteration Minmi

 Description   

Problem Statement/Rationale

Pressing enter on the filter and skip fields in the query bar opens the GenAI popup, while it should just submit the query.

Please be sure to attach relevant logs with any sensitive data redacted.
How to retrieve logs for: Compass; Shell

Steps to Reproduce

  1. Connect to a database
  2. Open a collection
  3. Open Options > in the query bar.
  4. Click on Skip, write a number
  5. Press Enter in your keyboard 

Expected Results

It should submit the query.

Actual Results

It opens the GenAI popup, which feels like advertisement.

Additional Notes

Any additional information that may be useful to include.



 Comments   
Comment by Githook User [ 01/Nov/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(generative-ai): add type button html attribute so ai entry buttons don't get html form submit events COMPASS-7356 (#5009)
Branch: bulk-update-modal
https://github.com/mongodb-js/compass/commit/b9a1141b650f8853b5d35de1a96ef00e7d2a4956

Comment by Githook User [ 30/Oct/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(generative-ai): add type button html attribute so ai entry buttons don't get html form submit events COMPASS-7356 (#5009)
Branch: beta-releases
https://github.com/mongodb-js/compass/commit/b9a1141b650f8853b5d35de1a96ef00e7d2a4956

Comment by Githook User [ 24/Oct/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(generative-ai): add type button html attribute so ai entry buttons don't get html form submit events COMPASS-7356 (#5009)
Branch: wizard
https://github.com/mongodb-js/compass/commit/b9a1141b650f8853b5d35de1a96ef00e7d2a4956

Comment by Githook User [ 23/Oct/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(generative-ai): add type button html attribute so ai entry buttons don't get html form submit events COMPASS-7356 (#5009)
Branch: COMPASS-7292-run-ai-accuracy-tests
https://github.com/mongodb-js/compass/commit/b9a1141b650f8853b5d35de1a96ef00e7d2a4956

Comment by Githook User [ 23/Oct/23 ]

Author:

{'name': 'Rhys', 'email': 'Anemy@users.noreply.github.com', 'username': 'Anemy'}

Message: fix(generative-ai): add type button html attribute so ai entry buttons don't get html form submit events COMPASS-7356 (#5009)
Branch: main
https://github.com/mongodb-js/compass/commit/b9a1141b650f8853b5d35de1a96ef00e7d2a4956

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