Commit graph

136 commits

Author SHA1 Message Date
Kimmo Puputti
37e01b03f5 Change store state usage to be more explicit 2017-02-15 13:29:12 +02:00
Kimmo Puputti
766adf8ccd Add shared PropType util file 2017-02-15 13:28:44 +02:00
Kimmo Puputti
458aba5f53 Fix post-merge test failures 2017-02-15 11:02:16 +02:00
Kimmo Puputti
b9cdb17576 Fix id type in test 2017-02-15 10:51:01 +02:00
Vesa Luusua
fde803fc14 Forgot to run prettier earlier... 2017-02-15 10:46:09 +02:00
Vesa Luusua
4a083255be Tests for SearchPage.ducks 2017-02-15 10:46:09 +02:00
Vesa Luusua
473b3c7c97 Refactor SearchPage.ducks to create flags in reducer instead of sending them already in ActionCreator's payload. 2017-02-15 10:46:09 +02:00
Kimmo Puputti
d41eb61be8 Merge pull request #42 from sharetribe/update-react-router2
Update React Router
2017-02-15 10:41:20 +02:00
Kimmo Puputti
862f01f00b Fix location state handling for proper redirects 2017-02-14 20:35:53 +02:00
Kimmo Puputti
022c175c2d Remove activeStyle that react-router doesn't have anymore 2017-02-14 20:33:11 +02:00
Kimmo Puputti
9d5533d60e Use withRouter HOC from react-router
- Provides router props form the context
 - Changed API requires us to use the history.push function
2017-02-14 20:32:00 +02:00
Kimmo Puputti
8292c1b9cd Enable crawling tests, split redirect tests 2017-02-14 14:29:03 +02:00
Kimmo Puputti
f17cccfdfd Refactor Routes to work with the new react-router API 2017-02-14 14:28:44 +02:00
Kimmo Puputti
9a91380896 Provide routesConfiguration and use flattened routes for Routes 2017-02-14 14:24:15 +02:00
Kimmo Puputti
18bdcf5993 Wrap route components into functions for undefined default imports 2017-02-14 14:24:15 +02:00
Kimmo Puputti
763db75553 Listen to history changes only when possible 2017-02-14 14:19:14 +02:00
Kimmo Puputti
3f4bc073d4 Fix routers and server context 2017-02-14 10:48:10 +02:00
Kimmo Puputti
4a7269e71b Update snapshots with Link and Redirect prop changes 2017-02-14 10:47:33 +02:00
Kimmo Puputti
b426af7b95 Fix changed Link and Redirect props 2017-02-14 10:47:33 +02:00
Kimmo Puputti
10d6d19c00 Use the new matchPath instead of matchPattern 2017-02-14 10:47:33 +02:00
Kimmo Puputti
be2fcdf793 Import from react-router-dom instead of react-router 2017-02-14 09:43:37 +02:00
Mikko Koski
f9724f3c8e Integration SDK: Search listings from SDK and API 2017-02-14 09:42:44 +02:00
Kimmo Puputti
cfbeb8672c Document test helpers 2017-02-07 16:20:39 +02:00
Kimmo Puputti
8f92ec2855 Use render helper in tests 2017-02-07 16:14:28 +02:00
Kimmo Puputti
073cf0bd9c Export AuthenticationPageComponent for snapshot test 2017-02-07 16:14:21 +02:00
Kimmo Puputti
2b0238f151 Update snapshots 2017-02-07 16:05:02 +02:00
Kimmo Puputti
f142f31291 Separate shallow and deep render for snapshot tests 2017-02-07 16:00:40 +02:00
Kimmo Puputti
fc568292a9 Extract snapshot rendering into a helper function 2017-02-07 16:00:24 +02:00
Kimmo Puputti
eefb2c1036 Improve error message 2017-02-07 15:47:36 +02:00
Kimmo Puputti
28894cd812 Redirect to root after logout 2017-02-07 15:47:36 +02:00
Kimmo Puputti
519ec102af User one auth in-progress prop and one error prop in store 2017-02-07 15:47:36 +02:00
Kimmo Puputti
abacbbc1d6 Auth duck fake impl and tests 2017-02-07 15:47:36 +02:00
Kimmo Puputti
d417009ff5 Remove unnecessary double import/export rename 2017-02-07 15:44:57 +02:00
Kimmo Puputti
46b9ae2f46 Update page snapshots with changed Topbar links 2017-02-07 15:44:57 +02:00
Kimmo Puputti
abdc47791a User auth info from store, put links into a dropdown 2017-02-07 15:44:57 +02:00
Kimmo Puputti
8f533f36ab Extract MatchWithSubRoutes component 2017-02-07 15:44:57 +02:00
Kimmo Puputti
dfbe65fe47 Mock login and show possible errors 2017-02-07 15:44:57 +02:00
Kimmo Puputti
b80c43f96c Use Auth duck instead of fakeAuth 2017-02-07 15:44:57 +02:00
Vesa Luusua
bc2baaf3b5 Refactoring to improve readability, compatibility with saga and comments 2017-02-07 13:13:08 +02:00
Vesa Luusua
f508886d9f Strange bug: tests don't work without this fix. Will be changed later. 2017-02-06 12:40:48 +02:00
Vesa Luusua
b937f3fd57 Refactor saga code in ducks files and add sdk as parameter. 2017-02-06 12:40:47 +02:00
Vesa Luusua
2a9c9e103b Fetch data with saga (both server and client) 2017-02-06 12:40:42 +02:00
Vesa Luusua
71ab7c33e0 Call component.loadData on server side (and client) 2017-02-06 12:32:59 +02:00
Vesa Luusua
fd18ed1427 Refactor to more simple solution 2017-02-06 12:26:34 +02:00
Kimmo Puputti
c83af8dc42 Add redux-saga setup with Auth duck 2017-02-01 16:20:13 +02:00
Kimmo Puputti
50e22d0d1e Format JS with Prettier 0.13.1 2017-01-30 10:57:27 +02:00
Kimmo Puputti
f68b49d1c0 Merge pull request #25 from sharetribe/order-page
OrderPage
2017-01-26 21:52:37 +02:00
Kimmo Puputti
680c10c93f Add OrderPage contents 2017-01-26 21:34:38 +02:00
Vesa Luusua
29441d6710 ListingPage wireframe 2017-01-26 19:38:12 +02:00
Kimmo Puputti
76e94101fb Extract BookingInfo component from CheckoutPage 2017-01-26 19:28:52 +02:00