Commit graph

38 commits

Author SHA1 Message Date
Harrison Healey
0e4f9d5825 Changed to pass IDs to PostList instead of posts (#1036)
* Moved PostList to take a list of postIds instead of posts

* Removed usage of selectors that return posts from ChannelPostList and Thread

* Fixed search and switched to use getPostIdsAroundPost selector

* Removed use of selectors that returned posts from emoji reactions

* Updated makePreparePostIdsForPostList to be better memoized

* Fixed filter of join/leave messages

* Added unit tests for makePrepaprePostIdsForPostList

* Check if post edit/delete should be enabled more often

* Updated mattermost-redux version in yarn.lock
2017-10-20 18:58:44 -03:00
Harrison Healey
a9489dcc5f Replace getTheme selector with one from mattermost-redux (#1013) 2017-10-12 08:45:17 -07:00
enahum
f50b2b9412 Improving Performance Part 3 (#1011)
* Update mattermost-redux

* Tap on Deleted post to remove it

* Improvements when rendering post additional content

* Avoid unnecessary re-renders on the post list component

* Avoid unnecessary re-renders on the channel post list component

* Avoid unnecessary re-renders on the channel screen

* Feedback review
2017-10-11 14:54:13 -03:00
enahum
fb773f04cb Multiple performance improvements (#956)
* Update fastlane

* Multiple performance improvements

* Feedback review

* Feedback review
2017-10-02 16:03:13 -03:00
Harrison Healey
98abbd6dca RN-345 Additional improvements to channel switching (#926)
* RN-345 Only show refreshing indicator when channel is actually refreshing

* Added getCurrentLocale selector

* Added SwitchTeams component to channel drawer to reduce rerenders

* Reduced number of props passed from ChannelsList into children

* Removed unused prop from FilteredList

* Moved visible post calculation out of render function

* Don't set the channel to loading when not switching channels

* Added most of channel view state to blacklist
2017-09-22 11:48:30 -07:00
Chris Duarte
e4b86518a9 RN-342 Refactor post textbox component (#915)
* RN-342 Refactor post textbox component

* Rebase

* Review feedback
2017-09-20 16:40:40 -04:00
enahum
0628cbc693 Upgrade to RN 0.48.3 (#911)
* Upgrade to RN 0.48.1

* Update deps to be exact

* Fix tests

* Remove unneeded code from setup and add socketcluster dep

* Fix drawer pan issue

* Fix bridge issues on iOS

* Upgrade to RN 0.48.3

* Search to use RN SectionList
2017-09-18 12:01:47 -04:00
Harrison Healey
a291fdc933 RN-74 Added updated markdown code block view (#855)
* RN-74 Added updated markdown code block view

* Set default channelIsLoading prop to PostList

* RN-74 Fixed uneven line numbers on Android

* RN-74 Prevented double tapping on markdown code blocks
2017-08-21 11:40:42 -03:00
Harrison Healey
2b33618f31 Reverted change to keyboardShouldPersistTaps for post list (#858) 2017-08-17 22:44:17 -03:00
Harrison Healey
c6ae1090f7 Changed makeStyleSheetFromTheme to take a function that returns a plain object (#852)
* Changed makeStyleSheetFromTheme to take a function that returns a plain object

* Fixed style issues
2017-08-15 18:26:55 -03:00
enahum
b7b817a973 Release 1.1 (#829)
* Updated yarn.lock

* Fastlane ensure branch for cutting builds (#815)

* Version Bump to 45 (#818)

* Android Version Bump to 45 (#819)

* Updated yarn.lock (#817)

* Version Bump to 45

* Fix Create on Create channel to not push another Create Channel screen (#820)

* Version Bump to 46 (#821)

* Version Bump to 46 (#822)

* RN-205/RN-210 Allow tapping buttons on post and DM lists without closing keyboard (#823)

* Version Bump to 47 (#824)

* Version Bump to 47 (#825)

* Release 1.1 changelog (#827)

* Release 1.1 changelog

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

Set supported server version

* update fastlane

* Update fastlane android release
2017-08-04 17:42:55 -04:00
Chris Duarte
fd0ca606bb Use post retry actions to avoid missing messages (#796)
* Use post retry actions to avoid missing messages

* Review feedback

* Fix race condition and update redux-offline

* Review feedback
2017-08-01 19:09:57 -04:00
enahum
dc8b9a04b1 RN-10 Ability to search Posts (#763)
* Fix offline indicator UI

* Add search screen with recent mentions functionality

* Fix make start

* Add autocomplete to the search box

* Fix search bar in other screens

* Get search results and scroll the list

* Add reply arrow to search result posts

* Search result preview and jump to channel

* Feedback review
2017-07-21 17:07:47 -04:00
Chris Duarte
0b6d2628ed Fixes an issue with channel intro not displaying (#667) 2017-06-26 15:57:55 -04:00
enahum
2a7c487463 Re-factor post_list with VirtualizedList (#665)
* Re-factor postlist with VirtualizedList

* Remove react-native-invertible-scroll-view dependency

* Fix navigator not being pass to post

* Feedback review

* Feedback second review
2017-06-23 16:07:06 -04:00
Harrison Healey
4574a54241 RN-219 Attempting to fix missing posts (#653)
* RN-219 Changed loadPostsIfNecessary to get since latest Post.CreateAt

* RN-219 Changed post list refresh to always get the latest page of posts

* Updated yarn.lock
2017-06-20 09:32:55 -04:00
Chris Duarte
1a17f2970f Allow navigation to profiles using channel intro icons and names (#644)
* Allow navigation to profiles using channel intro icons and names

* Add preventDoubleTap
2017-06-19 08:46:38 -04:00
enahum
2980de0b19 RN-7 Ability to search channels in the drawer (#602)
* RN-7 Ability to search channels in the drawer

* Fix i18n locale data

* Split channel_drawer into multiple components

* Fix eslint
2017-06-09 08:23:56 -04:00
enahum
26c365a00b Various Updates and fixes (#559)
* Update to latest mattermost-redux

* Update View.propTypes to ViewPropTypes

* use an empty object if the draft is undefined
2017-05-22 14:17:30 -04:00
enahum
7aa4fbd4a5 RN-136 Post list pull to refresh (#558)
* Fix post list inverted issue

* Add pull to refresh to post list
2017-05-22 08:09:52 -04:00
enahum
844c654fda Update RN to 0.44.0 and project dependencies (#546) 2017-05-16 21:13:44 -04:00
enahum
248dafbe0e RN-97 Changed navigation from NavigationExperimental to ReactNative Navigation (#540)
* Add react-navigator dependency

* Add react-native-navigation dependency

* react-native-navigation, ios and android config

* update react-native-navigation

* New navigation and code cleanup

* Set ScreenBackgroundColor

* Fix channel drawer event issue

* Applied RNPN non-working popInitial notification

* Android navbar and back button

* packages and notices

* MM-redux update

* Fix draft on team switch

* Remove custom NavBar
2017-05-16 11:19:46 -04:00
Chris Duarte
9d13c985c2 RN-52: RN: Make create post and upload file actions optimistic (#504)
* RN-52: RN: Make create post and upload file actions optimistic

* Review feedback
2017-04-27 08:45:42 -03:00
enahum
dda0480fec Various Bug Fixes (#502)
* Fix edit post with APIv4

* Fix filterProfiles

* Fix intro message error for threads

* Fix members to load in channel action

* Fix channel members lists
2017-04-26 12:55:09 -03:00
enahum
7a3c99c267 Move to mattermost-redux master branch (#484) 2017-04-21 14:20:52 -03:00
Chris Duarte
65af36ce1d RN-68 RN: Show channel intro message (#480) 2017-04-18 16:51:17 -03:00
enahum
cdff304be1 RN-64 Ability to open the app in offline mode (#479) 2017-04-13 11:57:19 -03:00
Harrison Healey
43e4c5e2f2 PLT-5860 Updated copyright date (#476) 2017-04-10 11:33:35 -03:00
enahum
3209eeb46c PLT-6038 & PLT-6032 Bug fixes in post list and create channel (#397)
* * Fix post list to gracefully fail image previews
* Do not to fetch multiple times the same posts with infinite scroll
* Fix create private channel

* move react-native orientation to own fork
2017-03-26 22:22:54 -03:00
enahum
548633f5c0 PLT-5857 replace the service folder with mattermost-redux library (#348) 2017-03-14 10:52:24 -03:00
Chris Duarte
496068e99c PLT-5496 Allow user to load more posts in channel posts list (#307)
* Group addDatesToPostList options into object

* Clean up imports in PostList

* Dry up code for adding dates to posts in PostList

* Allow user to load more posts in channel post list

* Load more posts upon scrolling to end instead of with button

* Wait for initial posts to be loaded before loading more

* Return data in getPosts actions

* Check how many posts were fetched to determine if there are more

* Insert load-more-posts into list in PostList not post_utils.js

* Rename component for LoadMorePosts

* Use LoadMorePosts to indicate if more posts are loading

* Only try to load more posts if initial posts have been loaded

* Don’t show LoadMorePosts if posts list is empty

* Don’t try to load more posts if first post has been loaded

* Don’t show LoadMorePosts if first post has been loaded

* Set hasFirstPost in willReceiveProps of PostList

* Use constant for load-more-posts token string

* Only show LoadMorePosts if pagination is enabled on PostList

* Fix logic for determining if posts loaded in PostList

* Ensure PostList ListView rerenders

* Move load more posts logic into ChannelPostList

* Remove unused getTheme from ChannelPostList container

* Avoid clever variable assignment in LoadMorePosts
2017-03-09 14:07:35 -03:00
Chris Duarte
afe09babfa PLT-5605 Fix logic for indicating start of new messages (#284)
* Fix placement of new messages separator

* Ignore your own posts when determining start of new messages

* Cache lastViewedAt in ChannelPostList until switching channels

* Increase padding around DateHeader & NewMessagesDivider

* Improve styling of new messages divider line

* Use async await for ChannelDrawerList.onSelectChannel

* Convert DateHeader to functional component
2017-02-21 23:59:27 -03:00
Chris Duarte
0bf26e95b0 PLT-5499 Indicate start of new messages in posts list (#279)
* Indicate start of new messages in posts list

* Use flag prop to indicate start of new messages in posts list

* Declare style props with View.propTypes.style
2017-02-20 18:05:16 -03:00
enahum
61576c9474 PostList date separator to match webapp (#264)
* PostList date separator to match webapp

* Remove preference change test
2017-02-16 09:11:00 -05:00
Harrison Healey
249312b852 PLT-5252 Added Thread view (#239)
* Added Thread view

* Fixed added unit test

* Fixed copyright date on added file

* Moved scene-specific selector into service directory
2017-02-13 18:08:26 -03:00
Chris Duarte
088a2c7737 Navigation Drawer and Modal (#220)
Navigation header now responds to theme changes
Improve channel selection transition
Implement navigation modal
Reword options modal
2017-02-08 12:16:24 -08:00
enahum
b3b3d9a39a Squashing several bugs (#221)
* Squashing several bugs

* Fix websocket tests
2017-02-08 10:28:27 -08:00
Harrison Healey
c28d64c8da #96/#112/PLT-5370/PLT-5372 Styling posts and channel view (#213)
* Updated post rendering in center channel to include dates, display names, themeing, profile pictures, and threads

* Added status to ProfilePicture component

* Changed MemberListRow to use a ProfilePicture

* Removed unused prop

* Fixed incorrect copyright year on new file

* Removed unnecessary ref
2017-02-02 13:53:42 -03:00