mattermost-mobile/app
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
..
actions MM-39710: saved posts screen and DB (#6020) 2022-03-12 16:40:24 -03:00
client MM-39710: saved posts screen and DB (#6020) 2022-03-12 16:40:24 -03:00
components MM-39710: saved posts screen and DB (#6020) 2022-03-12 16:40:24 -03:00
constants MM-39710: saved posts screen and DB (#6020) 2022-03-12 16:40:24 -03:00
context [Gekidou] Gallery (#6008) 2022-03-01 13:55:44 -03:00
database Adds muted state to channel list in sidebar (#6042) 2022-03-11 10:13:05 -03:00
helpers/api [Gekidou MM-39729] Websocket Events - Groups (#5930) 2022-03-01 10:13:45 -06:00
hooks [Gekidou] update dependencies (#6019) 2022-03-01 18:52:01 -03:00
i18n MM-39712 - Edit Profile Screen without image picker (#5849) 2021-12-23 15:16:55 +04:00
init [Gekidou] [MM-41524] Add tests to draft Upload Manager (#5990) 2022-03-11 14:00:09 -03:00
notifications [Gekidou] push notifications (#5779) 2021-10-27 17:53:11 -03:00
queries Fixes a race condition and deleting only teams that you no longer belong to (#6028) 2022-03-07 19:20:47 -03:00
screens MM-39710: saved posts screen and DB (#6020) 2022-03-12 16:40:24 -03:00
store Upgrade deps (#5850) 2021-11-29 23:19:39 +02:00
utils MM-39710: saved posts screen and DB (#6020) 2022-03-12 16:40:24 -03:00