mattermost-mobile/app/screens
Jason Frerich 17f6aee8a5
[Gekidou MM-44927] Add Recent Searches Component (#6454)
* initial check in

* add search value to memoized dependencies in modifier component

* ignore the back press

* UI adjustments from PR feedback

* initial commit

* recent search are getting rendered from WDB

* search terms from the search bar are getting added

* can delete recent searches from WDB from recent searches Options

* will now add new ters to the table and recreate existing terms with new
timestamp

* push for scrollview

* use flatlist instead of scrolview

* s/deleteRecentTeamSearchById/removeSearchFromTeamSearchHistory/

* s/addRecentTeamSearch/addSearchToTeamSearchHistory/

* Fix search to use a flatlist and remove douplicate reference

* fix eslint

* Fix android autoscroll search field to the top

* limit the number of saved searches to 20 for a team.
return the results a team Search History sorted by createdAt

* set display to term for now

* clean up

* clean up

* extract as constant

* move styles to the top

* always update the created_at value in the database.

* remove unused function

* - remove useMemo of recent
- set or remove props on AnimatedFlatlist

* styling adjustments

* styling changes

* divider takes up 1ox so only need 15px margin to get the 16px total to
the neighboring veritcal views

* update compassIcon to match figma design

* update divider opacity to match figma design

* update styling from UX PR requests

* increase close button to touchable area of 40x40 and adjust menuitem
container

* use logError instead of console.log and trowing an error

* remove surrounding parenthesis

* There is only one record, so no need to batch.  Just call
destroyPermanently.

* call destroyPermanently directly

* when not useing the onScroll callback you don't need to set the
scrollEventThrottle

* set the max searches saved to 15

* no need to memoize

* shoud be a function call

* batch the add/update with the delete of the oldest model

* Minor improvements

* Fix bug when hitting back on search screen

* Fix long channel names in search results

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Daniel Espino García <larkox@gmail.com>
2022-07-14 14:56:08 +02:00
..
about [Gekidou] Extract common observers to queries (#5984) 2022-03-23 09:19:29 -03:00
apps_form MM-45022 : Gekidou - Refactor code to use custom nav hooks (#6426) 2022-06-30 11:12:59 -04:00
bottom_sheet [Gekidou MM-45521] Remove show results button (#6465) 2022-07-12 20:05:35 +02:00
browse_channels [Gekidou MM-45521] Remove show results button (#6465) 2022-07-12 20:05:35 +02:00
channel Detox/E2E: Messaging (at-mentions, channel mentions, autocomplete etc) e2e tests in Gekidou (#6428) 2022-07-05 10:01:46 -07:00
channel_info Detox/E2E: Find channels, Edit channel, etc e2e tests in Gekidou 2022-07-06 11:15:45 -07:00
code [Gekidou] Code syntax highlight (#6156) 2022-04-12 08:59:50 -04:00
create_direct_message MM-45022 : Gekidou - Refactor code to use custom nav hooks (#6426) 2022-06-30 11:12:59 -04:00
create_or_edit_channel MM-45022 : Gekidou - Refactor code to use custom nav hooks (#6426) 2022-06-30 11:12:59 -04:00
custom_status Fix theming and navigation stack tracking (#6443) 2022-06-30 11:14:07 -04:00
custom_status_clear_after [Gekidou] cleanup fixes (#6376) 2022-06-13 08:07:24 -04:00
edit_post MM-45022 : Gekidou - Refactor code to use custom nav hooks (#6426) 2022-06-30 11:12:59 -04:00
edit_profile MM-45022 : Gekidou - Refactor code to use custom nav hooks (#6426) 2022-06-30 11:12:59 -04:00
edit_server Remove ts-expect-error regarding legacy refs (#6317) 2022-05-31 07:42:34 +02:00
emoji_picker MM-45022 : Gekidou - Refactor code to use custom nav hooks (#6426) 2022-06-30 11:12:59 -04:00
find_channels Detox/E2E: Find channels, Edit channel, etc e2e tests in Gekidou 2022-07-06 11:15:45 -07:00
forgot_password [Gekidou] pinned posts (#6336) 2022-06-03 09:27:45 -04:00
gallery [Gekidou - MM-44930] Use File component for showing files in search. (#6425) 2022-07-14 12:50:05 +02:00
global_threads [Gekidou] user profile (#6353) 2022-06-06 11:27:25 -04:00
home [Gekidou MM-44927] Add Recent Searches Component (#6454) 2022-07-14 14:56:08 +02:00
in_app_notification MM-39711 - Gekidou Settings Timezone (#6384) 2022-06-24 06:52:05 -04:00
interactive_dialog [Gekidou] user profile (#6353) 2022-06-06 11:27:25 -04:00
latex [Gekidou] Add Latex support (#6195) 2022-04-28 12:27:10 -04:00
login Ease the way the keyboard can be dismissed in the login screen (#6341) 2022-06-03 08:10:51 -04:00
mfa Substitute all console.x by an appropiate log util function (#6427) 2022-06-24 10:26:40 -04:00
permalink MM-45022 : Gekidou - Refactor code to use custom nav hooks (#6426) 2022-06-30 11:12:59 -04:00
pinned_messages MM-45022 : Gekidou - Refactor code to use custom nav hooks (#6426) 2022-06-30 11:12:59 -04:00
post_options Fix theming and navigation stack tracking (#6443) 2022-06-30 11:14:07 -04:00
reactions Detox/E2E: Messaging (at-mentions, channel mentions, autocomplete etc) e2e tests in Gekidou (#6428) 2022-07-05 10:01:46 -07:00
select_team Comment out create team options until we have a create team screen (#6310) 2022-05-26 14:39:02 +02:00
server Remove ts-expect-error regarding legacy refs (#6317) 2022-05-31 07:42:34 +02:00
settings MM-39711 - Gekidou Advanced Settings (#6412) 2022-07-08 14:39:41 +04:00
snack_bar [Gekidou] Add saved messages to bottom tab (#6367) 2022-06-09 15:19:24 -04:00
sso Substitute all console.x by an appropiate log util function (#6427) 2022-06-24 10:26:40 -04:00
table Render Tables in their own screen (#6356) 2022-06-07 09:50:55 -04:00
thread [Gekidou] Thread auto follow on receiving new post when user is in a NOT-FOLLOWING thread (#6448) 2022-06-30 20:34:28 +05:30
thread_options MM-45022 : Gekidou - Refactor code to use custom nav hooks (#6426) 2022-06-30 11:12:59 -04:00
user_profile Detox/E2E: Messaging (at-mentions, channel mentions, autocomplete etc) e2e tests in Gekidou (#6428) 2022-07-05 10:01:46 -07:00
background.tsx [Gekidou] MM-39736 Login Flow (#5799) 2021-11-18 22:07:41 +01:00
index.tsx MM-39711 - Gekidou Advanced Settings (#6412) 2022-07-08 14:39:41 +04:00
navigation.ts MM-45456 - Gekidou LoadingUnreads component keeps spinning (#6453) 2022-07-08 14:14:35 +04:00