linagora / tmail-flutter

A multi-platform (Flutter) application for reading your emails, with your favorite devices, using the JMAP protocol!
GNU Affero General Public License v3.0
327 stars 75 forks source link

Fix jmap request to server is called when query string is empty in quick search web #3276

Closed dab246 closed 6 days ago

dab246 commented 1 week ago

Issue

https://github.com/user-attachments/assets/935216a5-8e7b-4b1c-88c2-cf7c17e08eb7

Root cause

Solution

-Using debounce_throttle to debounce

Resolved

https://github.com/user-attachments/assets/410f808f-2fa2-4a81-b8be-faa4226228c9

github-actions[bot] commented 1 week ago

This PR has been deployed to https://linagora.github.io/tmail-flutter/3276.

hoangdat commented 1 week ago
dab246 commented 1 week ago
  • [x] da is requested and dat also. It is not optimized for searching

Fixed.

https://github.com/user-attachments/assets/7b500fe8-da85-4aef-b815-9d93b0d0ea21

  • [x] write the integration test to make sure: request only be sent after user stop typing for a while (Ex: 300 ms)

Currently, we don't have integration test on web.