Commit graph

71 commits

Author SHA1 Message Date
enahum
ecf39f61dd Various fixes & improvements (#611)
* RN-166 follow user prefs for join/leave messages

* RN-158 Fix Android input textbox offscreen issue

* RN-181 Use device locale as default locale

* Upgrade mattermost-redux

* Fix TouchableHighlight in the channel drawer items

* Update channel title when switching channels

* Fix channel name title when switching teams

* Fix unit test
2017-06-08 15:40:29 -04:00
Chris Duarte
cbdfb4ff46 Add component unit testing (#588) 2017-05-31 08:59:20 -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
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
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
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
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
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
c13a436d18 Enable SAML authentication (#325)
* enable saml authentication

* Fix unit tests

* Fix android cookies

* Feedback review
2017-03-09 14:07:18 -03: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
b71052bd64 PLT-5660 Handle channel created WebSocket event (#306)
* Handle channel created WebSocket event

* increasing test timeout
2017-02-27 19:51:04 -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
enahum
c1318fe834 PLT-5589 Reload configuration when the server config changes (#301) 2017-02-27 13:15:51 -05: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
4f2d769766 PLT-5541 Autocomplete mentions in post textbox (#266)
* WIP channel autocomplete

* Channel mentions

* Feedback Review
2017-02-20 18:19:11 -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
Harrison Healey
1115d882ca PLT-5566 Added clientside handling to automatically show direct channels (#270)
* Added TestServerUrl config setting

* Added clientside handling to show direct channels in the sidebar when a DM is received
2017-02-17 10:53:46 -05: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
enahum
a97238f75c Removed channel_viewed websocket event (#254) 2017-02-15 14:08:41 -03: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
c370e895bd Mention autocomplete (#242)
* Mention autocomplete

* Review feedback
2017-02-13 16:07:50 -05: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
Chris Duarte
ce58429a21 Reworking navigation (#212)
* Reworking navigation

* Fixed navigation testing and lint errors
2017-02-02 16:13:25 -05:00
enahum
bfd70f742c Modal with options (#179)
* modal options and channel long press

* PureComponent optimization (#183)

* Bug fix when leaving the current channel

* Rebased with new navigation

* Add disabled drawer to unit test

* re-organize modal up in the stack and controlled by redux

* renaming modalOptions to optionsModal
2017-01-30 08:41:14 -05:00
enahum
dd073f173e Update channel header/purpose when current channel (#173)
* Update channel header/purpose when current channel

* Add unit tests for update header and purpose
2017-01-24 11:49:04 -05:00
Harrison Healey
cea81f6497 Reorganized navigation (#181)
* Moved ChannelDrawer into its own scene

* Moved RightSideMenu to a separate route

* Moved title back above scenes

* Moved right side menu into a separate scene

* Reorganized navigation so that it centers around ChannelView when logged in

* Stopped using NavigationExperimental to manage drawers

* Fixed copyright date

* Added unit tests for navigation drawers

* Renamed RightSideMenu to RightMenuDrawer

* Removed unnecessary ChannelDrawer style
2017-01-24 11:56:35 -03:00
Harrison Healey
9d51a3b970 Added whitelabeling support using assets/override (#156) 2017-01-05 16:32:24 -03: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
enahum
aa5a77ae86 Use the new API for view channel (#155)
* Use the new API for view channel

* Fix view channel on websocket events
2016-12-29 11:31:11 -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
8243eda444 Improved unit tests (#151) 2016-12-22 13:07:23 -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
Harrison Healey
0d5215a8b7 Fixed create direct channel route to use a proper team id (#146) 2016-12-20 15:54:23 -03:00
Harrison Healey
8e59ea606e Refactored post store to store posts by their IDs (#142)
* Added hook to tests to catch uncaught promise rejections

* Refactored post store to store posts by their IDs

* Fixed post store when logging out
2016-12-19 14:37:54 -03:00
enahum
d2f2678880 Reauthenticate from stored token when app is reloaded (#137)
* Reauthenticate from stored token when app is reloaded

* Address feedback
2016-12-15 13:17:26 -05:00
Harrison Healey
bd3bd45c36 Added deep freeze of stores in dev mode (#135)
* Added deep freeze of stores in dev mode

* Stopped deletePost and reducePosts reducer functions from mutating the store
2016-12-13 17:13:41 -03:00
Harrison Healey
5cc43d5a9f Made all unit tests run again (#132) 2016-12-13 12:10:33 -03:00
enahum
aa01be831f include posts into store (#125)
* include posts into store

* addressing feedback
2016-12-13 09:07:16 -05:00
Harrison Healey
61c4d8b585 Added basic theming support (#131)
* Moved all view action types into a single file

* Moved preferences into their own constants section

* Added basic theming support
2016-12-12 21:05:59 -03:00
Harrison Healey
155a923cd0 Added preferences to redux store (#124)
* Disabled broken ESLint rule

* Added preferences to redux store

* Re-enabled all unit tests

* Fixed code referencing users.myPreferences

* Stopped exporting dispatcher from actions/helpers
2016-12-12 20:42:26 -03:00
enahum
e2f3f7b803 project folder structure (#107)
* project folder structure

* Moving store to be called from app folder
2016-12-09 10:34:17 -05:00
enahum
d27122c69b enable all tests and fix createTeam test (#106) 2016-12-08 18:17:33 -03:00
enahum
b1474a37b7 Include team to the store (#103)
* Include team to the store

* addressing feedback

* Fix getTeamMember
2016-12-08 18:01:55 -03:00
enahum
4b636bfefc Remove unnecessary moreChannels from store (#104)
* Remove unnecessary moreChannels from store

* Remove profile fetching on DM creation
2016-12-08 11:36:28 -05:00
enahum
f487bb4014 Remove pagination for profiles in the store (#105) 2016-12-08 11:36:07 -05:00