Commit graph

72 commits

Author SHA1 Message Date
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
5b11aea0f5 RN-68: Make save and delete preferences optimistic (#478)
Make account notifications optimistic
Make close DM/GM optimistic
Make favorite channel optimistic
2017-04-18 18:18:30 -03:00
Harrison Healey
43e4c5e2f2 PLT-5860 Updated copyright date (#476) 2017-04-10 11:33:35 -03:00
enahum
0d654a79da RN-61 Implement offline indicator (#472)
* Implement offline indicator

* Review feedback
2017-04-10 09:17:43 -03:00
Chris Duarte
d206ea68de PLT-6173: Offline redux store (#471)
* PLT-6173: Offline redux store

* Review feedback
2017-04-09 21:51:47 -03:00
enahum
fb1471c4de Fix first load to include the right DM's and GM's (#461) 2017-04-06 11:45:20 -03:00
enahum
491fba7738 PLT-6202 Make DM's and GM's visible if necessary (#457) 2017-04-05 22:33:13 -03:00
enahum
007c8bcf35 PLT-6208 Follow policies set in System Console (#456) 2017-04-05 22:33:03 -03:00
enahum
422474a0d2 * Fix markdown issue with renderHardBreak's (#438)
* Fix issue when tapping on a push notification
* Fix splash screen dismissal
2017-03-30 23:44:52 -03:00
Chris Duarte
fce5acea46 PLT-6015 RN grey vertical line on left of replies is sometimes too short (#427) 2017-03-29 23:53:48 -03:00
enahum
e26be5554a PLT 6062 - Fixing Push Notifications (#418)
* PLT-6062 Don't show in-app notification if current channel

* PLT-6131 make drawer titles all caps

* PLT-6027 fix handle Push notifications for DM/GM
2017-03-29 15:32:02 -03:00
Chris Duarte
bc18d60883 Fix login transition (#410)
* Fix login transition

* Add instant transition to modal

* Fix transition to show loader on first login

* Add loader to load_team

* Remove back button
2017-03-28 23:59:01 -03:00
enahum
cb62b02b02 PLT-5489 About Mattermost (#406)
* PLT-5489 About Mattermost

* address feedback
2017-03-27 17:05:33 -03:00
Chris Duarte
e6a1c1a433 Plt 6044 plt 5971 plt 5934 (#405)
* Update post textbox design

* Hide team selection

* Added channel loader

* Update post textbox to new design

* Add channel loader animation

* Remove error bar

* Made image preview fullscreen

* Fix channel loader gradient

* Fix status icon

* Adjust loaded and profile

* Fix channel header wrap

* Add reply count icon

* Fix android styling

* Hide send button

* Fix thread header

* Fix thumbnail upload preview

* Fix preview retry and design
2017-03-27 16:47:52 -03:00
enahum
58f1b3a552 PLT-5660 Ability to edit a post (#399)
* Ability to edit a post

* address feedback
2017-03-26 22:31:16 -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
4a53d47887 PLT-5598 Android back button support (#388)
* Add shadow to the drawer

* PLT-5964 open a DM with someone outside the team

* PLT-5598 Android back button support
2017-03-23 19:10:48 -03:00
Chris Duarte
f37c308ab8 PLT-6033 Add loading spinner to image previewer (#387) 2017-03-23 17:21:14 -03:00
enahum
c049cb0f9d Various UI Fixes (#384)
* Various UI Fixes

* ability to scroll through teams

* Fix drawer when not logged in

* fix channel info DM status

* channel drawer spacing of icons made equal

* address feedback
2017-03-23 10:36:35 -03:00
enahum
56a27ce7ad PLT-5711 Fix Tapping on the button to open the drawers not always work (#383)
* PLT-5711 Fix Tapping on the button to open the drawers not always work

* PLT-6052 Include drawer transition fix

* feedback + unit tests
2017-03-22 23:38:01 -03:00
enahum
7fae0f8039 PLT-5721 Show Group Messages and correct channel info (#372)
* Fix bad merge for navigation modal

* Fix modal props for options and image preview

* PLT-5721 Show Group Messages and correct channel info

* Set fixed commit on mattermost-redux

* address feedback
2017-03-21 21:11:11 -03:00
enahum
4bb74c065a PLT-5930 Moved Settings to channel drawer (#376) 2017-03-21 18:15:41 -04:00
enahum
913e29e37b PLT-5933 Fix drawer transition lag (#377)
* Fix drawer transition lag

* make handleSelectChannel perform actions in parallel
2017-03-21 18:09:56 -04:00
Chris Duarte
18cc7f1e7f PLT-5518 RN: Allow user to upload + send image file attachments (#373)
* PLT-5518 RN: Allow user to upload + send image file attachments

* Review feedback
2017-03-21 17:58:31 -04:00
enahum
383a770fde PLT-5880 Channel drawer UI (#365)
* fix drawer size and added tweener

* added opacity to drawer buttons

* Fix bad merge for navigation modal

* Fix channel drawer container UI

* Open Account Settings modal from channel drawer

* Fix modal props for options and image preview

* Channel drawer item UI

* Fix bottom unread indicator overlap
2017-03-20 16:31:10 -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
d852587268 Fix android error handler (#347) 2017-03-14 00:09:23 -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
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
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
ba582b2edc PLT-5606 Pre-fill the server URL from async storage if you have it. (#326) 2017-03-06 11:04:45 -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
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
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
3eb7e377cf More Channels (#276)
* More Channels

* Fix cleaning search

* feeback review
2017-02-20 16:51:02 -03:00
Harrison Healey
6c527300d7 Improved how posts are loaded when switching to a channel (#265) 2017-02-20 16:33:39 -03:00
Chris Duarte
230cbf7530 Post draft persist (#271) 2017-02-18 15:06:49 -03:00
Chris Duarte
3b7a6df617 PLT-5530 Render placeholder icons + metadata for file attachments in posts list (#249)
* Add icons for file types

* Compress image files for file type icons

* Add constants for file types

* Add utils for file metadata

* Add actions & reducers for fetching file attachments

* Render file attachments in posts

* Add reducers for handling files requests

* Refactor getFileType in file utils

* Refactor getFileIconPath in file utils

* Refactor getFormattedFileSize in file utils

* Trim trailing whitespace in getTruncatedFilename

* Style file attachment metadata

* Remove entity store reducer for files fetch failure

* Change filesForPost to fileIdsForPost in files store

* Use a selector for getFilesForPost

* Memoize getFilesForPost selector

* Dispatch postId with getFilesForPost

* Add test for getFilesForPost

* Upload seed file in getFilesForPost test

* Display correct icon for image attachments

* Fix reducers for receiving files for post

Expect response data to be array not object

* Style attachment post

* Merge headers (defaults + opts) in Client.doFetch

* Upload file as FormData

* Use form-data lib instead of built-in polyfill

* Associate file with post in getFilesForPost test

* Improve assertions in getFilesForPost test

* Check for createPost failure in getFilesForPost test

* Use correct post id in getFilesForPost test

* Use client not action to create post in getFilesForPost test

* Fix file upload in getFilesForPost test

* Add assertion for name of uploaded file

* Update attachment post style

* Fix spelling of loadFilesForPostIfNecessary

* Remove eslint-disable no-magic-numbers from file_utils.js

* Remove unused index prop from FileAttachment

* Clarify code for merging headers in Client.getOptions

* Dynamically truncate file attachment names

* Extract component for FileAttachmentIcon

* Use white bg for FileAttachmentIcon to match webapp styles

* Match webapp styles for file attachment borders

* Move file icon path lookup to FileAttachmentIcon

* Use more logical ordering for file type lookup
2017-02-17 17:40:40 -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
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
e0631c2663 Store post drafts (#241) 2017-02-13 10:25:11 -05:00
Chris Duarte
263fd50887 Channel info delete (#222)
* Initial setup to delete channels

* Combine leave and delete

* Working delete when removing the current channel id delete

* Initial working delete with handling web sockets

* Move go back out of component

* Refactor alert function and handle after leave navigation

* Remove promise then

* Allow channel membership to default to empty object

* Ensure that channel is present to avoid method on undefined

* Remove view channel delete action

* Remove unused type
2017-02-09 09:12:44 -08:00
Chris Duarte
8c0f5c70d7 Manage member permissions (#223)
* Manage member permissions

* Review feedback
2017-02-08 13:01:17 -08:00