Commit graph

85 commits

Author SHA1 Message Date
enahum
8aaddf70f3 PLT-5884 Fix burger mention numbers (#362) 2017-03-20 17:02:16 -03:00
enahum
0812507b9e Fix SAML login with OneLogin (#359) 2017-03-20 16:47:19 -03:00
Saturnino Abril
70da78af69 fixed android app crash on saving notification (#364) 2017-03-20 09:51:48 -04:00
Chris Duarte
2638a9c75d PLT-5517 Image file previewer (#344)
* PLT-5517 RN: Image file previewer

Add preview component and client routes
Add fade transition for modal
Add paging controls, title header, and info footer
Add drag to dismiss behavior
Fix android layout issues
Handle orientation change

* Fix tests

* Review feedback

* Review feedback
2017-03-17 09:04:35 -04:00
Chris Duarte
1e63ac2667 PLT-5599 RN: Modal options for Android (#353) 2017-03-16 15:13:36 -04:00
enahum
548633f5c0 PLT-5857 replace the service folder with mattermost-redux library (#348) 2017-03-14 10:52:24 -03:00
enahum
3096e89155 Fix badge flickering (#341) 2017-03-14 00:23:59 -03:00
Chris Duarte
d36dc3412a PLT-5492 Add Account Settings > Notifications (#323)
* PLT-5492 RN: Add Account Settings > Notifications

* Review feedback
2017-03-13 15:37:44 -03:00
enahum
8bc6a0cb14 PLT-5726 Fix post profile picture tap (#345)
* PLT-5726 Fix post user image tap

* Fix double loading showing up

* conditional reply bar
2017-03-13 12:51:20 -04:00
enahum
6324f22095 PLT-5630 Implement push notifications and unread badge on app icon (#338)
* enable ios push notifications

* enable android push notifications

* NOTICE for push notification and message bar

* include message in noty

* re-wording notices

* feedback review
2017-03-13 09:51:21 -04:00
Chris Duarte
e17eb6c237 PLT-5709 Global error handler (#187)
* WIP Global error handler

Adding components
Adding actions

* Add general errors where errors are caught

* Filter out non displayable errors

* Initial setup to email errors

* Add current user/team to error email

* Fix a few lints

* Ensure errors are cleared when reporting a problem

* Add clear all and internationalization

* Fix trailing comma issue

* fix lints

* Use Formatted Text component

* Move error list out of channel

* Add mobile prefix to i18n id for connection error

* Set shouldRender to true in RightMenuDrawerItem.defaultProps

* Update component name for RightMenuDrawerItem

* Clean up propTypes in RightMenuDrawerItem

* Clean up styles in RightMenuDrawerItem

* Use selector to filter displayable errors

* Clarify code for constructing wrapper style in ErrorList

* Avoid indenting email body for error report

* Remove extraneous params from errors actions

* Rename action type for logging errors

* Rename action for logging errors

* Set shouldRender to true in RightMenuDrawerItem.defaultProps

* Make logged errors displayable by default

* Don't log error when websocket connection is closed

* Hide button to dismiss all errors if ShowErrorsList isn't enabled

* Display only last error in alert bar when ShowErrorsList is disabled

* Add error logging where missing in actions

* Always show button to report problem

* Only include errors in report problem email if any have been logged

* Clarify subject of report problem email

* Set ShowErrorsList to false in default config.json

* Remove unused component + translation for connection errors

* Capture entire error object not just message

* Display fallback if error.message is blank

* Log errors in login actions

* Fix construction of errors email body
2017-03-12 14:42:02 -03:00
enahum
f3dbb72f65 PLT-5836 Smooth transitions and add activity indicators (#339) 2017-03-10 20:52:52 -03:00
Chris Duarte
f5745cbc0e PLT-5810 Add missing intl key to error objects in login screen (#336) 2017-03-10 15:40:31 -05:00
Chris Duarte
dca35ac418 PLT-5675 Fix posts rendering as blank (#337)
* PLT-5675 RN: Posts rendering as blank

* Review feedback
2017-03-10 15:28:57 -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
enahum
c13a436d18 Enable SAML authentication (#325)
* enable saml authentication

* Fix unit tests

* Fix android cookies

* Feedback review
2017-03-09 14:07:18 -03:00
enahum
6296f39673 Fix login when showing an error (#329) 2017-03-06 17:22:45 -05:00
enahum
ba582b2edc PLT-5606 Pre-fill the server URL from async storage if you have it. (#326) 2017-03-06 11:04:45 -05:00
Chris Duarte
c01035ac38 Action button (#324) 2017-03-06 09:50:33 -05:00
enahum
2fe69cacef Move periodic status check to channel scene (#318) 2017-03-03 20:32:51 -03:00
Harrison Healey
4c2928218f PLT-5695 Fixed replying in DM threads (#320) 2017-03-03 18:18:47 -03:00
enahum
49c31620a8 PLT-5707 Fix Threads title in DM channel (#322) 2017-03-03 16:17:17 -05:00
Chris Duarte
bb1446da91 Fix android web socket error (#321)
* Fix android web socket error

* Modify init args
2017-03-02 17:34:45 -03:00
enahum
069495ecb2 PLT-5676 Validate server URL format (#315)
* PLT-5676 validate server URL format

* changed based on feedback
2017-03-01 11:13:17 -05:00
enahum
c121097974 PLT-5587 Create channel (#300)
* PLT-5587 Create channel

* Feedback review

* hidding options in account settings
2017-02-27 16:17:18 -05:00
enahum
c1318fe834 PLT-5589 Reload configuration when the server config changes (#301) 2017-02-27 13:15:51 -05:00
Chris Duarte
a36702f7d4 PLT-5634 Add account settings scene (#297)
* PLT-5634 RN: Add account settings scene

* Rebase
2017-02-25 19:48:30 -03:00
Chris Duarte
bb3d7941be PLT-5578 Add theming for channel info (#298) 2017-02-24 23:47:24 -03:00
Chris Duarte
9e8fb26f4b PLT-5604 Add/Remove members from pubic channels doesn't match the webapp functionality (#289)
* PLT-5604 Add/Remove members from pubic channels doesn't match the webapp functionality

* Review feedback

* Fix spelling of ChannelMembersTitle

* Use selector to consolidate auth logic for channel member mgmt
2017-02-24 23:20:28 -03:00
enahum
d33c2712ed PLT-5611 Add Channel Name to thread view title (#294) 2017-02-24 12:46:50 -03:00
Chris Duarte
440de8ba32 PLT-5610 Localize login error message to match what's displayed in webapp (#296)
* Capture server error id where handling error response in client.js

* Alias login errors for unknown acct & incorrect pw to match webapp
2017-02-24 10:19:31 -03:00
Chris Duarte
63dee10fd8 PLT-5644 Center align login header text and topbar title text (#295)
* Center align header text in global styles

* Center align topbar title text
2017-02-24 10:18:15 -03:00
Chris Duarte
b09dbbb79c PLT-5493 Add a profile scene that shows user information (#287)
* PLT-5493 React Native: Add a profile scene that shows user information

* Review feedback
2017-02-24 10:17:05 -03:00
Chris Duarte
567310b9d6 PLT-5572 Add swiping to close all scenes that open from the side (#292) 2017-02-23 20:04:59 -03:00
enahum
06cf8b7851 PLT-5609 Fix different speed for text animation (#290) 2017-02-23 13:50:25 -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
42ef890415 Manage members fix (#267) 2017-02-20 18:06:18 -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
e74ecfa5f2 PLT-5510 Show user is typing (#278)
* PLT-5510 Show user is typing

* Move autocomplete below the user typing
2017-02-20 17:39:20 -03:00
enahum
d0209aa8c3 PLT-5488 Add an Unread indicator on the button to open the channel drawer (#277)
* Unread indicator in burger button

* Set badge to always be red
2017-02-20 17:11:19 -03:00
enahum
3eb7e377cf More Channels (#276)
* More Channels

* Fix cleaning search

* feeback review
2017-02-20 16:51:02 -03:00
Chris Duarte
230cbf7530 Post draft persist (#271) 2017-02-18 15:06:49 -03:00
Harrison Healey
1319f1fcf8 Added KeyboardLayout to automatically use a KeyboardAvoidingView as necessary (#263)
* Renamed layouts/root_layout to components/root

* Added KeyboardLayout to automatically use a KeyboardAvoidingView when necessary
2017-02-16 09:19:48 -05:00
enahum
185b968b76 Fix fetch offset for more dms (#255) 2017-02-16 09:16:20 -05:00
enahum
a97238f75c Removed channel_viewed websocket event (#254) 2017-02-15 14:08:41 -03:00
Harrison Healey
f5502d8b67 Fixed merge conflict causing thread drafts to not work (#252) 2017-02-14 15:09:20 -05:00
enahum
51e8ee6ea2 More Direct Messages scene (#244)
* More Direct Messages scene

* Adding search_bar.js to mock tests

* Feedback review

* Address feedback review 2
2017-02-14 11:49:41 -05:00
Chris Duarte
f0e1d38a48 Remove items from menu drawer (#247)
* Remove items from menu drawer

* Removed unused import

* Remove flagged posts prop
2017-02-14 10:01:16 -05:00
enahum
239ecbcdba Fix Android keyboard (#250) 2017-02-14 09:30:28 -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