mattermost-mobile/app/actions/remote
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
..
entry Fixes a race condition and deleting only teams that you no longer belong to (#6028) 2022-03-07 19:20:47 -03:00
apps.ts [Gekidou] Post input (#5844) 2022-02-03 08:59:15 -03:00
category.ts Gekidou - Sidebar websocket handling (#5954) 2022-02-17 08:07:31 +11:00
channel.ts [Gekidou] [MM-39718] Add Create DM screen (#5900) 2022-03-11 12:57:31 -03:00
command.ts [Gekidou] Post input (#5844) 2022-02-03 08:59:15 -03:00
custom_emoji.ts Gekidou - Account Screen (#5708) 2021-10-12 19:24:24 +04:00
error.ts Integrate react-native-network-client (#5499) 2021-07-06 11:16:35 -04:00
file.ts [Gekidou] Gallery (#6008) 2022-03-01 13:55:44 -03:00
general.ts Draft - Add Server Screen Gekidou Updates (#5663) 2021-10-29 19:14:55 -03:00
notifications.ts [Gekidou] update dependencies (#6019) 2022-03-01 18:52:01 -03:00
post.ts MM-39710: saved posts screen and DB (#6020) 2022-03-12 16:40:24 -03:00
preference.ts MM-41889 Gekidou Post Options menu - save/unsave option (#5980) 2022-02-17 10:43:59 -03:00
reactions.ts [Gekidou] Post input (#5844) 2022-02-03 08:59:15 -03:00
retry.ts Remove team unreads and rely on channel member instead (#5710) 2021-10-01 16:07:57 -03:00
role.ts [Gekidou] various fixes (#6022) 2022-03-03 12:11:47 -03:00
search.ts MM-39710: saved posts screen and DB (#6020) 2022-03-12 16:40:24 -03:00
session.ts Gekidou MultiServers second part (#5963) 2022-02-17 10:42:06 -03:00
systems.ts [Gekidou] - Channel Intro (#5846) 2021-12-21 17:44:00 +02:00
team.ts Gekidou - Sidebar - Adds actions, queries, db models and rest client (#5953) 2022-02-11 18:40:44 -03:00
thread.ts [MM-39708] Gekidou Thread Screen (#6015) 2022-03-10 10:45:30 -03:00
user.ts [Gekidou] [MM-39718] Add Create DM screen (#5900) 2022-03-11 12:57:31 -03:00