Commit graph

51 commits

Author SHA1 Message Date
Harrison Healey
59ea04fc0c Combined translation strings with those used by the webapp (#48)
* Combined translation strings with those used by the webapp

* Fix a few incorrect i18n message ids
2016-10-20 17:51:34 -07:00
David Meza
231fda1160 Add vector icons (#34)
* WIP: Add vector Icons with Android support

* Added IOs support for icons. Linked XCode dependencies.

* Add icon to team selection list as a usage example/test
2016-10-20 17:42:31 -07:00
Harrison Healey
1a0c741fcd Added Intl polyfill for platforms that don't support it (#49) 2016-10-20 15:54:55 -07:00
Mike Piccolo
25f284a068 Add logout to the topnav (#45)
* WIP

* Remove session token after logout.

* Add logout reducer test

* Pop stack to login

* Use newProps and doFetchWithResponse

* Setup the reducers to clear the store
2016-10-20 11:49:03 -07:00
it33
bfec2fedc9 Proposed changes to contributor guidelines (#44) 2016-10-19 13:33:44 -07:00
Harrison Healey
8f727e0ebd Added react-intl for internationalization (#31)
* Added react-intl

* Moved all displayed strings into en.json

* Add spanish locale data so we can test switching locales
2016-10-19 10:56:24 -07:00
Mike Piccolo
31206b397b Cover general and device reducers 2016-10-18 23:17:27 -07:00
Mike Piccolo
8e3ba08ad3 Initial reducer tests 2016-10-18 23:17:27 -07:00
Thomas Hopkins
99140c6ece Check for npm, xcode, & android env in makefile (#30)
* Avoid clobbering config.secret.json if already exists

* Clear npm cache when running make clean

* Fail make if npm is not installed

* Wrap rn run commands so local rn cli is used instead of global

* Separate run commands for ios & android

* Fail make run-ios if xcode isn't installed

* Check android env in make run

* Fix make check for config.secret.json
2016-10-18 23:01:54 -07:00
Thomas Hopkins
0f92c48843 Gitignore .npminstall (#28)
* Delete .npminstall

* Add .npminstall to .gitignore
2016-10-18 15:44:52 -07:00
Thomas Hopkins
d4a98c082a Style views for SelectServer, Login, SelectTeam, & ChannelsList (#27)
* Allow user to change switch between teams & channels

* Add react-native-button

* Style SelectTeam view

* Reuse SelectTeam styles in SelectServer & Login

* Reuse SelectTeam styles in ChannelsList view

* Display current team name in ChannelsList

* Disable android underline in textinputs
2016-10-18 13:32:07 -07:00
Mike Piccolo
0697bfc066 Mp containers (#26)
* Use containers to map state and dispatch

* Remove unnecessary aslint config

* Remove container from route function

* Change containers to pure containers
2016-10-18 10:51:52 -04:00
Harrison Healey
543ccb8fe6 Switched client.js to fully use Promises (#23)
* Made sanity tests run without an internet connection

* Removed onRequest parameter from Client methods

* Switched client.js to fully use Promises

* Fix mock response for login

* Fixed test_helper.js to actually use the configured url
2016-10-18 10:46:30 -04:00
Thomas Hopkins
f262b2c90b Convert entity collection stores to objects instead of arrays (#25)
* Use camel case for current team & channel ids

* Convert entity collection stores to objects
2016-10-18 09:00:55 -04:00
Mike Piccolo
f6ed67e053 Add posts lists (#22)
* Add posts list

* Use map instead of polyfill

* Fix some eslint issues

* Address camel case and client channelId
2016-10-17 19:19:08 -07:00
Thomas Hopkins
5bdc432f71 Add scene + action for login (#24) 2016-10-17 18:15:25 -07:00
Thomas Hopkins
829972694b Add functionality for fetching + selecting teams & channels (#17)
* WIP-working-routes

* Fix imports

* WIP

* Remove unused proptypes & imports from SelectTeam

* Appease eslint

* Disable non-applicable eslint rules in routes & styles

* Change endpoint for fetching teams

* Handle failure to fetch teams

* Fix proptypes in ErrorText

* Add action for selecting team

* Allow user to select a channel

* Save exact versions of npm packages

* Add lodash

* Fetch teams for user to select from

* Don't require onProceed prop on SelectServer

* Abstract out the api logic from actions

* Handle fetch implementation discrepancy when parsing headers

* Remove example components

* Appease eslint

* Fix disabling of fetch-mock

* Remove response headers parsing hack

* Set mock fetch flag in config.json
2016-10-17 15:47:47 -04:00
Thomas Hopkins
8611b3e28a Use fetch-mock to mock requests in tests (#18)
* Use fetch-mock to mock requests in tests

* Use flag to enable/disable fetch-mock
2016-10-17 14:37:18 -04:00
Harrison Healey
ce9dbcfb16 Changed .editorconfig to include a trailing newline on files (#21) 2016-10-17 13:56:28 -04:00
Harrison Healey
ebf6a95561 Added basic config file (#20)
* Added basic config file

* Replaced Object.assign with spread
2016-10-17 11:38:59 -04:00
Jason Blais
c8e4b6ee46 Update CONTRIBUTING.md (#19) 2016-10-17 10:38:34 -04:00
Harrison Healey
69b4ae2988 Added vim temporary files to .gitignore (#14) 2016-10-16 20:00:25 -04:00
Mike Piccolo
c8c4a0b010 Move constants to it own dir (#12)
* Move constants to directory

* Use index to export constants
2016-10-15 09:09:24 -07:00
Mike Piccolo
f6e551c45b Example for using async/await (#11)
* Use babelrc

* Use async to unnest
2016-10-14 15:00:52 -07:00
Mike Piccolo
4130a08199 Use babelrc (#10) 2016-10-14 15:00:09 -07:00
Thomas Hopkins
ef0778bf9c Update index.android.js to match index.ios.js (#9) 2016-10-13 16:14:22 -04:00
Harrison Healey
fa30d29449 Removed isomorphic-fetch from non-test code (#8) 2016-10-12 18:02:12 -04:00
Harrison Healey
574148c56d Attempt to fix how eslint is called from package.json (#7) 2016-10-12 14:41:00 -07:00
Jason Blais
70b3effb15 Create CONTRIBUTING.md (#5)
Copied from [../platform/.../CONTRIBUTING.md](https://github.com/mattermost/platform/blob/master/CONTRIBUTING.md) as a starting point for process
2016-10-12 16:45:54 -04:00
Thomas Hopkins
2232ef7173 Fix filenames for button & loading components (#4)
* Fix filenames for button & loading components

* Fix filenames for button & loading components
2016-10-12 16:13:53 -04:00
Harrison Healey
8c3f60e41d Changed actions tests to use TestHelper 2016-10-12 11:30:05 -04:00
Harrison Healey
15a44ad453 Fixed actions unit tests and dispatching them 2016-10-11 17:34:15 -04:00
Harrison Healey
2cfc210318 Moved client tests into a single folder 2016-10-11 16:44:15 -04:00
Harrison Healey
f7dd914562 Refactored Client methods so that arguments come before callbacks to match webapp 2016-10-11 16:41:03 -04:00
Harrison Healey
7599d77558 Added full TestHelper.initBasic and some more client tests 2016-10-11 16:33:35 -04:00
Harrison Healey
2bf48b70fd Made client callbacks return the results of their dispatch calls 2016-10-11 15:53:08 -04:00
Harrison Healey
559ea98840 Added some more client APIs and refactored the client so it doesn't return a function 2016-10-11 15:50:08 -04:00
it33
a4c7e96cb6 Adding Apache 2.0 license 2016-10-11 09:14:00 -07:00
Harrison Healey
748f08a847 Changed Client to no longer be a singleton and added TestHelper 2016-10-11 11:47:34 -04:00
Harrison Healey
d8285fb0b4 Added handling for enter key on select server page 2016-10-11 11:22:34 -04:00
Harrison Healey
567a2b4782 Fixed ErrorText component to properly render 2016-10-11 11:21:54 -04:00
Harrison Healey
b86718f467 Started adding separate client tests from redux tests 2016-10-11 11:21:15 -04:00
Harrison Healey
d4dbf0f70b Updated remote-redux-devtools configuration in store 2016-10-11 10:36:34 -04:00
Harrison Healey
589bc90605 Refactored client.js to have no knowledge of the redux stores 2016-10-11 09:52:40 -04:00
Harrison Healey
39467192f0 Updated react-native projects 2016-10-07 11:49:31 -04:00
Harrison Healey
f0291172ac Added script to make React Native support absolute imports 2016-10-07 11:46:40 -04:00
Harrison Healey
723b32a6e2 Updated packages, switched to mocha for testing 2016-10-07 11:11:14 -04:00
Harrison Healey
0e57ec48f2 Fixed unit tests and cleaned up package.json imports 2016-10-06 10:09:38 -04:00
Harrison Healey
f2dfd47360 Reenable redux-logger 2016-10-05 08:49:15 -04:00
Harrison Healey
d8a510d354 Updated dependencies 2016-10-05 08:42:08 -04:00