Commit graph

80 commits

Author SHA1 Message Date
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
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
it33
74c02789ee Typo, unreleased should not be hyphenated 2016-11-25 12:39:13 -08:00
it33
1f81949199 Update README to clarify project status (#82)
* Be clear this project is unreleased

* Update README.md
2016-11-25 12:49:03 -05:00
enahum
b8ad25c4d8 Update xcode project and Readme (#79) 2016-11-22 14:03:28 -05:00
Thomas Hopkins
7c5735642f Add app icons for android (#74) 2016-11-22 12:14:38 -05:00
Harrison Healey
45f8a56d15 Fixed unit tests for the other changes I've made recently (#80)
* Removed mocking from client tests

* Updated Client tests to remove Client.setTeamId

* Fixed actions/general.test.js

* Updated test/reducer/channel.test.js for the updated store structure

* Commented out general reducer tests until the store structure is more finalized

* Properly used the team ID when creating a channel
2016-11-22 11:46:50 -05:00
Harrison Healey
fd7ce3fe9c Updated iOS icon so xcode stops constantly changing the file 2016-11-16 17:09:17 -05:00
Harrison Healey
843f082349 Decoupled ChannelSidebar from stores 2016-11-15 16:54:50 -05:00
Harrison Healey
2aa71ae941 Refactored to use src/routes 2016-11-15 15:23:09 -05:00
Harrison Healey
86b33e0164 Added initial version of MainView/MainContainer 2016-11-09 12:52:17 -05:00
Harrison Healey
71c0707a90 Stopped aliasing action types 2016-11-09 10:40:20 -05:00
Harrison Healey
537649f166 Added copyright notice to files that needed it 2016-11-09 10:31:45 -05:00
Harrison Healey
1ecc3e411c Re-add remote redux debugger to npm run postinstall 2016-11-09 10:12:27 -05:00
Thomas Hopkins
8d27d08c5c Add iOS app icons (#72) 2016-10-24 10:27:08 -04:00
David Meza
d10233bc1c MM-42 README setup instructions for linux (#75) 2016-10-21 14:44:49 -07:00
Thomas Hopkins
119113ca85 Use nextProps in componentWillReceiveProps (#76) 2016-10-21 13:23:17 -07:00
Thomas Hopkins
23a8676c19 Fix: Clear stores when user logs out (#65)
* Import missing action types for logout

* Correctly destructure logout response from doFetchWithResponse

* Return to SelectServer upon logout

* Add todo regarding clearing clientConfig upon logout
2016-10-21 10:17:36 -07:00
Thomas Hopkins
f2800ce927 Add secureTextEntry prop to password input field (#64) 2016-10-21 08:32:05 -07:00
Mike Piccolo
3533af7fd6 Make sure watchman is installed and open simulator (#50)
* Make sure watchman is installed and open simulator

* Check for watchman in make run-android
2016-10-20 19:44:47 -07:00
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