mattermost-mobile/app/components
Jason Frerich 33d9e6257e
[Gekidou MM-44943] Add team picker to the search screen and results screens (#6455)
* 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

* initial commit

* - From the search screen, you cna now set the team for the search
- Recent searches are saved for the specified team

* fix styling fo icon in modifiers

* - move team picker to its own component and call from modifiers
- will use for results header also

* - show team image if available
- pass optional size to TeamPickerIcon
- add TeamPickerIcon to Resuls Header
- styling fixes

* add team name to recent searches title

* parameter renaming

* fix lint

* fix callback bug that was calling itself

* when changing a team while showing search results:
  - update the search results with new selected team and current search
    term.
  - save the recent search the new selected team TeamSearchHistory for
    that team

* move to bottom for reduction of PR review lines and comparison to
changes in theh component logic

* - add dependencies
- rename function

* fix PR feedback

* - created helper function for bottom sheet with TeamList
  BottomSheetContent
- share the bottomScreen calls from AddTeam and TeamPickerIcon

* Add title back to renderContent of bottomSheet call.  This is needed for
tablets

* remove unnecessary check of selectTeamId.  it will be undefined and fail
the equality check

* - now all team_icons are all radius of 8. Includes the following icons:
  - team picker icon in in search screen
    - each team icon in the search screen bottom sheet team list
  - team picker icon in in search results screen
  - each team icon in the home screen team side bar list
    - each team icon in the join new team bottom sheet team list (from home screen)

* use padding in the width of the header so the margins are extended full
width, and dateline separator of post list does not creep into the
header region

* add smallText prop to team_icon.
- allows using 200 instead of default 400 value.
- 200 is used for the TeamPickerIcon used in the searcha nd results
  headers

* - add dependency back to handle renderItem and allow selecting files or
  messages view
- when handling the search, save the term to the correct team

* adjust styling so the rounded edges appear for the header. Use the
header container height to set the height of the header to 40 and then
set top and bottom margins for the rounded top edge and the bottom
margin to the divider

* use typography

* add title dependency

* update dependencies

* use bottomSheetSnapPoint to get the height of the total items

* rename variable

* Always use Metropolis-SemiBold for the team icon fallback

* use a fragment because there is not styling

* move title inside onPress function and can remove the title as a
dependency

* just use strings for testID

* calculate the observable inside the return object

* - remove const and use string
- correct the name of the testID

* - use more specific dependency value team.id
- add onPress dependency

* move to a constant

* move to a constant

* replace with logical AND

* add all logic for the style to textStyle

* remove the separate divider view and just use the outside container with
bottomBorder with and color

* extend the image vertically in the results

* Fix size of bottom sheet

* Refactor unneeded change

* Minor tweaks

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Daniel Espino García <larkox@gmail.com>
2022-07-15 16:05:58 +04:00
..
app_version update snapshot 2021-12-14 11:57:14 +02:00
autocomplete Detox/E2E: Messaging (at-mentions, channel mentions, autocomplete etc) e2e tests in Gekidou (#6428) 2022-07-05 10:01:46 -07:00
autocomplete_selector [Gekidou - MM-44930] Use File component for showing files in search. (#6425) 2022-07-14 12:50:05 +02:00
badge Detox/E2E: Migrate e2e javascript to typescript (#6059) 2022-03-17 17:35:26 -07:00
block MM-45221 - Gekidou Settings fixes - part 1 (#6472) 2022-07-15 13:32:25 +04:00
channel_actions Detox/E2E: Messaging (at-mentions, channel mentions, autocomplete etc) e2e tests in Gekidou (#6428) 2022-07-05 10:01:46 -07:00
channel_icon [Gekidou] [Bug] DM Icon will be 'archive-outline' if user is archived (#6415) 2022-06-21 18:46:46 -04:00
channel_item Detox/E2E: Messaging (at-mentions, channel mentions, autocomplete etc) e2e tests in Gekidou (#6428) 2022-07-05 10:01:46 -07:00
common_post_options MM-45221 - Gekidou Settings fixes - part 1 (#6472) 2022-07-15 13:32:25 +04:00
compass_icon [Gekidou] compass icons (#5940) 2022-02-08 16:16:30 -03:00
custom_status [Gekidou] db manager database getters (#6377) 2022-06-13 18:32:47 -04:00
emoji do not fetch unicode emojis 2022-06-07 15:26:24 -04:00
emoji_picker Detox/E2E: Messaging post options e2e tests in Gekidou (#6405) 2022-06-17 21:01:05 -04:00
error_text MM-41991 Gekidou Edit Post Screen (#6016) 2022-03-12 17:22:24 -03:00
files [Gekidou - MM-44939] Search Screen - Add File Options Bottom Sheet (#6420) 2022-07-15 11:44:46 +02:00
floating_text_input_label Make FloatingTextInputLabels no longer than one line (#6411) 2022-06-24 06:14:29 -04:00
formatted_date Fix and add missing locales (#6396) 2022-06-16 21:50:59 -04:00
formatted_markdown_text Substitute all console.x by an appropiate log util function (#6427) 2022-06-24 10:26:40 -04:00
formatted_text Gekidou fixes (#5748) 2021-10-13 14:13:39 -03:00
formatted_time Fix and add missing locales (#6396) 2022-06-16 21:50:59 -04:00
freeze_screen [Gekidou] optimizations, fix & moved files (#6177) 2022-04-18 08:49:17 -04:00
friendly_date Gekidou CRT - Global threads screen (#6140) 2022-04-28 09:01:36 -04:00
illustrations Fix permalink to not joined channels and to not fetched posts. (#6294) 2022-06-17 19:23:12 +02:00
jumbo_emoji Detox/E2E: Messaging e2e tests in Gekidou (#6228) 2022-05-05 13:04:33 -04:00
loading [Gekidou MM-44927] Add Recent Searches Component (#6454) 2022-07-14 14:56:08 +02:00
loading_error [Gekidou] [MM-39936] Add Select Team Screen (#6180) 2022-05-03 17:22:21 +02:00
markdown [Gekidou MM-44943] Add team picker to the search screen and results screens (#6455) 2022-07-15 16:05:58 +04:00
menu_item MM-45221 - Gekidou Settings fixes - part 1 (#6472) 2022-07-15 13:32:25 +04:00
navigation_header [Gekidou] Navigation bar refactored (#6319) 2022-06-01 17:07:54 -04:00
no_results_with_term [Gekidou MM-44943] Add team picker to the search screen and results screens (#6455) 2022-07-15 16:05:58 +04:00
option_box [Gekidou] Channel Info screen (#6330) 2022-06-02 16:09:12 -04:00
option_item MM-45221 - Gekidou Settings fixes - part 1 (#6472) 2022-07-15 13:32:25 +04:00
post_draft Gekidou bugs fixes (#6473) 2022-07-15 12:40:59 +02:00
post_list [Gekidou - MM-44930] Use File component for showing files in search. (#6425) 2022-07-14 12:50:05 +02:00
post_with_channel_info [Gekidou MM-44927] Add Recent Searches Component (#6454) 2022-07-14 14:56:08 +02:00
profile_picture Open User avatar in gallery (#6474) 2022-07-15 10:02:09 +02:00
progress_bar [Gekidou] Post input (#5844) 2022-02-03 08:59:15 -03:00
progressive_image Try to remove as many as as possible (#6200) 2022-05-12 15:46:11 +02:00
remove_markdown include latex (#6434) 2022-06-29 22:02:30 +05:30
rounded_header_context [Gekidou] Navigation bar refactored (#6319) 2022-06-01 17:07:54 -04:00
search MM-39711 - Gekidou Settings Timezone (#6384) 2022-06-24 06:52:05 -04:00
server_icon Various fixes (#6268) 2022-05-13 13:50:19 +10:00
server_version [Gekidou] Extract common observers to queries (#5984) 2022-03-23 09:19:29 -03:00
settings [Gekidou] user profile (#6353) 2022-06-06 11:27:25 -04:00
slide_up_panel_item [Gekidou] Channel Info screen (#6330) 2022-06-02 16:09:12 -04:00
status_label Gekidou - Account Screen (#5708) 2021-10-12 19:24:24 +04:00
syntax_highlight [Gekidou] optimizations, fix & moved files (#6177) 2022-04-18 08:49:17 -04:00
system_avatar [Gekidou] post list (#5893) 2022-01-17 07:06:26 -03:00
system_header [Gekidou] Find channels (remote) (#6203) 2022-05-03 14:29:37 -04:00
tablet_title MM-39710: saved posts screen and DB (#6020) 2022-03-12 16:40:24 -03:00
tag Gekidou cleanup (#6263) 2022-05-13 09:29:35 -04:00
team_sidebar [Gekidou MM-44943] Add team picker to the search screen and results screens (#6455) 2022-07-15 16:05:58 +04:00
toast MM-41532 Gekidou Snack Bars (#6181) 2022-05-05 10:00:32 -04:00
touchable_with_feedback [Gekidou] Performance & UI fixes (#6122) 2022-04-04 17:09:26 -04:00
tutorial_highlight Detox/E2E: Upgrade deps to fix detox crash; Fix/Stabilize e2e (#6387) 2022-06-15 11:49:53 -07:00
user_avatars_stack [Gekidou] user profile (#6353) 2022-06-06 11:27:25 -04:00
user_item Detox/E2E: Messaging (at-mentions, channel mentions, autocomplete etc) e2e tests in Gekidou (#6428) 2022-07-05 10:01:46 -07:00
user_list_row Detox/E2E: Messaging (at-mentions, channel mentions, autocomplete etc) e2e tests in Gekidou (#6428) 2022-07-05 10:01:46 -07:00
user_status Add import order lint rules (#5672) 2021-09-13 10:18:03 +02:00