Commit graph

175 commits

Author SHA1 Message Date
Kimmo Puputti
4066948800 Add search results to the store 2017-02-23 13:38:15 +02:00
Kimmo Puputti
fdb1f96847 Add test helpers for creating users and listings 2017-02-23 13:37:49 +02:00
Kimmo Puputti
bc6a0839fa Change user and listing prop types to match the required shape 2017-02-23 13:37:18 +02:00
Kimmo Puputti
8b4fea7c22 Remove loadData since it's always null with the default imports 2017-02-23 12:37:52 +02:00
Kimmo Puputti
43a4d55aa2 Add selector for listings 2017-02-23 12:09:34 +02:00
Kimmo Puputti
d263202723 Add entity data denormalisation helper 2017-02-23 12:09:34 +02:00
Kimmo Puputti
36d40054a6 Expose routeConfiguration for dev REPL 2017-02-23 10:18:03 +02:00
Kimmo Puputti
cca652eca1 Load initial auth info when starting the app 2017-02-22 14:58:25 +02:00
Kimmo Puputti
22878eb755 Change function and param naming to communicate the purpose better 2017-02-22 11:17:45 +02:00
Kimmo Puputti
d02785cf9d Expose stuff for dev time REPL 2017-02-21 20:59:43 +02:00
Kimmo Puputti
cec4ea15c7 Add duck file for API calls 2017-02-21 20:59:18 +02:00
Kimmo Puputti
37761e97b2 Add data module for handling JSONApi responses 2017-02-21 20:58:17 +02:00
Kimmo Puputti
3d4c7834e2 Add sample data module for REPL testing 2017-02-21 20:57:46 +02:00
Kimmo Puputti
0e8fd878aa Remove user and inProgressState from the Auth store
- user: will be changed to something else later anyways
 - inProgressState: not used anywhere
2017-02-21 11:35:45 +02:00
Kimmo Puputti
bbddb7ae27 Inject the SDK instance to the root saga 2017-02-21 11:35:45 +02:00
Kimmo Puputti
f17a5ec36b Add a config file for the frontend app 2017-02-21 11:35:45 +02:00
Kimmo Puputti
2ce15d4ab6 Rename ducks -> duck 2017-02-20 09:59:10 +02:00
Kimmo Puputti
99c9a67a4b Fix extra location state modifications that caused weird redirects 2017-02-17 13:42:11 +02:00
Kimmo Puputti
067f5abce8 Change Link components into NamedLink components 2017-02-17 13:19:13 +02:00
Kimmo Puputti
6674c3d29a Use a instead of Link for a mailto link 2017-02-17 11:08:22 +02:00
Kimmo Puputti
b9e31dddb0 Highlight active tab link 2017-02-17 10:42:53 +02:00
Kimmo Puputti
78cfe3d75f Add push prop to NamedRedirect to pass on to Redirect 2017-02-16 17:16:12 +02:00
Kimmo Puputti
4045146364 Add support for activeClassName for the NamedLink component 2017-02-16 17:15:27 +02:00
Kimmo Puputti
48d6b3a3bd Add support for forbidden status in server rendering 2017-02-16 14:04:10 +02:00
Kimmo Puputti
2863f9dbef Fix notfound status code in server rendering 2017-02-16 14:03:23 +02:00
Kimmo Puputti
28da28cf05 Use withFlattenedRoutes HOC instead of context 2017-02-16 11:45:23 +02:00
Kimmo Puputti
f1772cc532 Add withFlattenedRoutes HOC 2017-02-16 11:43:13 +02:00
Kimmo Puputti
4020c36215 Use withRouter helper instead of context 2017-02-15 16:36:54 +02:00
Kimmo Puputti
1e9e72a841 Provide flattened routes in the context 2017-02-15 16:18:01 +02:00
Kimmo Puputti
078569e71d Rename routes prop to flattenedRoutes 2017-02-15 15:51:13 +02:00
Kimmo Puputti
e656b4098a Use flattened routes in route helpers 2017-02-15 15:47:56 +02:00
Kimmo Puputti
f51936d5dd Use inline exports 2017-02-15 15:37:29 +02:00
Kimmo Puputti
d56a00a316 Move route util functions to a separate module 2017-02-15 15:31:39 +02:00
Kimmo Puputti
0b963a6332 Clean up redirects 2017-02-15 15:25:01 +02:00
Kimmo Puputti
32bff31672 Remove unneeded RouterProvider component 2017-02-15 14:04:22 +02:00
Kimmo Puputti
ea2c7b78e6 Rename pattern to path as in react-router Route props 2017-02-15 13:54:37 +02:00
Kimmo Puputti
59748e39b9 Rename exactly to exact as in react-router Route props 2017-02-15 13:48:05 +02:00
Kimmo Puputti
028b923df9 Remove unused MatchWithSubRoutes component 2017-02-15 13:48:05 +02:00
Kimmo Puputti
9b7fff6d5a Rename match to props since component is a React component 2017-02-15 13:48:05 +02:00
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