Commit graph

71 commits

Author SHA1 Message Date
enahum
5b1a68db74 RN-137 Team sidebar (#577)
* Team sidebar

* Update NOTICES.txt

* feedback review
2017-05-29 15:51:11 -04:00
Chris Duarte
dda0370b37 Remove sentry to fix build (#573) 2017-05-26 11:30:43 -04:00
Chris Duarte
9a05aeec78 Fix sentry build issues (#570)
* Fix sentry build issues

* Review feedback
2017-05-26 06:38:48 -04:00
Chris Duarte
d14edc25da RN-145 Add support for sentry error tracking (#564)
* RN-145 Add support for sentry error tracking

* Add to notice.txt
2017-05-25 09:56:38 -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
dbafd2f45c Update react-native-image-picker to use a fork (#550) 2017-05-17 16:15:53 -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
ddf03e1372 RN-79: Images uploaded from React Native get renamed (#509) 2017-04-28 10:24:55 -03:00
enahum
2076e17c52 Upgrade mattermost-redux in yarn (#508) 2017-04-27 09:05:54 -03:00
enahum
eb240af15b Update dependencies and start using yarn (#506) 2017-04-27 08:45:55 -03:00
Carlos Tadeu Panato Junior
c6d6bcc03f implement jira ticker RN-50 - Accept Team URL for Server URL (#499)
* implement jira ticker RN-50 - Accept Team URL for Server URL

* update per review

* add url-parse license to NOTICE.txt
2017-04-26 18:42:57 -03:00
enahum
7a3c99c267 Move to mattermost-redux master branch (#484) 2017-04-21 14:20:52 -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
618b4bfc6f PLT-6156 Update npm dependencies (#451)
* PLT-6156 Update npm dependencies

* re-add remote-redux devtools to build in jenkins
2017-04-03 16:34:03 -03:00
enahum
5d997ae22b PLT-5931 Adds splash screen (#413)
* Adds splash screen

* Increase font size for IOS modal options
2017-03-28 23:29:08 -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
Chris Duarte
396bac389f Plt 5944 portait view (#393)
* PLT-5499 RN: Only allow portrait view

* Added library

* Lock to portait

* Fixed upload preview hiding under text input

* Fixed create channel input borders

* Fixed color separators in channel list

* Fixing orientation for android
2017-03-24 13:41:20 -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
enahum
9fec29aa92 PLT-5501 Confirm server version is compatible with the app version (#385) 2017-03-23 17:25:33 -03:00
enahum
591da1b494 Android Version Bump to 18 (#381)
* Removed default server and set mattermost-redux to the right commit

* Version Bump to 18
2017-03-22 08:16:04 -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
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
Harrison Healey
305929012f PLT-5494 Added at mention detection (#366) 2017-03-20 18:03:41 -03:00
Harrison Healey
f642de986a Added url autolinking to commonmark.js (#361) 2017-03-20 17:02:05 -03:00
enahum
e1eeac4d82 PLT-5498 Add ability to delete a message (#357)
* ios tooltip menu with option to delete a post

* bottom sheet for android

* Feedback review
2017-03-20 16:57:37 -03:00
Harrison Healey
07af08b74a PLT-5717 Initial markdown support (#354)
* Added CommonMark-based post rendering

* Fixed text wrapping in most block elements

* Fixed paragraphs not being rendered as children of lists

* Replaced markdown images with a placeholder

* Fixed font colour in code spans
2017-03-20 16:27:33 -03: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
0721c9ca4c Upgrade to RN 0.42.0 (#356) 2017-03-16 15:15:54 -04:00
enahum
548633f5c0 PLT-5857 replace the service folder with mattermost-redux library (#348) 2017-03-14 10:52:24 -03:00
enahum
31d89c37fe PLT-5506 Record user agent/device type in the active sessions list (#342)
* Add user info and userAgent

* notice
2017-03-13 13:39:35 -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
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
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
Harrison Healey
764de28fa6 Updated ESLint rules (#304)
* Updated ESLint rules

* Updated ESLint version
2017-02-27 17:39:39 -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
Chris Duarte
ce58429a21 Reworking navigation (#212)
* Reworking navigation

* Fixed navigation testing and lint errors
2017-02-02 16:13:25 -05:00
enahum
71b2ecd394 Platform dependent search bar and ui fixes (#205)
* Platform dependent search bar and ui fixes

* Set events in default props

* Update NOTICE.txt

* Channel info favorite (#210)

* Enable toggling of favorite channel from channel_info

* Change this binding

* Handle favorite toggle with state

* feedback review

* removed unnecessary view
2017-02-01 11:38:32 -03:00
enahum
a7d7c4b459 Reset cache when starting the app with make run (#207) 2017-02-01 09:32:17 -05:00
Harrison Healey
0996644512 Added a polyfill for Reflect to support Android devices (#186)
* Added a polyfill for Reflect to support Android devices

* Added harmony-reflect to NOTICE.txt
2017-01-25 11:09:25 -05:00
enahum
b8dd3ec359 Fix channel selection when switching teams (#167)
* Fix channel selection when switching teams

* Making the listview channels to already have if its current
2017-01-20 13:41:48 -05:00
enahum
1566a79c93 Fastlane for Android and ios (#165) 2017-01-19 09:35:40 -05:00
enahum
81526fbb09 Channel drawer (#154)
* Channel list drawer
* Get channels by category
* Fix and connect websocket
* Fix Select first team using the team members

* create loadMe and fix login actions to loads the teams

* Add android back button handler for the channel drawer

* Channel drawer styling and functionality

* Mark channel as viewed and fixed reset unread counts

* Unread above/below indicators

* Improve performance replacing ScrollView with ListView

* Fix unread indicators

* Addressing review feedback
2017-01-03 19:49:28 -03:00
Harrison Healey
4ecd3758e7 Render posts for the current channel (#153)
* Added selectChannel action

* Fixed selected team not being cleared on logout

* Fixed posts and postsByChannel not being initialized correctly

* Added basic post rendering

* Renamed selectors files to be plural

* Removed empty file

* Fixed unit tests after merge

* Removing unnecessary code
2016-12-23 10:55:33 -03:00
enahum
7e426b6029 Add WebSocket support (#144)
* Add WebSocket support

* fix unit tests

* Add actions to websocket and fix unit tests
2016-12-21 12:54:23 -05:00
Chris Duarte
19b7918679 Use babel-plugin-module-resolver to fix imports from project root (#145) 2016-12-20 16:01:15 -05:00
Harrison Healey
384667ece1 Added NOTICE.txt (#136)
* Added NOTICE.txt

* Add creators to intro sentence

* Removed react-addons-pure-render-mixin from NOTICE.txt since it's part of react

* Copied fbjs keymirror into utils

* Renamed deepFreezeAndThrowOnMutation to deep_freeze

* Fixed merge conflict
2016-12-16 19:42:08 -03:00
enahum
228b1be76f Prevent eslint from passing with exclusive tests (#133) 2016-12-13 12:57:57 -03:00
Harrison Healey
8732febd8c Removed react-native-router-flux and added custom navigation logic (#102)
* Removed react-native-router-flux and replaced it with custom navigation

* Split Logout component to have a container

* Replaced RootContainer with RootLayout

* Removed lodash from package.json

* Removed unnecessary state from Logout component

* Added placeholder for RHS search

* Renamed routes to scenes and moved some logic to there

* Added Root route to handle any initialization on app load

* Added unit tests for navigation reducer

* Fixed eslint errors

* Removed commented out code from Router

* Renamed Channel route to ChannelView to avoid confusion

* Used a separate index.js for component containers

* Simplified mapStateToProps for RootLayoutContainer

* Removed file accidentally added in merge conflict
2016-12-08 12:37:38 -03:00
enahum
9125d0cac2 Initial Redux Store (#84)
* Moved SelectServer view state into store

* Moved view state for Login to stores

* Renamed RequestStatus values

* Merged duplicated view state for login

* initial redux store

* Fix eslint

* user store and force logout when necessary

* channel store

* address feedback

* Revert naming the property of data
2016-12-06 15:11:40 -05:00