Commit graph

111 commits

Author SHA1 Message Date
Jenni Nurmi
bcd36e9619 Don't set currenUserHasListings if fetched listing is in draft state 2018-11-16 16:04:26 +02:00
Hannu Lyytikainen
2cf223fbe8 Remove unused code 2018-06-01 01:09:36 +03:00
Vesa Luusua
049f6a7f37 import lodash per file to reduce bundle size 2018-05-18 15:24:09 +03:00
Vesa Luusua
c85dee883e Add legal_entity.type: 'individual' 2018-05-18 14:34:05 +03:00
Vesa Luusua
5aa2ed306c Call stripe.createAccount always before sending tokens to Flex API 2018-05-18 12:08:44 +03:00
Vesa Luusua
83ce3769d5 Change Stripe errors to use camelCased info instead of snake_case 2018-05-16 15:01:51 +03:00
Kimmo Puputti
946cf7f53c Use Image variants instead of sizes 2018-04-16 12:28:43 +03:00
Hannu Lyytikainen
44352901c3 Add a check for empty protectedData object 2018-03-06 15:20:03 +02:00
Hannu Lyytikainen
ae8fbbd567 Pass additional user creation data in protectedData 2018-03-06 14:13:23 +02:00
Kimmo Puputti
abb2d16def Improve data denormalisation
- Use resource refs (id, type) instead of separate type and ids
- Throw an error only when it makes sense
2018-01-19 15:30:12 +02:00
Kimmo Puputti
ed2319e781 Add helper to get denormalised entities from an SDK response 2018-01-19 15:30:12 +02:00
Kimmo Puputti
9a64952105 Separate sdkResponse and apiResponse in naming 2018-01-19 11:16:14 +02:00
Mikko Koski
c8994c11ed Review: Use generic getMarketplaceEntities instead 2018-01-18 12:58:33 +02:00
Boyan Tabakov
e2813fb346 Update to use current API endpoints for own listings 2018-01-18 10:05:20 +02:00
Boyan Tabakov
de47b54462 Fix implementation for finding whether user has any listings
Previously, closed listings wouldn't be returned by the query.
2018-01-18 10:05:20 +02:00
Kimmo Puputti
784e459314 Improve error logging 2018-01-15 11:31:40 +02:00
Kimmo Puputti
b6532d8ee6 Transition ref rename: preauthorize enquiry -> request after enquiry 2018-01-11 14:44:10 +02:00
Kimmo Puputti
135a6dab7e Transition ref rename: preauthorize -> request 2018-01-11 14:43:43 +02:00
Kimmo Puputti
f0b955dc5b Refactor propTypes module
- Rename types
- Collect propTypes within a named propTypes export
- Use named imports for easier refactoring and customisation later
- Rename sdk types to sdkTypes in imports to avoid confusion
2018-01-11 11:40:03 +02:00
Kimmo Puputti
86e750610e Update snapshots and formatting after rebase 2018-01-04 12:35:32 +02:00
Kimmo Puputti
b9f23e7714 Add Stripe error message to Sentry data 2018-01-04 12:21:04 +02:00
Kimmo Puputti
45dd9d9455 Add enquiry prop type handling 2017-12-15 15:48:03 +02:00
sktoiva
9384638e2d Camel case current-user 2017-11-08 11:52:04 +02:00
Kimmo Puputti
ae4ef86bd5 Add selector for current user endpoint errors 2017-11-03 14:50:39 +02:00
Kimmo Puputti
bc4dbeee7b Fix error when data was being loaded while logout was in progress
The Routes component skips calling the possible loadData of a page if
the logout is in progress. However, the logoutSuccess and the
clearCurrentUser actions were dispatched in an order that cleared the
user from the store before the logout was marked done.

The fix was to order the actions so that the logout is marked done
first and then all the cleanup is done.

A better solution in the future would be to batch actions so that
extra render loops are avoided when dispatching multiple actions at
once.
2017-10-27 09:16:56 +03:00
Kimmo Puputti
e82a775049 Add Routing duck to track location changes 2017-10-25 17:02:38 +03:00
Kimmo Puputti
b2b6bc8efe Remove authInfoError handling from UI 2017-10-23 16:25:05 +03:00
Vesa Luusua
f29854a4d8 user.duck uses storableError 2017-10-18 18:13:09 +03:00
Vesa Luusua
171c86d6eb EmailVerification.duck uses storableError 2017-10-18 18:13:09 +03:00
Vesa Luusua
13df1c3abb Auth.duck uses storableError 2017-10-18 18:13:09 +03:00
Kimmo Puputti
90ab9c9a69 Format with latest Prettier 2017-10-13 10:11:51 +03:00
Hannu Lyytikainen
2eea847df9 Disable logging for signup test 2017-10-04 14:40:21 +03:00
Hannu Lyytikainen
e1a820fa18 Add more extra data to log requests 2017-10-04 14:04:12 +03:00
Hannu Lyytikainen
b35658accb Remove log.duck.js 2017-10-04 13:17:43 +03:00
Hannu Lyytikainen
2cfd3deaa1 Move clearUserId to Auth.duck.js
Clear user ID from the logger in logout thunk instead of the Topbar.

Also call dispatch logging function also as the last action of a thunk
function where possible.
2017-10-04 13:17:43 +03:00
Hannu Lyytikainen
de5ec59119 Add error codes
An error code can be passed to logger. This code gets added to the
Sentry error report as a tag and can be used to search this specific
error.
2017-10-04 13:17:43 +03:00
Hannu Lyytikainen
e5a62a24ef Improve logging 2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
3a4e420ea4 Add log.duck.js to ducks index.js file
Also remove unused parameter from logError thunk function.
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
3c4f20f2ad Add log.duck.js
Logging requests from duck files can now be dispatched to a logging
thunk action that does not interrupt the application.
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
8520edd1d2 Fix logging errors
Fix cases where wrong (kind of) data is passed to the logger.
2017-10-04 13:16:28 +03:00
Hannu Lyytikainen
796bf17c93 Add user id to logger 2017-10-04 13:16:28 +03:00
Kimmo Puputti
ba3b61ac29 Try to keep auth info up to date when fetching current user 2017-10-04 11:36:02 +03:00
Kimmo Puputti
2de579c325 Fetch notifications based on last transition
As the transaction state was removed from the API, also filtering by
state was removed. This changes the tx query to use the new API param
for filtering by last transition to get the notification count for the
user.
2017-10-02 16:22:51 +03:00
Kimmo Puputti
d9996c9084 Use the current state filtering until API is changed 2017-10-02 16:05:06 +03:00
Kimmo Puputti
0c7b8ca355 Use transaction lastTransition instead of state 2017-10-02 15:50:38 +03:00
Kimmo Puputti
1814a0d960 Add proper inProgress and ready states for listing creation 2017-09-21 16:35:44 +03:00
Vesa Luusua
cda5042d28 PayoutDetailsForm can handle generic error 2017-09-20 14:08:55 +03:00
Vesa Luusua
e121f0c3ae Fix mutated initial state 2017-09-15 15:03:54 +03:00
Vesa Luusua
b76cbadca3 Clear store after logout 2017-09-15 15:03:53 +03:00
Vesa Luusua
9a8642b752 Change comments from current user fetches since profileImage wasn't added to attributes 2017-09-14 22:03:50 +03:00