mattermost-mobile/app/utils
Kyriakos Z 2645f7e66e
MM-39710: saved posts screen and DB (#6020)
* MM-39710: saved posts screen and DB

- Adds ids of saved posts to the systems table, as we do with recent
mentions.
- Adds a new remote action to fetch saved posts (getFlaggedPosts).
- Adds a new screen to display those in a mobile.
- Displays saved posts in the tablet view next to profile card.

* Uses Preferences instead of System table

Renames to saved posts wherever possible

* Adds text to localization file

* Fixes fetching/saving saved posts

* Refactor mini post to components folder

* Fixes hooks dependencies according to review

* Removes unnecessary 'withObservables'

* Small refactor

* Satisfies linter

* Adds empty state

And fixes empty state icon to be theme sensitive.
Both recent_mentions and saved_posts.

* Fixes empty screen's alignment

* Add missing preference

* add missing translation strings

* remove unused database type definition

* Fetch newly saved post

* Fix return type for client.getSavedPosts

* Remove usage of lodash compose

* Rename get remote actions to fetch

* Include close button for savedPost modal

* fix tablet view for SavePosts and use lottie loading indicator

* Render post with content for save posts and recent mentions

* post list viewable items type definition

* Add layout width to post content for saved post screen

* Use PostWithChannel and viewableItems for saved posts and recent mentions

* Layout margin of 20

* openGraphImage margin

* Fix openGraphImage display

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-03-12 16:40:24 -03:00
..
channel [Gekidou] Post input (#5844) 2022-02-03 08:59:15 -03:00
document [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00
draft [Gekidou MM-39729] Websocket Events - Groups (#5930) 2022-03-01 10:13:45 -06:00
emoji [Gekidou] [MM-39682] Add autocomplete and emoji suggestion (#5931) 2022-02-22 11:30:22 +01:00
file [Gekidou] Gallery (#6008) 2022-03-01 13:55:44 -03:00
gallery [Gekidou] Gallery (#6008) 2022-03-01 13:55:44 -03:00
general [Gekidou] Gallery (#6008) 2022-03-01 13:55:44 -03:00
images [Gekidou] Markdown SVG & image size support (#6032) 2022-03-10 09:03:09 -03:00
markdown MM-39710: saved posts screen and DB (#6020) 2022-03-12 16:40:24 -03:00
notification [Gekidou] push notifications (#5779) 2021-10-27 17:53:11 -03:00
post [Gekidou MM-39729] Websocket Events - Groups (#5930) 2022-03-01 10:13:45 -06:00
post_list [MM-39708] Gekidou Thread Screen (#6015) 2022-03-10 10:45:30 -03:00
role MM-39716: Added + button bottomsheet layout (#5957) 2022-02-16 14:17:57 +01:00
server Gekidou MultiServers second part (#5963) 2022-02-17 10:42:06 -03:00
svg Gekidou MultiServers second part (#5963) 2022-02-17 10:42:06 -03:00
tap MM-36721 - [GEKIDOU] Porting Markdown components (#5586) 2021-08-02 20:30:17 +04:00
theme MM-41602 Gekidou long press menu UI only (#5950) 2022-02-14 17:26:16 -03:00
url [Gekidou] Gallery (#6008) 2022-03-01 13:55:44 -03:00
user [Gekidou] [MM-39718] Add Create DM screen (#5900) 2022-03-11 12:57:31 -03:00
apps.ts [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00
buttonStyles.ts [Gekidou] MM-39736 Login Flow (#5799) 2021-11-18 22:07:41 +01:00
client_error.ts Draft - Add Server Screen Gekidou Updates (#5663) 2021-10-29 19:14:55 -03:00
error_handling.ts Update v2 dependencies (#5312) 2021-04-14 10:55:29 -04:00
font_family.ts fixed OpenSans, added Metropolis fonts & modified post text styles (#5728) 2021-10-07 17:20:39 -03:00
helpers.ts Gekidou - Sidebar websocket handling (#5954) 2022-02-17 08:07:31 +11:00
key_mirror.ts MM-35115 [Gekidou] Login flow - Email and Password (#5402) 2021-06-18 00:57:40 -04:00
mattermost_managed.ts Entry point when upgrading from v1 (#5707) 2021-10-01 09:56:28 +04:00
message_attachment_colors.ts [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00
mix.ts MM-30482 [Gekidou] Data Operator (#5346) 2021-04-22 19:16:00 +04:00
opengraph.js [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00
opengraph.ts [Gekidou] post component tree and partial postList (#5637) 2021-09-06 08:22:55 -03:00
security.ts Integrate react-native-network-client (#5499) 2021-07-06 11:16:35 -04:00
sentry.ts Add import order lint rules (#5672) 2021-09-13 10:18:03 +02:00
typography.ts Draft - Add Server Screen Gekidou Updates (#5663) 2021-10-29 19:14:55 -03:00