mattermost-mobile/app/client/rest
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
..
apps.ts Upgrade deps (#5850) 2021-11-29 23:19:39 +02:00
base.ts Gekidou servers (#5960) 2022-02-14 16:39:29 -03:00
categories.ts Gekidou - Sidebar - Adds actions, queries, db models and rest client (#5953) 2022-02-11 18:40:44 -03:00
channels.ts [Gekidou] [MM-39717] Add Channel Browser screen (#5868) 2022-02-10 12:45:07 +01:00
constants.ts Integrate react-native-network-client (#5499) 2021-07-06 11:16:35 -04:00
emojis.ts MM-36721 - [GEKIDOU] Porting Markdown components (#5586) 2021-08-02 20:30:17 +04:00
error.ts [Gekidou] update dependencies (#5691) 2021-09-23 14:44:50 -03:00
files.ts [Gekidou] Gallery (#6008) 2022-03-01 13:55:44 -03:00
general.ts Integrate react-native-network-client (#5499) 2021-07-06 11:16:35 -04:00
groups.ts Upgrade deps (#5850) 2021-11-29 23:19:39 +02:00
index.test.js [Gekidou] Fix & small refactor to the app entry logic and WS reconnection (#5937) 2022-02-09 12:49:37 -03:00
index.ts Gekidou - Sidebar - Adds actions, queries, db models and rest client (#5953) 2022-02-11 18:40:44 -03:00
integrations.ts [Gekidou] Post input (#5844) 2022-02-03 08:59:15 -03:00
posts.ts MM-39710: saved posts screen and DB (#6020) 2022-03-12 16:40:24 -03:00
preferences.ts MM-41889 Gekidou Post Options menu - save/unsave option (#5980) 2022-02-17 10:43:59 -03:00
teams.ts Gekidou websockets (#5671) 2021-10-19 19:16:10 +02:00
tos.ts Upgrade deps (#5850) 2021-11-29 23:19:39 +02:00
users.ts Upgrade deps (#5850) 2021-11-29 23:19:39 +02:00